Some versions of Windows come with a tool called NSLOOKUP that you can use via the command prompt. This tool can be used to check DNS records propagation using different servers, to confirm proper DNS resolution, and perform other troubleshooting steps.

Go to Start and type cmd in search field to open the command prompt. Alternatively, go to Start > Run > type cmd or command.

CMD

Type nslookup and hit Enter. You will need to specify the DNS server, type of record and a domain name. The default server will be your local DNS server. NSLOOKUP returns A record for the domain you run query for.

nslookup

The best way to run nslookup as a troubleshooting tool is to start with the root servers and follow the path to the final authorative name server. Follow the steps below in order to find authorative name servers, and check for their response.

  1. Type domain_name DNS_server_name where domain_name is your query and DNS_server_name is one of the following and hit Enter:
    • B.ROOT-SERVERS.NET
      J.ROOT-SERVERS.NET
      K.ROOT-SERVERS.NET
      L.ROOT-SERVERS.NET
      M.ROOT-SERVERS.NET
      I.ROOT-SERVERS.NET
      E.ROOT-SERVERS.NET
      D.ROOT-SERVERS.NET
      A.ROOT-SERVERS.NET
      H.ROOT-SERVERS.NET

      Root Servers
  2. Now the tool will display the next servers you need to use.
    Type domain_name DNS_server_name where DNS_server_name is one of the following and hit Enter:
    • B.GTLD-SERVERS.NET
      L.GTLD-SERVERS.NET
      C.GTLD-SERVERS.NET
      K.GTLD-SERVERS.NET
      G.GTLD-SERVERS.NET
      H.GTLD-SERVERS.NET
      E.GTLD-SERVERS.NET
      I.GTLD-SERVERS.NET
      D.GTLD-SERVERS.NET
      F.GTLD-SERVERS.NET
      J.GTLD-SERVERS.NET
      A.GTLD-SERVERS.NET
      M.GTLD-SERVERS.NET

      Name Servers
  3. Now the tool will display the Name Servers for this domain name. Use them to make a final lookup.
    • Type nslookup -q=XX where XX is a type of a DNS record.  Some of the available types are MX, A, CNAME, and TXT.

      NameServer nslookup
  4. The records are displayed.
  5. To exit the tool type exit.

Notes:

  • If you type help or ? you will see the list of all commands.
  • By pressing Up and Down arrows you can select previously entered commands.