857 Views
You may use the NSLOOKUP utility on the command prompt on Windows computers. As well as other diagnostic functions, this tool may be used to test the propagation and resolution of DNS records across several servers.
Go to Start and type cmd in the search field to open the command prompt. Alternatively, go to Start > Run > type cmd or command.
- 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.
- Type nslookup and domain name and the command will return the A record for the domain you run a query for.
- Type nslookup -q=XX where XX is a type of a DNS record. Some of the available types are MX, A, CNAME, and TXT. The records are then displayed, to exit the tool type exit
- 4. To use nslookup as a troubleshooting tool, you can set the specific type of record to lookup for a domain by using the -type=record_type where record_type is A, CNAME, MX, PTR, NS, ANY.
- Type nslookup -type=ns domain_name where domain_name is the domain for your query and hit Enter. Now 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 Up and Down arrows you can select previously entered commands.