Using the nslookup Utility Networking

Whenever you are configuring a server or workstation to connect to the Internet, you will always have to configure DNS if you want name resolution to happen (i.e., if you want to be able to type instead of an IP address). When configuring DNS, it is very advantageous to be able to test what IP address DNS is returning to ensure that it is working properly. The nslookup utility allows you to query a name server and quickly find out which name resolves to which IP address.

The nslookup utility comes with Windows NT and later, as well as most versions of UNIX and Linux. It did not, however, come with Windows 95/98. You can run it from a Windows command prompt. Once you are at the command prompt, you can start the nslookup utility by simply typing nslookup and pressing Enter. Once you’re inside this utility, the command prompt will change from something similar to C:> sign to a shorter > sign. It will also displaythe name and IP address of the default DNS server you will be querying (you can change it, if necessary). Once here, you can start using nslookup. The following output shows a sample of the display after the nslookup command has been entered at the C:> prompt.

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

Default Server:

The primary job of nslookup is to tell you the many different features of a particular domain name, the name servers that serve it, and how they are configured. For example, you can simply type in a domain name at the > prompt, like so:


The nslookup utility would return this information:
Non-authoritative answer:

This tells you that the server that returned the information was not responsible (authoritative) for the zone information of the domain for which you requested an address and that the name server for the domain is located at the IP address This means that when your computer wants to talk to, it must talk to the name server at to find out the IP address of the host called www on the domain.

You can also ask nslookup for other information by setting a different option within nslookup. Just type set option at the > prompt and replace option with the actual option you want to use. Table gives some of the common options and their uses.

The ns lookup options and their uses

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd Protection Status

Networking Topics