Fedora 17
Sponsored Link

Configure DNS as a Slave Server2012/05/30

Configure DNS as a Slave Server. It's easy to set up it.
Following example shows an environment that master DNS is "dlp.srv.world", Slave DNS is "ns.example.host".
[1] Write config in Zone file on Master DNS.
[root@dlp ~]#
vi /etc/named.conf
# add IP address of slave DNS

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

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

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

dlp     IN  A

[root@dlp ~]#
systemctl restart named.service

[2] Configuration on Slave DNS.
[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 ~]#
systemctl restart named.service

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

# zone file in master DNS has been just transfered
Matched Content