Using nslookup

nslookup is a debugging tool provided with Windows NT 4.0. It allows anyone to directly query a name server and retrieve any of the information known to the DNS system. It is helpful for determining if the server is running correctly and is properly configured, or for querying for information provided by remote servers.

nslookup is used in the Windows NT command window to resolve queries either interactively or directly from the command line. Below is a command-line example of using nslookup to query for the IP address of a host:


Non-authoritative answer:

Here, a user asks nslookup to provide the address of nslookup displays the name and address of the server used to resolve the query, and then it displays the answer to the query. Notice the “Non-authoritative” message in the response. is our local server. This messages tells us that the local server retrieved this answer from its cache. As we’ll see shortly, when you need to do so, nslookup allows you to go directly to the remote authoritative server for an answer.

The real power of nslookup is seen in interactive mode. To enter interactive mode, type nslookup on the command line without any arguments. Terminate an interactive session by entering Control-C (^C) or the exit command at the nslookup prompt. Redone in an interactive session, the query shown earlier is:

C:\>nslookup ...

Get Windows NT TCP/IP Network Administration now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.