RHEL secondary Name Server

Open /etc/named.conf

//
// named.conf for Red Hat caching-nameserver
//

options {
directory “/var/named”;
dump-file “/var/named/data/cache_dump.db”;
statistics-file “/var/named/data/named_stats.txt”;

// query-source address * port 53; (only needed when there is a FW between master an slave)
allow-transfer {192.168.1.104/24;}; (slaveip)
};

//
// a caching only nameserver config
//

controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone “localhost” IN {
type master;
file “localhost.zone”;
allow-update { none; };
};

zone “yourdomain.com” IN {
type slave;
file “/var/named/yourdomain.com.zone”;
// allow-update { none; };
allow-transfer { 192.168.1.1/24; };
masters { 192.168.1.1; };
};

zone “1.168.192.in-addr.arpa” IN {
type slave;
file “/var/named/1.168.192.rev”;
// allow-update { none; };
allow-transfer { 192.168.1.1/24; };
masters { 192.168.1.1; };
};

include “/etc/rndc.key”;

Thats it. Restart the nameserver