Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using google open DNS. How can I measure the speed of a DNS server?

share|improve this question
up vote 2 down vote accepted

You Can use the folllowing command:

  dig YOURDOMAIN +nssearch 
share|improve this answer

If you just want to time the lookup of a single record, use time dig a foobar.com @ This testing method really isn't that good since after the first lookup, you'll be getting cached results and whatever server is closer to you will give you the fastest response.

namebench is probably the tool you're looking. It does lookups based on domains are in your browser cache, random records from a list of popular records, etc. It is highly configureable to test your preferred list of DNS servers, your list of records, etc.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.