Running a Host Name Lookup Using the Network Test Tool in the Command Line

Updated

You can use the tool to perform a host name lookup and retrieve the network interface information of a client.

During the lookup request, the tool uses the following lookup methods on the target client:

  • DNS (Domain Name Service) lookup

  • Host file lookup

  • Forward and reverse lookup

Before You Begin

If you plan to run the tool on a Macintosh client, run the following command before using the tool:

export DYLD_LIBRARY_PATH=/opt/Software_Installation_Directory/Base

Procedure

From the command prompt, go to the Software_Installation_Directory/Base directory, and then run the following command:

CvNetworkTestTool -lookup -HostName hostname -log location

Where:

  • -lookup looks for the target client by using lookup methods, such as DNS and host file lookups.

  • -HostName specifies the host name or IP address of the target client.

  • (Optional) -log specifies the location of the log file. If you want to redirect the output to a separate file, specify the following: -log Log_Location > OutputFile_Location.

Examples:

  • On Windows:

    CvNetworkTestTool -lookup -HostName myclient.mydomain.com -log C:\lookup.log
        
    
  • On UNIX, Linux, or Macintosh:

    ./CvNetworkTestTool -lookup -HostName myclient.mydomain.com -log logs/lookup.log
        
    

Tip: During the connectivity check, you can stop the data transmission by pressing the Esc key.

Result

The command returns the network interface Information of the target client.

Was this page helpful?