| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
TCP/IP DNS Name Resolution and Information Lookup Utilities (nslookup, host and dig) (Page 2 of 5) The nslookup Utility To support all of these needs, modern TCP/IP implementations come equipped with one or more DNS name resolution and information lookup utilities. One of the most common DNS diagnostic utilities is nslookup (name server lookup), which has been around for many years. The details of how the program is implemented of course depend on the operating system, though most of them are quite similar in operation and settings. The utility can normally be used in two modes: interactive or non-interactive. The non-interactive version of nslookup is the simplest, and is most often used when an administrator wants to just quickly translate a name into an address or vice-versa. It is run by issuing the nslookup command using the following simple syntax: nslookup <host> [<server>] Here, <host> can be a DNS domain name, in which case a normal resolution will be performed, or it may be an IP address, which will cause nslookup to do a reverse resolution to return the associated DNS domain name. The <server> parameter is optional; if omitted, the program uses the default name server of the host where the command was issued. Table 290 shows a simple example of non-interactive use of nslookup.
This example was done on my home PC that uses the Starband satellite Internet service; it is configured to use Starbands name server (ns1-mar.starband.com). The answer provided here is labelled non-authoritative because it came not from one of the DNS name servers that is a DNS authority for www.pcguide.com, but rather the Starband name servers DNS cache.
Home - Table Of Contents - Contact Us The TCP/IP Guide (http://www.TCPIPGuide.com) Version 3.0 - Version Date: September 20, 2005 © Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved. Not responsible for any loss resulting from the use of this site. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||