BIND9 SLAVE DNS 2 AD DNS

File: /etc/bind/named.conf.options

acl "dns_master" { AD_DNS_SERVER_IP; };
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 {
                8.8.8.8;
        };

        //========================================================================
        // 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
        //========================================================================

        check-names master warn; // Must be WARN only for AD
        allow-notify { localhost; AD_DNS_SERVER_IP; };
        allow-transfer { localhost; AD_DNS_SERVER_IP; };
        edns-udp-size 4096;
        max-udp-size 4096;
        dnssec-enable yes; //optional
        dnssec-validation yes;
        dnssec-lookaside no; // MUST be auto for AD

//      listen-on-v6 { any; };
};
zone "etab.local" {
    type slave;
    masters { AD_DNS_SERVER_IP; };
    file "/var/cache/bind/slave/etab.local.db";
    allow-transfer { dns_master; };
    allow-notify { dns_master; };
};

File:

Leave a comment

Your email address will not be published. Required fields are marked *