CentOS 6
Sponsored Link

Configure Slave DNS Server2014/08/02

Configure Slave DNS Server.
The following example shows an environment that Master DNS is "dlp.srv.world", Slave DNS is "ns.example.host".
[1] Configure Master DNS server.
[root@dlp ~]#
vi /etc/named.conf
# add an IP address of slave DNS server

allow-transfer { localhost;;
[root@dlp ~]#
vi /var/named/srv.world.wan
$TTL 86400
@   IN  SOA     dlp.srv.world. root.srv.world. (
# update serial

        2014080203  ;Serial
        3600        ;Refresh
        1800        ;Retry
        604800      ;Expire
        86400       ;Minimum TTL
        IN  NS      dlp.srv.world.
# add Slave server

        IN  NS      ns.example.host.
        IN  A
        IN  MX 10   dlp.srv.world.

dlp     IN  A

[root@dlp ~]#
rndc reload

server reload successful
[2] Configure SLAVE DNS server.
[root@ns ~]#
vi /etc/named.conf
# add lines like below

    zone "srv.world" IN {
        type slave;
        masters {; };
        file "slaves/srv.world.wan";
        notify no;

[root@ns ~]#
rndc reload

server reload successful
[root@ns ~]#
ls /var/named/slaves

# zone file from Master server has been just transfered
Matched Content