Share via


Dns Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides simple domain name resolution functionality.

Inheritance Hierarchy

System. . :: . .Object
  System.Net..::..Dns

Namespace:  System.Net
Assembly:  System (in System.dll)

Syntax

'Declaration
Public NotInheritable Class Dns
public static class Dns
public ref class Dns abstract sealed
[<AbstractClass>]
[<Sealed>]
type Dns =  class end
public final class Dns

The Dns type exposes the following members.

Methods

  Name Description
Public methodStatic member GetHostEntry Resolves a host name or IP address to an IPHostEntry instance.

Top

Remarks

The Dns class is a static class that retrieves information about a specific host from the Internet Domain Name System (DNS).

The host information from the DNS query is returned in an instance of the IPHostEntry class. If the specified host has more than one entry in the DNS database, IPHostEntry contains multiple IP addresses and aliases.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Net Namespace