DNS Server with Bind and local Dynamic DNS with DHCP


UPDATE: I’ve moved my DNS Server back to the router using DD-WRT. Having it on the server was giving me trouble within MythTV. It was unable to find the tuners, making watching TV impossible… So here is what I did, but I wouldn’t recommend it. Turning on DNSMasq with the LocalDNS as home gave me the result with much less work as I was trying to achieve using the procedures below.

I want an internal network name of .home for referencing all the internal devices, and it looks like that is done using bind. I followed this and this guide.

Installing it is easy enough, dnsutils are also useful: sudo apt-get install bind9 dnsutils

Then edit the configuration file with sudo nano /etc/bind/named.conf.options

Set the forwarders with the following, this will be where uncached requests will be found:

	forwarders {
		8.8.8.8;
		8.8.4.4;
	};

Edit the configuration file with sudo nano /etc/bind/named.conf.local to include:

zone "home" {
             type master;
             file "/etc/bind/db.home";
        };
 
zone "10.10.10.in-addr.arpa" {
        type master;
        notify no;
        file "/etc/bind/db.10";
};

then

Leave a Reply

Your email address will not be published.