On my network, I have a few computers, so I wanted one to cache dns entries and the rest to go through that computer, making my name resolution faster for frequently visited sites.
- Install bind9: sudo apt-get install bind9
- Edit /etc/resolv.conf on any system that will go through this nameserver, and add: ‘nameserver 192.168.1.2′ where nameserver is the ip of your server
- Modify /etc/bind/named.conf.options on the nameserver, and add:
forward only; forwarders { 208.67.220.220; 208.67.222.222; };
Restart the nameserver and visit welcome.opendns.com and it should say everything is good to go. These name servers are noticeably faster than my ISP provided ones. Update: Also check out Christer’s post, didn’t check the planet before I posted.
Related posts:
#1 by Samat Jain on March 14, 2007 - 11:57 pm
Quote
If you’re using a caching DNS server local to your network, do you really notice the speed difference between your ISP’s and OpenDNS’ servers?
#2 by sharms on March 15, 2007 - 12:22 am
Quote
Yes, on the first hit for websites not already cached. This is most apparent on a site like myspace that may load several domain names.
#3 by Marius Gedminas on March 15, 2007 - 12:04 pm
Quote
Won’t that also make your machine a DNS server for everyone on the Internet, that can be used in DDoS attacks?
#4 by mindwarp on March 15, 2007 - 3:15 pm
Quote
That depends on your firewall configuration. Most personal firewalls such as linksys, d-link etc won’t by default forward dns traffic inside your network.