SLES 15
Sponsored Link

BIND : Configure Slave DNS Server2019/01/17

 
Configure Slave DNS Server.
The following example shows an environment that Master DNS is [dlp.srv.world], Slave DNS is [ns.example.slave].
[1] Configure Master DNS server.
dlp:~ #
vi /etc/named.conf
        # add an IP address of slave DNS server to allow to transfer zone files
        allow-transfer { localhost; 172.16.0.85; };

dlp:~ #
vi /var/lib/named/srv.world.wan
$TTL 86400
@   IN  SOA     dlp.srv.world. root.srv.world. (
        # update serial
        2019011603  ;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       172.16.0.82
        IN  MX 10   dlp.srv.world.

dlp     IN  A       172.16.0.82

dlp:~ #
systemctl restart named

[2] Configure Slave DNS server.
ns:~ #
vi /etc/named.conf
# add lines like follows

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

ns:~ #
systemctl restart named

ns:~ #
ls /var/lib/named/slave

srv.world.wan    
# zone file from Master server has been transfered
Matched Content