Ubuntu 20.04
Sponsored Link

BIND : Configure Secondary Server2020/05/03

Configure DNS Secondary Server (Slave Server).
On this example, it shows to configure DNS Secondary Server [ns.server.education] ( that DNS Master Server is [dlp.srv.world] ( configured like here. Replace IP address and Hostname to your own environment.
[1] Configure on DNS Master Server Host.
vi /etc/bind/named.conf.options
options {
        directory "/var/cache/bind";
        allow-query { localhost; internal-network; };
        # add secondary server to allow to transfer zone files
        allow-transfer { localhost;; };
        allow-recursion { localhost; internal-network; };

vi /etc/bind/srv.world.wan
$TTL 86400
@   IN  SOA     dlp.srv.world. root.srv.world. (
        # update serial if update zone file
        2020050303  ;Serial
        3600        ;Refresh
        1800        ;Retry
        604800      ;Expire
        86400       ;Minimum TTL
        IN  NS      dlp.srv.world.
        # add secondary server
        IN  NS      ns.server.education.
        IN  A
        IN  MX 10   dlp.srv.world.

dlp     IN  A
www     IN  A

systemctl restart named

[2] Configure onDNS Secondary Server Host.
vi /etc/bind/named.conf.external-zones
# add target zone info

# for IP address, it's the Master server's IP address

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

systemctl restart named
ls /etc/bind/slaves

# zone file transfered
Matched Content