The nslookup command can be used in Windows and Unix to find various details relating to the Domain Name System (DNS) including IP addresses of a particular computer, MX records for a domain or the NS servers of a domain - all using DNS lookups. The name means "name server lookup". The most common version of the program is included as part of the BIND package. More modern alternative to nslookup are the "host" and "dig" programs, also shipping with BIND.

nslookup comes with a number of subcommands to help you get more information from the specific dns servers. They are:

  • server NAME (where NAME is the name or ip address of the dns server you wish to query). It is not always possible to query a specific dns server as often dns queries are blocked to prevent denial of service attacks
  • set type=NAME (where NAME is the type of record you would like to look at. For example set type mx will give you the mail records)

Example usage

Non-authoritative answer:
Addresses: , , ,

Using subcommands:

> server
Default Server:
> set type=mx
Address:   MX preference = 0, mail exchanger =
> exit

Interpretation of the standard nslookup result

The first two lines are information about the server delivering the answer to the nslookup requested by the user. The next two lines tell the user the name and IP address of the machine being looked up.

External links

Search another word or see nslookupon Dictionary | Thesaurus |Spanish
Copyright © 2015, LLC. All rights reserved.
  • Please Login or Sign Up to use the Recent Searches feature