CentOS 5
Sponsored Link

Configure as a Slave DNS
2015/01/13
 
Configure BIND as a Slave DNS Server.
Following example shows an environment that master DNS is "dlp.srv.world", Slave DNS is "ns.example.host".
[1] Set config in a zone file on Master DNS server.
[root@dlp ~]#
vi /etc/named.conf
# add secondary DNS server in the section below

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

        2007041503  ;Serial
        3600        ;Refresh
        1800        ;Retry
        604800      ;Expire
        86400       ;Minimum TTL
)
        IN  NS      dlp.srv.world.
# add slave DNS server

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

dlp     IN  A       172.16.0.82

[root@dlp ~]#
rndc reload

server reload successful
[2] Configuration on Slave DNS server.
[root@ns ~]#
vi /etc/named.conf
# add lines like follows

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

[root@ns ~]#
rndc reload

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

srv.world.wan
# zone files just transfered
Matched Content
 
Tweet