[Samba] /usr/sbin/samba_dnsupdate: ERROR: Record already exist

Rowland Penny rpenny at samba.org
Fri Feb 10 11:32:29 UTC 2017


On Fri, 10 Feb 2017 12:18:35 +0100
Patrik <alabard at gmail.com> wrote:

> Thanks so much! I will deal with the user home folders later!
> *Here is the DNS:*

These are mine:

/etc/bind/named.conf

include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";

/etc/bind/named.conf.options

options {
        directory "/var/cache/bind";
        version "0.0.7";
        notify no;
        empty-zones-enable no;
        allow-query { 127.0.0.1; 192.168.0.0/24; };
        allow-recursion { 192.168.0.0/24;  127.0.0.1/32; };
        forwarders { 8.8.8.8; };
        allow-transfer { none; };
        dnssec-validation no;
        dnssec-enable no;

        listen-on-v6 { none; };
        listen-on port 53 { 192.168.0.2; 127.0.0.1; };
        tkey-gssapi-keytab "/usr/local/samba/private/dns.keytab";
};

/etc/bind/named.conf.local

include "/usr/local/samba/private/named.conf";

I compile samba myself, so the '/usr/local/samba' paths will probably
be different for you.

> zone "patrikx3.tk" {
>    type master;
>    file "/etc/bind/zones/db.patrikx3.tk";
> };
> 
> zone "corifeus.tk" {
>    type master;
>    file "/etc/bind/zones/db.corifeus.tk";
> };
> 

> dlz "AD DNS Zone" {
>      database "dlopen
> /usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_10.so";
> };
> 

Not entirely sure which of your 'named' files the above are in, but you
should remove them, they are your problem.

You shouldn't have the 'patrikx3' zone in a conf file, it is in AD and
dlz will connect Bind to Samba

You shouldn't have any other forward zone in Bind.

Rowland




More information about the samba mailing list