The following sample displays the IP address(es) of the host:
Dim n As New LookupNS MsgBox n.Query("yahoo.com").Address
The LookupNS object supports the following properties and methods:
Name | Description | |||
Debug | Retrieves a string for debug purpose. | |||
DefaultServer | Retrieves the default DNS server. | |||
LastError | Retrieves a value that indicates the last error occurred. | |||
LastErrorCode | Retrieves the code of the last error. | |||
Port | Retrieves or sets a value that indicates the port to send query on. By default is 53. | |||
Query | Retrieves a Message object that contains information about the Host. | |||
QueryClass | Retrieves or sets the class of the query. | |||
Separator | Retrieves or sets a value that indicates the string expression used to separate multiple values. | |||
Server | Retrieves or sets a value that indicates the default server. | |||
TimeOut | Specifies the amount of time (in seconds) the control will wait for the server response. |