Thursday, August 25, 2011

DNS lookup command

The quickest way to check what IP a domain or a subdomain resolves to is using this command:

nslookup <your_domain_name>

(e.g. nslookup google.com)

To access the command line in Windows, click Start -> Run and type cmd.

This command line tool works both on Windows and Linux.

Clearing the DNS cache


If you have changed the DNS records recently and want to check whether the DNS information has already refreshed for your domain name, it's a good idea to clear the DNS cache of your machine before running nslookup. To flush the DNS cache in Windows, use this command:

ipconfig /flushdns

1 comment: