The iresolve application will aid in TCP/IP name resolution by attempting to lookup a host name or IP address. The application performs a forward and reverse lookup of the machine specified. Any mention QNX in this document refers to the QNX 4.x OS.
The syntax of iresolve is:
iresolve host_name|IP_address
If you supply a host name, iresolve will first attempt to resolve the supplied host name to an IP address and then take the resolved IP address and attempt to resolve this to a host name and then compare the resolved host name with the supplied host name. The host names must match for the resolution to be a success.
If you supply an IP address, iresolve will first attempt to resolve the supplied IP address to a host name and then take the resolved host name and attempt to resolve this to an IP address and then compare the two IP addresses. They must match.
Iresolve will use whatever name resolution method you have defined for you TCP/IP stack (host table, DNS etc). The application uses the standard socket calls gethostbyname and gethostbyaddress.
If iresolve is not able to fully resolve, this indicates that there are problems with your TCP/IP configuration.
The iresolve application can be compiled on any stated platform except DOS and QNX where there is no TCP IPC method. Under the Linux/Unix operating systems, iresolve can be compiled using the mkiresolve script.