Test your DNS Server with NSLOOKUP

From Kathmann Labs

Jump to: navigation, search

Contents

[edit] Test your DNS Server with NSLOOKUP

You can use the command NSLOOKUP in both linux or windows to test your DNS Server setups.

[edit] Windows

  • Click Start, then Run...
  • Type in cmd - pull up a command prompt
  • A black DOS prompt should pop up
  • Type in nslookup
  • Type in lserver <IP Address of Server you are trying to test> - for instance lserver 4.2.2.1
  • Type in anything you want to query. See sample queries below.

[edit] Linux

  • From shell prompt, type in nslookup
  • Type in lserver <IP Address of Server you are trying to test> - for instance lserver 4.2.2.1
  • Type in anything you want to query. See sample queries below.

[edit] Sample Queries

[edit] Internet Query

  • To query to make sure internet addresses are resolving, use any web address you know. For instance www.google.com or www.msn.com or www.kathmannlabs.net
  • You should get back a response with the IP addresses of those servers
  squidproxy@kl-ubun-squidproxy:~$ nslookup
  > lserver 127.0.0.1
  Default server: 127.0.0.1
  Address: 127.0.0.1#53
  > msn.com
  Server:         127.0.0.1
  Address:        127.0.0.1#53
  
  Non-authoritative answer:
  Name:   msn.com
  Address: 207.68.172.246
  
  > google.com
  Server:         127.0.0.1
  Address:        127.0.0.1#53
  
  Non-authoritative answer:
  Name:   google.com
  Address: 64.233.187.99
  Name:   google.com
  Address: 64.233.167.99
  Name:   google.com
  Address: 72.14.207.99
  > exit
  
  squidproxy@kl-ubun-squidproxy:~$

[edit] Local Zone A Record Query

[edit] MX Record Query

[edit] SRV Record Query

Personal tools
extras