dig
nslookup has been deprecated. Use dig to resolve name.
dig stands for domain information groper.
To look up the IP of a given hostname:
dig +short oracle.com
To look up the hostname of a given IP:
dig -x 141.146.8.66
The +domain parameter is useful when you are looking for a host inside a domain. For instance, suppose you are searching for the host otn in the oracle.com domain, you can either use:
dig +short otn.oracle.com
Or you can use the +domain parameter:
dig +short +tcp +domain=oracle.com otn
page revision: 0, last edited: 26 Mar 2010 02:27