How Do I Use The NSLOOKUP Tool In The Command Prompt Or Terminal?
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=XX domain_name where XX is a type of a DNS record and domain_name is 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 use the nslookup -type=record_type domain_name where record_type is A, CNAME, MX, PTR, NS, ANY and domain_name is 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 the Up and Down arrows you can select previously entered commands.
No comments:
Post a Comment