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
[root@localhost ~]# time dig @10.0.0.1 www.yahoo.co.in ...... rc.a07.yahoodns.net. 148 IN A 22.214.171.124 ..... real 0m0.607s .....
replace 10.0.0.1 with your DNS server’s IP address.
you could also use
nslookup instead of
[root@localhost ~]# time nslookup www.yahoo.co.in 126.96.36.199 ..... Address: 188.8.131.52 ..... real 0m0.366s .....
Here i am checking the resolution time taken from GoogleDNS
Make sure you test with less commonly used domains as the common ones will be already cached in the DNS server’s cache.