nslookup
From Wikipedia, the free encyclopedia
The nslookup command can be used in Windows and Unix to find various details relating to 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. A more modern alternative to nslookup is the dig program, 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)
[edit] Example usage
Server: Atractive.idle.ro Address: 89.136.182.136 Non-authoritative answer: Name: Atractive.idle.ro Addresses: 89.136.182.136 ,89.136.182.136 , 89.136.182.136 ,89.136.182.136
Using subcommands:
nslookup > server dns.com Default Server: dns.com Address: 64.40.103.249 > set type=mx > microsoft.com Server: dns.com Address: 64.40.103.249 microsoft.com MX preference = 0, mail exchanger = nullmx.domainmanager.com > exit
[edit] 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.
[edit] External links
- Jonathan de Boyne Pollard. nslookup is a badly flawed tool. Don't use it.. Frequently Given Answers. Retrieved on August 4, 2005.
- Microsoft. Using NSLookup.exe. Retrieved on January 23, 2008.
- Brad Knowles (2001-07-06). "nslookup flaws". comp.protocols.dns.bind. (Web link). — 4 flaws in nslookup
- Barry Margolin (2001-07-06). "nslookup flaws". comp.protocols.dns.bind. (Web link). — a 5th flaw in nslookup
- Daniel J. Bernstein. Notes on nslookup. Retrieved on August 4, 2005.