The configuration of a secondary DNS server is similar to that of a primary DNS server, although there are some important differences:
In the previous section, the domain xyz.com was used to configure a primary DNS server. The sample /etc/named.conf file shown here is for a secondary DNS server in the same domain: options { directory "/var/named"; }; zone "." in { type hint; file "named.ca"; }; zone "xyz.com" in { type slave; file "db.xyz"; masters { 192.168.28.28; }; }; zone "28.168.192.in-addr.arpa" in { type slave; file "xyz.rev"; masters { 192.168.28.28; }; }; zone "0.0.127.in-addr.arpa" in { type master; file "named.local"; };
Note that the root domain file, named.ca , is not automatically copied from the primary DNS server; it should be manually copied once during the configuration. |