System.Net.Dns Class

Provides simple domain name resolution functionality.

See Also: Dns Members

Syntax

public static class Dns

Remarks

The System.Net.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 System.Net.IPHostEntry class. If the specified host has more than one entry in the DNS database, System.Net.IPHostEntry contains multiple IP addresses and aliases.

Thread Safety

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

Requirements

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