Microsoft Windows includes a tool called NSLOOKUP that you can use via the command prompt. This tool can be used to check DNS records propagation and resolution using different servers and perform other troubleshooting steps.
- Open Command prompt. Read the Knowledge Base article What Is A Command Prompt? for instructions on how to do it.
- Type nslookup and hit Enter. The displayed information will be your local DNS server and its IP address. You can specify the DNS server (IP address), type of record, and domain name.
Note: all the screenshots below are for Windows OS but the same commands will work in Terminal for Mac.
- Type nslookup domain_name and the command will return the A record for the domain you ran a query for.
- Type nslookup -q=XXdomain_namewhere XX is a type of a DNS record and domain_nameis the domain you want to look up the record for. Some of the available types of records are MX, A, CNAME, and TXT. The records are then displayed.
- To look up the specific type of record for a domain usethe nslookup-type=record_type domain_namewhere record_type is A, CNAME, MX, PTR, NS, ANY and domain_nameis the domain you want to look up the record for.
Example: Type nslookup -type=ns domain_name where domain_name is the domain for your query and hit Enter.The tool will display the name servers for the domain you specified.
Notes:
- If you type help or ? you will see the list of all commands.
- By pressing theUp and Down arrows you can select previously entered commands.
Is this answer helpful?
Haven't found what you're looking for? Search the Support Center!
Print Article
Article Information
Article ID: 24552
Last updated on: 10/11/2023 10:28 AM
Product: {{item.Name}}{{$index < (answer.Products.length-1) ? ', ' : ''}}
Internal Only
Partner Article
Tags: {{item.trim()}}{{$index < (answer.Keywords.length-1) ? ', ' : ''}}
Attachments: