How To Use NSLOOKUP to View Your DNS Records

How To Use NSLOOKUP to View Your DNS Records
This article is for the Windows OS NSLOOKUP functionality.  If your machine does not have NSLOOKUP, or are using a different OS, that information will beyond the scope of this article.
You may find the need to check the status of your domains DNS records, or check the Name Servers to see which records the servers are pulling.  
  1. Launch Windows Command Prompt by navigating to Start > Command Prompt or via Run > CMD.
  2. Type NSLOOKUP and hit Enter.  The default Server is set to your local DNS, the Address will be your local IP.

  3. Set the DNS Record type you wish to lookup by typing set type=## where ## is the record type, then hit Enter.  You may use A, AAAA, A+AAAA, ANY, CNAME, MX, NS, PTR, SOA, or SRV as the record type.
  4. Now enter the domain name you wish to query then hit Enter..  In this example, we will use  
  5. NSLOOKUP will now return the record entries for the domain you entered.

  6. You can also change the Name Servers which you are querying.  This is useful if you are checking the records before DNS has fully propagated.  To change the Name Server type server [name server].  Replace [name server] with the Name Servers you wish to use.  In this example, we will set these as  

  7. Once changed, change the query type (Step 3) if needed then enter new a new domain (Step 4.)

Add Feedback