comp • gb.net • dnsclient

DnsClient (gb.net)

This class implements a simple client for Name/IP resolution services, so you can obtain IP addresses from host names or vice versa.

This class can perform its work synchronously, so the program will not respond to events while resolving host names/IPs, usually for a few seconds, or asynchronously. Default is synchronous.

This class is
Creates a new DNS client object.
creatable
.

Properties

Methods Events
Returns or sets the asynchronous mode of the DNS client.
Async  
This property can be used in two ways:
HostIP  
This property can be used in two ways:
HostName  
This property reflects the current DnsClient object status:
Status  
Takes the name of the host stored in the HostName property, and tries to resolve it.
GetHostIP  
Takes the IP of the Host stored in the HostIP property, and tries to resolve it.
GetHostName  
Cancels an asynchronous request.
Stop  
This event is raised when an asynchronous resolution request terminates.
Finished