Mono Class Library: System.Net Namespace

System.Net.Dns Class

Obtains domain information from the Domain Name System as defined by IETF RFC 1035 and RFC 1036. [Edit]

See Also: Dns Members

public static class Dns

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Remarks

The System.Net.Dns class creates and sends queries to obtain information about a host server from the Internet Domain Name System (DNS). In order to access DNS, the machine executing the query is required to be connected to a network. If the query is executed on a machine that does not have access to a domain name server, a System.Net.Sockets.SocketException is thrown.

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

Note: See the System.Net.IPHostEntry class page for an example that uses the System.Net.Dns class.

[Edit]

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.x.x, 1.0.5000.0, 2.0.0.0