On Tue, 10 Mar 2009 10:29:35 +0100, goarilla@work wrote:
> how does one run an authoritative DNS server for your local domain
> if one doesn't have a valid domain eg a typical home situation
> and is behind a NAT router can you run a dns for an .invalid domain ?
If you mean a DNS server on your LAN for just your machines, it is not
that hard. Install bind, configure your forwarders, create your
forward/reverse zones and enable/start named.
I always do a clean install of new Distribution releases. To keep the
work down, I automated my system changes. For my DNS server, I have
/etc/hosts with all my nodes and a script to read it and create the
forward/reverse files/tables.
I used to use home.invalid, changed to home.test. Just change them back where
you see home.test. Here are my named.conf changes from the vendor's
original named.conf using OpenDNS free DNS servers as my forwarders.
# dif /var/lib/named/etc/named.conf_vorig /var/lib/named/etc/named.conf
44c44
< // forwarders { first_public_nameserver_ip; second_public_nameserver_ip; };
---
> forwarders { 208.67.222.222; 208.67.220.220; };
139a140,152
>
> zone "home.test" IN {
> type master;
> file "master/home.zone";
> allow-update { none; };
> };
>
> zone "1.168.192.in-addr.arpa" IN {
> type master;
> file "reverse/home.reversed";
> allow-update { none; };
> };
>
[root@wm81 ~]#
Scripts which do all the work found here.
http://groups.google.com/group/alt.o...1?dmode=source
Commands to enable/start named are chkconfig and service. You may have
to change those for your distribution.