NSLOOKUP - Troubleshooting DNS
Whatsapp +212662161818 7j/7 de 8h à  22h GMT

NSLOOKUP - Troubleshooting DNS


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.


  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 ( 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:


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.