To test the speed of your DNS server

Modern webpages reference resources from many domains. So time for DNS lookups can cause significant delay in browsing.

These days i was having slow internet speeds, and i suspect its due to bad performance by my ISP’s DNS server.

The speed of DNS lookup can be determined by the dig command combined with a time command,

[root@localhost ~]# time dig @10.0.0.1 www.yahoo.co.in
......
rc.a07.yahoodns.net.    148     IN      A       87.248.120.14
.....
real    0m0.607s
.....

replace 10.0.0.1 with your DNS server’s IP address.

you could also use nslookup instead of dig

[root@localhost ~]# time nslookup www.yahoo.co.in 8.8.8.8
.....
Address: 87.248.120.148
.....
real    0m0.366s
.....

Here i am checking the resolution time taken from GoogleDNS

You could compare the performance of your DNS server with some of the free open DNS servers like, GoogleDNS(8.8.8.8), OpenDNS(208.67.222.222)

Make sure you test with less commonly used domains as the common ones will be already cached in the DNS server’s cache.

Leave a Reply

Your email address will not be published. Required fields are marked *


3 × nine =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>