Web lists-archives.com

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




*Also, I removed my zone:*
//zone "patrikx3.tk" {
//  type master;
//   file "/etc/bind/zones/db.patrikx3.tk";
//};

*Also added your conf:*
        directory "/var/cache/bind";
        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 "/var/lib/samba/private/dns.keytab";

*Same result:*
Calling samba-tool dns for SRV _ldap._tcp.Default-First-Site-Name._
sites.ForestDnsZones.ac.patrikx3.tk server.ac.patrikx3.tk 389 (add)
Calling samba-tool dns add -k no -P ['192.168.78.20', 'ac.patrikx3.tk',
'_ldap._tcp.Default-First-Site-Name._sites.ForestDnsZones', 'SRV', '
server.ac.patrikx3.tk 389 0 100']
ERROR: Record already exists

*What does it add then where? Why does add the DNS records twice?*



*Patrik*


*GTalk:  *alabard@xxxxxxxxx

*Web:*
http://www.patrikx3.tk

*Mobile:*
+36 20 342 8046 <+36+20+342+8046>

On Fri, Feb 10, 2017 at 1:23 PM, Patrik <alabard@xxxxxxxxx> wrote:

>
>
> *Not entirely sure which of your 'named' files the above are in, but
> youshould remove them, they are your problem.*
> Where is the named files?? You mean the zone/patrikx3.tk?
>
>
>
> *You shouldn't have the 'patrikx3' zone in a conf file, it is in AD anddlz
> will connect Bind to Samba**You shouldn't have any other forward zone in
> Bind.*
>
> How can I add in other in the patrikx3.tk if I use the Samba?
> Isn't it another zone? ac.patrikx3.tk?
> patrikx3.tk is my mail.patrikx3.tk, www.patrikx3.tk etc...
>
>
>
> *Patrik*
>
>
> *GTalk:  *alabard@xxxxxxxxx
>
> *Web:*
> http://www.patrikx3.tk
>
> *Mobile:*
> +36 20 342 8046 <+36+20+342+8046>
>
> On Fri, Feb 10, 2017 at 12:32 PM, Rowland Penny via samba <
> samba@xxxxxxxxxxxxxxx> wrote:
>
>> On Fri, 10 Feb 2017 12:18:35 +0100
>> Patrik <alabard@xxxxxxxxx> 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
>>
>>
>> --
>> To unsubscribe from this list go to the following URL and read the
>> instructions:  https://lists.samba.org/mailman/options/samba
>>
>
>
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba