[Samba] Samba BIND9_DLZ autoupdate PTR

L.P.H. van Belle belle at bazuin.nl
Tue Jan 22 16:14:41 UTC 2019

This is my running config..
(run :  named-checkconf -p)

What works... 
PC static ip, the PC updates A and PTR records. 
PC dhcp ip, the SERVER updates A and PTR records.  (DHCP server on the DC) 
PC dhcp ip, the dhcp server outsite the samba domain. 
		the PC updates A and PTR records. 

My complete config. ( almost change a little here ) 

acl thisserverip {;
acl all-networks {;

options {
        directory "/var/cache/bind";
        version "0.0.7";
        forwarders {;;; };

        dnssec-validation no;
        auth-nxdomain yes;    # conform to RFC1035 =no

        listen-on-v6 { "none"; };
        listen-on port 53 { "thisserverip";; };

        notify no;
        empty-zones-enable no;

        allow-query { "all-networks";; };
        allow-recursion {  "all-networks";; };

        // https://wiki.samba.org/index.php/Dns-backend_bind
        // DNS dynamic updates via Kerberos (optional, but recommended)
        tkey-gssapi-keytab "/var/lib/samba/private/dns.keytab";

include "/etc/bind/rndc.key";
    controls {
     inet allow { localhost; } keys { rndc-key;};

// Consider adding the 1918 zones here, if they are not used in your organization 
//include "/etc/bind/zones.rfc1918";
// COMMENT LVB, Take note of...  Consider adding ...  if they are not used.

// adding the dlopen ( Bind DLZ ) module for samba.
include "/var/lib/samba/private/named.conf";

// prime the server with knowledge of the root servers
zone "." {
        type hint;
        file "/etc/bind/db.root";

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
        type master;
        file "/etc/bind/db.local";

zone "127.in-addr.arpa" {
        type master;
        file "/etc/bind/db.127";

zone "0.in-addr.arpa" {
        type master;
        file "/etc/bind/db.0";

zone "255.in-addr.arpa" {
        type master;
        file "/etc/bind/db.255";

More information about the samba mailing list