Contact Hosting Australia

1300 761 930

NSLOOKUP - Troubleshooting DNS Print

  • dns, nslookup, tips, troubleshooting, migrating
  • 3

NSLOOKUP is a tool included with Windows, that will allow you to check DNS records via your router, or other external servers. Its a very handy tool to troubleshoot website issues, particularly when you have just migrated or changed DNS.

To open NSLOOKUP:

  1. Press and hold the Windows Key on your keyboard, then press R.
  2. In the RUN box that appears, type: cmd and press enter.
  3. On the command prompt, type: nslookup and press enter.
You will be presented with a screen similar to be below:



As you can see, the screen below is using the local Router (192.168.0.1) as the default server. This means any DNS records are coming from that server.

It can be handy to check DNS against other servers, to be sure your DNS server hasn't cached the records.

To change to another server, for example Googles Public DNS server, type:

server 8.8.8.8



You can see the server is now showing as google-public-dns-a.google.com.  Which basically means any queries you enter from here, will be how google "sees" things.

The beauty of NSLOOKUP is that you can query various DNS types, we have listed the main 4 you will use below:

CNAME - Canonical Name
MX - Mail Routing
NS - Name Servers
A - A records

To change the query type, you use the command: 'set q=[TYPE]' where type is one of the above 4 DNS record types. For example:

set q=mx

...will swap the query to Mail Records, or:

set q=ns

...will query the NameServers. 

See examples of both below, Red arrows showign the change of Query type and the green showing the results.


Was this answer helpful?

« Back