Skip to content

Nslookup

NSLOOKUP

Domain A Record Lookup

1
    nslookup example.com

Check Authoritative Name Servers (NS) for a Domain

1
    nslookup -type=ns example.com

Query Domain Start of Authority (SoA) Zone Records

1
    nslookup -type=soa example.com

Find the Mail Exchange (MX) Records

1
    nslookup -query=mx example.com

List all Available DNS Records for a Domain

1
    nslookup -type=any example.com

Check the DNS Using a Specific DNS Server

1
    nslookup example.com <name server ip or fqdn>

Check Revers DNS Lookup

1
    nslookup 10.20.30.40

Check for Domain PTR Record

  • Remember you have to reverse the IP and add in-addr.arpa
  • This will verify the IP belongs to a specific domain
    1
    nslookup -type=ptr 1.0.168.192.in-addr.arpa
    

Check which Servers Respond Faster

1
    nslookup -timeout=5 example.com

Some Useful Output For Debugging DNS

1
    nslookup -debug example.com