Mono Class Library: System.Net NamespaceSystem.Net.Dns Class |
See Also: Dns Members
|
All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.
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]
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.x.x, 1.0.5000.0, 2.0.0.0