DNS Lookup

You are here:

Most mainstream operating systems come with a standard set of DNS tools that allow you to perform certain tasks.

Many of these tools are useful for analysing DNS records. You can perform manual DNS lookups, through your locally defined DNS server or via alternate servers in order to make sure your DNS records have been updated or if you are having problems they can help to diagnose them. It is also possible to flush your DNS and clear the cache if needed.

Windows DNS Tools

From the command prompt, you can run the nslookup command with a set of parameters that allow you to do certain things. One of the most common operations you may wish to perform is to do a simple lookup. This can be done by running the nslookup command followed by the hostname you wish to resolve. Eg.

nslookup www.whatsmydns.net

This method of lookup will use your locally defined DNS server (usually handed out by your networks router).

Sometimes it is useful to do a lookup to an alternate name server, in the case that your default name server is not returning correct results. To perform a lookup on an alternate name server you simply add it as the second parameter to the command line. Eg.

nslookup www.whatsmydns.net ns1.server.com