Categories

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.

most-used-nslookup-commands

What is NSLOOKUP?

NSLOOKUP IS command line utility that is used for DNS queries and to lookup DNS Zone records i.e. to lookup IP address of a domain or reverse . 

If you are looking more details what is nslookup? Check the nslookup page on wikipedia.

Here are 10 widely used commands used to look up DNS zone records:

 

1. How to find the A record of а domain?

Command line:
$ nslookup example.com

2. How to check the NS records of a domain?

Command line:
$nslookup -type=ns example.com

 

3. How to query the SOA record of a domain?

Command line:
$nslookup -type=soa example.com

 

4. How to find the MX records responsible for the email exchange?

Command line:
$ nslookup -query=mx example.com

 

5. How to find all of the available DNS records of a domain?

Command line:
$ nslookup -type=any example.com

 

6. How to check a DNS record using of a specific DNS Server?

Command line:
$ nslookup example.com ns1.example.com

 

7. How to find the Reverse DNS Lookup (i.e. to resolve DNS record for an IP address) ?

Command line:
$ nslookup 8.8.8.8

 

8. How to change the DNS Server port number for the connection with DNS Server?

Command line:
$ nslookup -port=56 example.com

** if DNS server is listing on alternative port

9.How to set the timeout interval for a reply for DNS lookup query?

Command line:

$ nslookup -timeout=10 example.com

 

10. How to enable debug mode for DNS lookup query?

Debug mode provides important and detailed information both for the question and for the received answer.

Command line:
$ nslookup -debug example.com

 

 

Note:

Authoritative answer – This is the answer that originates from the DNS Server which has the information about the zone file.
Non-autoritative answer – When a nameserver is not in the list for the domain you did a lookup on.
DNS Default port – By default, the DNS servers use port 53.

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.