Domain Name Service Class Methods  
 
Class Description
CDnsClient Constructor which initializes the current instance of the class.
~CDnsClient Destructor which releases resources allocated by the class.
Method Description
AttachHandle Attach the specified client handle to this instance of the class.
AttachThread Attach the specified client handle to another thread.
Cancel Cancel an outstanding nameserver query.
DetachHandle Detach the handle for the current instance of this class.
DisableTrace Disable logging of network function calls.
EnableTrace Enable logging of network function calls to a file.
EnumHostAliases Enumerate the aliases for the specified host name or address.
EnumMailExchanges Return a list of mail exchanges for the specified host name or IP address.
FormatAddress Convert a numeric IPv4 address to a string.
GetAddress Convert an address string in dotted notation to a numeric IPv4 address.
GetAddressFamily Return the address family for the specified IP address.
GetDefaultHostFile Return the full path to the default host file on the local system.
GetDefaultServicesFile Return the full path to the default services file on the local system.
GetErrorString Return a description for the specified error code.
GetHandle Return the client handle used by this instance of the class.
GetHostAddress Return the IP address of the specified hostname.
GetHostByAddress Return a pointer to data for the specified host IP address.
GetHostByName Return a pointer to data for the specified host name.
GetHostFile Return the name of the current host file.
GetHostInfo Return additional information for the specified host.
GetHostName Return the host name for the specified IP address.
GetHostServices Return a list of services supported by the specified host.
GetLastError Return the last error code.
GetLocalAddress Return the IP address for the local host.
GetLocalDomain Return the local domain name for the current session.
GetLocalName Return the local host name.
GetMailExchange Return the host that processes mail for the specified domain.
GetRecord Return record data for the current host.
GetResolverAddress Return address of last nameserver that resolved query.
GetResolverOptions Return the current resolver options for the client session.
GetRetryCount Get the number of times the query is sent to each server.
GetServerAddress Return the address of the specified nameserver.
GetServerPort Return the port of the specified nameserver.
GetServiceName Return the name of a service assigned to the specified port number.
GetServicePort Return the port number assigned to the specified service name.
GetTimeout Get the number of seconds until a query times out.
HostNameToUnicode Converts the canonical form of a host name to its Unicode version.
IsInitialized Determine if the class has been successfully initialized.
MatchHostName Match a host name against of list of addresses including wildcards.
NormalizeHostName Return the canonical form of a host name.
RegisterServer Add a nameserver address to the current session.
Reset Reset the current client state.
Resolve Resolve a host name into an IP address or an IP address into a host name.
SetHostFile Specify the name of an alternate file to use when resolving host names and IP addresses.
SetLastError Set the last error code.
SetLocalDomain Set the local domain name for the current session.
SetResolverOptions Set the resolver options for the client session.
SetRetryCount Set the number of times the query is sent to each server.
SetTimeout Set the number of seconds until a query times out.
ShowError Display a message box with a description of the specified error.
UnregisterServer Remove a nameserver address from the current session.