Ubuntu 19.04
Sponsored Link

DNS Server : Configure Slave DNS Server2019/04/24

Configure BIND as a Slave DNS Server.
The following example shows an environment that master DNS is [], Slave DNS is [slave.example.host].
[1] Configure DNS master server.
vi /etc/bind/named.conf.options
options {
        directory "/var/cache/bind";

        // If there is a firewall between you and nameservers you want
        // to talk to, you may need to fix the firewall to allow multiple
        // ports to talk.  See http://www.kb.cert.org/vuls/id/800113

        // If your ISP provided one or more IP addresses for stable
        // nameservers, you probably want to use them as forwarders.
        // Uncomment the following block, and insert the addresses replacing
        // the all-0's placeholder.

        // forwarders {
        // };

         allow-query { localhost;; };
         # add a range you allow to transfer zones
         allow-transfer { localhost;;; };
         allow-recursion { localhost;; };

        // If BIND logs error messages about the root key being expired,
        // you will need to update your keys.  See https://www.isc.org/bind-keys
        dnssec-validation auto;

        auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { none; };

rndc reload

server reload successful
[2] Configure DNS slave server.
vi /etc/bind/named.conf.external-zones
        # add settings like follows
        zone "srv.world" {
                type slave;
                masters {; };
                file "/etc/bind/slaves/srv.world.wan";

mkdir /etc/bind/slaves

chown bind. /etc/bind/slaves

rndc reload

server reload successful
ls /etc/bind/slaves

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