[Samba] Samba and Bind9 was (no subject)

Rowland penny rpenny at samba.org
Sun Jan 17 13:15:02 UTC 2021


On 17/01/2021 12:10, Hoang Quynh wrote:
> Dear Rowland
>
> I send you file config.
> please check it.
>
You have several problems with your files, one of which I was expecting.

You do not put the AD zones into the bind9 conf files.

Try these files:

/etc/named.conf

options {
     directory     "/var/named";
     dump-file     "/var/named/data/cache_dump.db";
     notify no;
     empty-zones-enable no;
     allow-query { localhost; 192.168.0.0/16; };
     allow-recursion { 192.168.0.0/16; 127.0.0.1/32; };
     forwarders { 8.8.8.8; 8.8.4.4; };
     allow-transfer { none; };
     dnssec-validation no;
     dnssec-enable no;
     dnssec-lookaside no;
     listen-on-v6 { none; };
     listen-on port 53 { 127.0.0.1; 192.168.0.146; };
     minimal-responses yes;
     auth-nxdomain yes;
     tkey-gssapi-keytab "/usr/local/samba/bind-dns/dns.keytab";
};

logging {
         channel default_debug {
                 file "data/named.run";
                 severity dynamic;
         };
};

zone "." IN {
     type hint;
     file "named.ca";
};

include "/etc/named.rfc1912.zones";
include "/usr/local/samba/bind-dns/named.conf";


/etc/named.rfc1912.zones

zone "localhost.localdomain" IN {
     type master;
     file "named.localhost";
     allow-update { none; };
};

zone "localhost" IN {
     type master;
     file "named.localhost";
     allow-update { none; };
};

zone 
"1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" 
IN {
     type master;
     file "named.loopback";
     allow-update { none; };
};

zone "1.0.0.127.in-addr.arpa" IN {
     type master;
     file "named.loopback";
     allow-update { none; };
};

zone "0.in-addr.arpa" IN {
     type master;
     file "named.empty";
     allow-update { none; };
};


Delete these files:

/var/named/zenplaza.com.db
/var/named/zenplaza.com.rev

Now see if Bind9 will start.

Rowland





More information about the samba mailing list