Usage:

RESOLVE {Hostname | IP_Address | /D:@IP | /E:@IP}

If given a hostname it will attempt to resolve the IP address. If given an IP address it will attempt to resolve the hostname.

RESOLVE does its best to extract the correct hostname or IP address part. Thus the following examples are also considered acceptable syntax:

RESOLVE \\192.168.0.101\ipc$
RESOLVE \\server1\share1\rest_of_UNCPath\file1.exe
RESOLVE http://www.jpsoft.com/ftp/beta/

The following switches are only available in the Resolve plugin for 4NT/TCMD:
/D:@IP  - disables the replacement of 4NT's @IPNAME and @IPAddress functions.
/E:@IP  - enables the replacement of 4NT's @IPNAME and @IPAddress functions.

Returns error code  0 if successful in resolving hostname or IP address.
Returns error code -1 if UNsuccessful in resolving hostname or IP address.
Returns error code -9 for all other errors (including showing this help).



Note that in the examples below 'C:\Utils>' is my prompt at the command line. You don't type this in. :-)  and yes someone asked.

Example #1  - Resolve www.jpsoft.com to it's IP address:

C:\Utils> resolve http://www.jpsoft.com
66.242.19.217

Example #2  - Resolve the IP address 66.242.19.217 to it's hostname:

C:\Utils> resolve 66.242.19.217
jpsoft.com


Copyright © 2004-2007 Gerald's Tools