Provides simple domain name resolution functionality.
Assembly: System (in System.dll)
Thetype exposes the following members.
|BeginGetHostAddresses||Asynchronously returns the Internet Protocol (IP) addresses for the specified host.|
|BeginGetHostByName||Obsolete. Begins an asynchronous request for IPHostEntry information about the specified DNS host name.|
|BeginGetHostEntry(IPAddress, AsyncCallback, Object)||Asynchronously resolves an IP address to an IPHostEntry instance.|
|BeginGetHostEntry(String, AsyncCallback, Object)||Asynchronously resolves a host name or IP address to an IPHostEntry instance.|
|BeginResolve||Obsolete. Begins an asynchronous request to resolve a DNS host name or IP address to an IPAddress instance.|
|EndGetHostAddresses||Ends an asynchronous request for DNS information.|
|EndGetHostByName||Obsolete. Ends an asynchronous request for DNS information.|
|EndGetHostEntry||Ends an asynchronous request for DNS information.|
|EndResolve||Obsolete. Ends an asynchronous request for DNS information.|
|GetHostAddresses||Returns the Internet Protocol (IP) addresses for the specified host.|
|GetHostByAddress(IPAddress)||Obsolete. Creates an IPHostEntry instance from the specified IPAddress.|
|GetHostByAddress(String)||Obsolete. Creates an IPHostEntry instance from an IP address.|
|GetHostByName||Obsolete. Gets the DNS information for the specified DNS host name.|
|GetHostEntry(IPAddress)||Resolves an IP address to an IPHostEntry instance.|
|GetHostEntry(String)||Resolves a host name or IP address to an IPHostEntry instance.|
|GetHostName||Gets the host name of the local computer.|
|Resolve||Obsolete. Resolves a DNS host name or IP address to an IPHostEntry instance.|
The 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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.