Primary Server -
192.168.0.2 -> Redhat 9 (BIND 9) Secondary Server - 192.168.0.3 -> Redhat 9 (BIND 9) |
# vi /etc/named/conf // the blackslashes are soley for comments and ease of use in your /etc/named.conf // MASTER NAME SERVER EXAMPLE options { directory "/var/named"; // version statement for security to avoid hacking known weaknesses version "get lost"; }; // required zone for recursive queries zone "." { type hint; file "root.servers"; }; zone "bobsyouruncle.com"{ type master; file "bobsyouruncle.domain"; // NOTE THIS OPTION IS FOR YOUR SLAVE SERVERS allow-transfer {192.168.0.3;}; }; // reverse lookups for class C 192.168.0.0 networks zone "0.168.192.IN-ADDR.ARPA"{ type master; file "bobsyouruncle.domain.rev"; // NOTE THIS OPTION IS FOR YOUR SLAVE SERVERS allow-transfer {192.168.0.3;}; }; |
// SLAVE NAME SERVER EXAMPLE options { directory "/var/named"; // version statement for security to avoid hacking known weaknesses version "go away" }; // zone for recursive queries // NOTE that this stays the same zone "." { type hint; file "root.servers"; }; // see notes below zone "bobsyouruncle.com"{ type slave; file "bobsyouruncle.domain.bkp"; masters {192.168.0.2;}; }; // reverse lookups for class C 192.168.0.0 network //Note: I transfer the reverse lookup as well zone "0.168.192.IN-ADDR.ARPA" IN { type slave; file "bobsyouruncle.domain.rev.bkp"; masters {192.168.0.2;}; }; |
#tail -f /var/log/messages |
Oct 24 18:09:00 bob named[4751]: starting BIND 9.2.1 -u
named Oct 24 18:09:00 bob named[4751]: using 1 CPU Oct 24 18:09:00 bob named[4751]: loading configuration from '/etc/named.conf' Oct 24 18:09:00 bob named: named startup succeeded Oct 24 18:09:00 bob named[4751]: no IPv6 interfaces found Oct 24 18:09:00 bob named[4751]: listening on IPv4 interface lo, 127.0.0.1#53 Oct 24 18:09:00 bob named[4751]: listening on IPv4 interface eth0, 192.168.0.3#53 Oct 24 18:09:00 bob named[4751]: command channel listening on 127.0.0.1#953 Oct 24 18:09:00 bob named[4751]: running <---- this one is the most important appart from you zones transfering Oct 24 18:09:04 bob named[4751]: zone bobsyouruncle.com/IN: transfered serial 2000113071 Oct 24 18:09:04 bob named[4751]: transfer of 'bobsyouruncle.com/IN' from 192.168.0.2#53: end of transfer Oct 24 18:14:45 bob named[4751]: zone 0.168.192.IN-ADDR.ARPA/IN: transfered serial 2000101071 Oct 24 18:14:45 bob named[4751]: transfer of '0.168.192.IN-ADDR.ARPA/IN' from 192.168.0.2#53: end of transfer |
named-checkconf named-checkzone |