[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 ) 

/etc/bind/named.conf.options
acl thisserverip {
        192.168.0.1;
        };
acl all-networks {
        192.168.249.0/24;
        };

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

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

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

        notify no;
        empty-zones-enable no;

        allow-query { "all-networks"; 127.0.0.1/32; };
        allow-recursion {  "all-networks"; 127.0.0.1/32; };

        // 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 127.0.0.1 allow { localhost; } keys { rndc-key;};
};

/etc/bind/named.conf.local
// 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";


/etc/bind/named.conf.default-zones
// 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