System::Net::Dns class

Dns class

Provides methods to work with DNS.

class Dns : public System::Object

Methods

MethodDescription
static BeginGetHostAddresses(String, AsyncCallback, System::SharedPtr<Object>)Initiates an asynchronous operation to create a new IPHostEntry-class instance using the specified string that contains a host name or IP address.
static BeginGetHostByName(String, AsyncCallback, System::SharedPtr<Object>)Initiates an asynchronous operation to create a new IPHostEntry-class instance using the specified host name.
static BeginGetHostEntry(String, AsyncCallback, System::SharedPtr<Object>)Initiates an asynchronous operation to create a new IPHostEntry-class instance using the specified string that contains a host name or IP address.
static BeginGetHostEntry(System::SharedPtr<IPAddress>, AsyncCallback, System::SharedPtr<Object>)Initiates an asynchronous operation to create a new IPHostEntry-class instance using the specified IP address.
static BeginResolve(String, AsyncCallback, System::SharedPtr<Object>)Initiates an asynchronous operation to create a new IPHostEntry-class instance using the specified host name.
Dns()The deleted default constructor.
static EndGetHostAddresses(System::SharedPtr<IAsyncResult>)Waits until the specified asynchronous operation to create a new IPHostEntry-class instance completes.
static EndGetHostByName(System::SharedPtr<IAsyncResult>)Waits until the specified asynchronous operation to create a new IPHostEntry-class instance completes.
static EndGetHostEntry(System::SharedPtr<IAsyncResult>)Waits until the specified asynchronous operation to create a new IPHostEntry-class instance completes.
static EndResolve(System::SharedPtr<IAsyncResult>)Waits until the specified asynchronous operation to create a new IPHostEntry-class instance completes.
static GetHostAddresses(String)Returns a collection of IP addresses of the specified host name or IP address.
static GetHostByAddress(String)Creates a new IPHostEntry-class instance using the specified string representation of an IP address.
static GetHostByAddress(System::SharedPtr<IPAddress>)Creates a new IPHostEntry-class instance using the specified IP address.
static GetHostByName(String)RTTI information.
static GetHostEntry(String)Creates a new IPHostEntry-class instance using the specified string that contains a host name or IP address.
static GetHostEntry(System::SharedPtr<IPAddress>)Creates a new IPHostEntry-class instance using the specified IP address.
static GetHostName()Returns the host name of the local machine.
static Resolve(String)Creates a new IPHostEntry-class instance using the specified host name.

See Also