Local DNS Server for faster DNS response time

2010-04-30 1 min read Fedora Linux

Here’s a quick tip for faster DNS response time. I installed a local DNS server which can contact the remote DNS server and enabled caching for the local DNS server. This ensures that the response time for the DNS queries is much faster.

I am on Fedora 10, so here’s what I was required to do:

yum install dnsmasq

After this I created a file called /etc/resolve.dns with the nameserver address’s and heres what it looks like:

nameserver <span style="text-decoration: line-through;">1.1.1.1
nameserver <span style="text-decoration: line-through;">2.2.2.2

And then configure the DNS server to use the newly created file for the DNS name resolution.<span style="text-decoration: line-through;">

resolv-file=resolv.dns<span style="text-decoration: line-through;">

And then configure your network interface to listen to the local interface and you are done. So now when a DNS query is made for the first time, the local DNS server queries the servers given in the file.  So enjoy a little faster browsing time.

comments powered by Disqus