Local DNS Server for faster DNS response time

2010-04-30 153 words 1 min read

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.


Tags: dns Fedora Linux

author

Authored By Amit Agarwal

Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it