Dns Class
TOC
Collapse the table of content
Expand the table of content

Dns Class

 

Provides simple domain name resolution functionality.

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


[<AbstractClass>]
[<Sealed>]
type Dns = class end

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticBeginGetHostAddresses(String, AsyncCallback, Object)

Asynchronously returns the Internet Protocol (IP) addresses for the specified host.

System_CAPS_pubmethodSystem_CAPS_staticBeginGetHostByName(String, AsyncCallback, Object)

Obsolete.Begins an asynchronous request for IPHostEntry information about the specified DNS host name.

System_CAPS_pubmethodSystem_CAPS_staticBeginGetHostEntry(IPAddress, AsyncCallback, Object)

Asynchronously resolves an IP address to an IPHostEntry instance.

System_CAPS_pubmethodSystem_CAPS_staticBeginGetHostEntry(String, AsyncCallback, Object)

Asynchronously resolves a host name or IP address to an IPHostEntry instance.

System_CAPS_pubmethodSystem_CAPS_staticBeginResolve(String, AsyncCallback, Object)

Obsolete.Begins an asynchronous request to resolve a DNS host name or IP address to an IPAddress instance.

System_CAPS_pubmethodSystem_CAPS_staticEndGetHostAddresses(IAsyncResult)

Ends an asynchronous request for DNS information.

System_CAPS_pubmethodSystem_CAPS_staticEndGetHostByName(IAsyncResult)

Obsolete.Ends an asynchronous request for DNS information.

System_CAPS_pubmethodSystem_CAPS_staticEndGetHostEntry(IAsyncResult)

Ends an asynchronous request for DNS information.

System_CAPS_pubmethodSystem_CAPS_staticEndResolve(IAsyncResult)

Obsolete.Ends an asynchronous request for DNS information.

System_CAPS_pubmethodSystem_CAPS_staticGetHostAddresses(String)

Returns the Internet Protocol (IP) addresses for the specified host.

System_CAPS_pubmethodSystem_CAPS_staticGetHostAddressesAsync(String)

Returns the Internet Protocol (IP) addresses for the specified host as an asynchronous operation.

System_CAPS_pubmethodSystem_CAPS_staticGetHostByAddress(IPAddress)

Obsolete.Creates an IPHostEntry instance from the specified IPAddress.

System_CAPS_pubmethodSystem_CAPS_staticGetHostByAddress(String)

Obsolete.Creates an IPHostEntry instance from an IP address.

System_CAPS_pubmethodSystem_CAPS_staticGetHostByName(String)

Obsolete.Gets the DNS information for the specified DNS host name.

System_CAPS_pubmethodSystem_CAPS_staticGetHostEntry(IPAddress)

Resolves an IP address to an IPHostEntry instance.

System_CAPS_pubmethodSystem_CAPS_staticGetHostEntry(String)

Resolves a host name or IP address to an IPHostEntry instance.

System_CAPS_pubmethodSystem_CAPS_staticGetHostEntryAsync(IPAddress)

Resolves an IP address to an IPHostEntry instance as an asynchronous operation.

System_CAPS_pubmethodSystem_CAPS_staticGetHostEntryAsync(String)

Resolves a host name or IP address to an IPHostEntry instance as an asynchronous operation.

System_CAPS_pubmethodSystem_CAPS_staticGetHostName()

Gets the host name of the local computer.

System_CAPS_pubmethodSystem_CAPS_staticResolve(String)

Obsolete.Resolves a DNS host name or IP address to an IPHostEntry instance.

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.

The following example queries the DNS database for information on the host www.contoso.com.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1

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

Return to top
Show:
© 2016 Microsoft