[Samba] samba 4.7.6-Ubuntu + ipv6 not work bind9-DLZ

spiderslack spiderslack at yahoo.com.br
Mon Sep 10 13:56:46 UTC 2018


Hi, all


I trying setting domain samba with bind9-DLZ. I followed the tutorial 
https://wiki.samba.org/index.php/Setting_up_Samba_as_an_Active_Directory_Domain_Controller, 
but not work. see the tests bellow


ricardobarbosa at isadora:~$ bash tools/testSambaRecords.sh
Host _ldap._tcp.freewaynet.corp not found: 3(NXDOMAIN)
Host _kerberos._udp.freewaynet.corp not found: 3(NXDOMAIN)
Host agamenon.freewaynet.corp not found: 3(NXDOMAIN)
ricardobarbosa at isadora:~$

following link to troubleshooting


------------------------ inicio -------------------------------
root at agamenon:~# ps axf | egrep "samba|smbd|winbind"
  1283 pts/0    S+     0:00  |                   \_ samba -i
  1284 pts/0    S+     0:00  |                       \_ samba -i
  1290 pts/0    S+     0:00  |                       |   \_ samba -i
  1291 ?        Ss     0:00  |                       |       \_ 
/usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground 
--log-stdout
  1305 ?        S      0:00  |                       |           \_ 
/usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground 
--log-stdout
  1306 ?        S      0:00  |                       |           \_ 
/usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground 
--log-stdout
  1307 ?        S      0:00  |                       |           \_ 
/usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground 
--log-stdout
  1285 pts/0    S+     0:00  |                       \_ samba -i
  1286 pts/0    S+     0:00  |                       \_ samba -i
  1287 pts/0    S+     0:00  |                       \_ samba -i
  1288 pts/0    S+     0:00  |                       \_ samba -i
  1289 pts/0    S+     0:00  |                       \_ samba -i
  1292 pts/0    S+     0:00  |                       \_ samba -i
  1293 pts/0    S+     0:00  |                       \_ samba -i
  1295 pts/0    S+     0:00  |                       \_ samba -i
  1297 pts/0    S+     0:00  |                       \_ samba -i
  1298 pts/0    S+     0:00  |                       \_ samba -i
------------------------------------------------------------


-------------------------------------------------------------

root at agamenon:~# named -V
BIND 9.11.3-1ubuntu1.1-Ubuntu (Extended Support Version) <id:a375815>
running on Linux x86_64 4.15.0-33-generic #36-Ubuntu SMP Wed Aug 15 
16:00:05 UTC 2018
built by make with '--build=x86_64-linux-gnu' '--prefix=/usr' 
'--includedir=/usr/include' '--mandir=/usr/share/man' 
'--infodir=/usr/share/info' '--sysconfdir=/etc' '--localstatedir=/var' 
'--disable-silent-rules' '--libdir=/usr/lib/x86_64-linux-gnu' 
'--libexecdir=/usr/lib/x86_64-linux-gnu' '--disable-maintainer-mode' 
'--disable-dependency-tracking' '--libdir=/usr/lib/x86_64-linux-gnu' 
'--sysconfdir=/etc/bind' '--with-python=python3' '--localstatedir=/' 
'--enable-threads' '--enable-largefile' '--with-libtool' 
'--enable-shared' '--enable-static' '--with-gost=no' 
'--with-openssl=/usr' '--with-gssapi=/usr' '--with-libjson=/usr' 
'--without-lmdb' '--with-gnu-ld' '--with-geoip=/usr' '--with-atf=no' 
'--enable-ipv6' '--enable-rrl' '--enable-filter-aaaa' 
'--enable-native-pkcs11' '--with-pkcs11=/usr/lib/softhsm/libsofthsm2.so' 
'--with-randomdev=/dev/urandom' 'build_alias=x86_64-linux-gnu' 
'CFLAGS=-g -O2 
-fdebug-prefix-map=/build/bind9-O2kLHp/bind9-9.11.3+dfsg=. 
-fstack-protector-strong -Wformat -Werror=format-security 
-fno-strict-aliasing -fno-delete-null-pointer-checks -DNO_VERSION_DATE 
-DDIG_SIGCHASE' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro 
-Wl,-z,now' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'
compiled by GCC 7.3.0
compiled with OpenSSL version: OpenSSL 1.1.0g  2 Nov 2017
linked to OpenSSL version: OpenSSL 1.1.0g  2 Nov 2017
compiled with libxml2 version: 2.9.4
linked to libxml2 version: 20904
compiled with libjson-c version: 0.12.1
linked to libjson-c version: 0.12.1
compiled with zlib version: 1.2.11
linked to zlib version: 1.2.11
threads support is enabled

root at agamenon:~# cat /etc/bind/named.conf
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in 
/etc/bind/named.conf.local

include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
include "/var/lib/samba/private/named.conf";


root at agamenon:~# cat /var/lib/samba/private/named.conf
# This DNS configuration is for BIND 9.8.0 or later with dlz_dlopen support.
#
# This file should be included in your main BIND configuration file
#
# For example with
# include "/var/lib/samba/private/named.conf";

#
# This configures dynamically loadable zones (DLZ) from AD schema
# Uncomment only single database line, depending on your BIND version
#
dlz "AD DNS Zone" {
     # For BIND 9.8.x
     # database "dlopen /usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9.so";

     # For BIND 9.9.x
     # database "dlopen 
/usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_9.so";

     # For BIND 9.10.x
     # database "dlopen 
/usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_10.so";

     # For BIND 9.11.x
      database "dlopen 
/usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_11.so";
};

root at agamenon:~#


when i run the command "samba_dnsupdate" i get the following messages:


------------------------------------------------------

root at agamenon:~# samba_dnsupdate --verbose --all-names
IPs: ['2001:db8:3:0:20c:29ff:fecb:5299', '192.168.1.252']
force update: A agamenon.freewaynet.corp 192.168.1.252
force update: AAAA agamenon.freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299
force update: NS freewaynet.corp agamenon.freewaynet.corp
force update: NS _msdcs.freewaynet.corp agamenon.freewaynet.corp
force update: A freewaynet.corp 192.168.1.252
force update: AAAA freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299
force update: SRV _ldap._tcp.freewaynet.corp agamenon.freewaynet.corp 389
force update: SRV _ldap._tcp.dc._msdcs.freewaynet.corp agamenon.freewaynet.corp 389
force update: SRV _ldap._tcp.9ab474e0-d6c2-431d-a769-c44ba1f20818.domains._msdcs.freewaynet.corp agamenon.freewaynet.corp 389
force update: SRV _kerberos._tcp.freewaynet.corp agamenon.freewaynet.corp 88
force update: SRV _kerberos._udp.freewaynet.corp agamenon.freewaynet.corp 88
force update: SRV _kerberos._tcp.dc._msdcs.freewaynet.corp agamenon.freewaynet.corp 88
force update: SRV _kpasswd._tcp.freewaynet.corp agamenon.freewaynet.corp 464
force update: SRV _kpasswd._udp.freewaynet.corp agamenon.freewaynet.corp 464
force update: CNAME 3f8e7991-853a-41c1-854b-2dc24cf51667._msdcs.freewaynet.corp agamenon.freewaynet.corp
force update: SRV _ldap._tcp.Default-First-Site-Name._sites.freewaynet.corp agamenon.freewaynet.corp 389
force update: SRV _ldap._tcp.Default-First-Site-Name._sites.dc._msdcs.freewaynet.corp agamenon.freewaynet.corp 389
force update: SRV _kerberos._tcp.Default-First-Site-Name._sites.freewaynet.corp agamenon.freewaynet.corp 88
force update: SRV _kerberos._tcp.Default-First-Site-Name._sites.dc._msdcs.freewaynet.corp agamenon.freewaynet.corp 88
force update: SRV _ldap._tcp.pdc._msdcs.freewaynet.corp agamenon.freewaynet.corp 389
force update: A gc._msdcs.freewaynet.corp 192.168.1.252
force update: AAAA gc._msdcs.freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299
force update: SRV _gc._tcp.freewaynet.corp agamenon.freewaynet.corp 3268
force update: SRV _ldap._tcp.gc._msdcs.freewaynet.corp agamenon.freewaynet.corp 3268
force update: SRV _gc._tcp.Default-First-Site-Name._sites.freewaynet.corp agamenon.freewaynet.corp 3268
force update: SRV _ldap._tcp.Default-First-Site-Name._sites.gc._msdcs.freewaynet.corp agamenon.freewaynet.corp 3268
force update: A DomainDnsZones.freewaynet.corp 192.168.1.252
force update: AAAA DomainDnsZones.freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299
force update: SRV _ldap._tcp.DomainDnsZones.freewaynet.corp agamenon.freewaynet.corp 389
force update: SRV _ldap._tcp.Default-First-Site-Name._sites.DomainDnsZones.freewaynet.corp agamenon.freewaynet.corp 389
force update: A ForestDnsZones.freewaynet.corp 192.168.1.252
force update: AAAA ForestDnsZones.freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299
force update: SRV _ldap._tcp.ForestDnsZones.freewaynet.corp agamenon.freewaynet.corp 389
force update: SRV _ldap._tcp.Default-First-Site-Name._sites.ForestDnsZones.freewaynet.corp agamenon.freewaynet.corp 389
34 DNS updates and 0 DNS deletes needed
Failed to get Kerberos credentials, falling back to samba-tool: kinit for AGAMENON$@FREEWAYNET.CORP failed (Cannot contact any KDC for requested realm)

update (samba-tool): A agamenon.freewaynet.corp 192.168.1.252
Calling samba-tool dns for A agamenon.freewaynet.corp 192.168.1.252 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', 'agamenon', 'A', '192.168.1.252']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of A agamenon.freewaynet.corp 192.168.1.252
update (samba-tool): AAAA agamenon.freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299
Calling samba-tool dns for AAAA agamenon.freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', 'agamenon', 'AAAA', '2001:db8:3:0:20c:29ff:fecb:5299']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of AAAA agamenon.freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299
update (samba-tool): NS freewaynet.corp agamenon.freewaynet.corp
Calling samba-tool dns for NS freewaynet.corp agamenon.freewaynet.corp (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', '@', 'NS', 'agamenon.freewaynet.corp']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of NS freewaynet.corp agamenon.freewaynet.corp
update (samba-tool): NS _msdcs.freewaynet.corp agamenon.freewaynet.corp
Calling samba-tool dns for NS _msdcs.freewaynet.corp agamenon.freewaynet.corp (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', '_msdcs.freewaynet.corp', '@', 'NS', 'agamenon.freewaynet.corp']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of NS _msdcs.freewaynet.corp agamenon.freewaynet.corp
update (samba-tool): A freewaynet.corp 192.168.1.252
Calling samba-tool dns for A freewaynet.corp 192.168.1.252 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', '@', 'A', '192.168.1.252']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of A freewaynet.corp 192.168.1.252
update (samba-tool): AAAA freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299
Calling samba-tool dns for AAAA freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', '@', 'AAAA', '2001:db8:3:0:20c:29ff:fecb:5299']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of AAAA freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299
update (samba-tool): SRV _ldap._tcp.freewaynet.corp agamenon.freewaynet.corp 389
Calling samba-tool dns for SRV _ldap._tcp.freewaynet.corp agamenon.freewaynet.corp 389 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', '_ldap._tcp', 'SRV', 'agamenon.freewaynet.corp 389 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _ldap._tcp.freewaynet.corp agamenon.freewaynet.corp 389
update (samba-tool): SRV _ldap._tcp.dc._msdcs.freewaynet.corp agamenon.freewaynet.corp 389
Calling samba-tool dns for SRV _ldap._tcp.dc._msdcs.freewaynet.corp agamenon.freewaynet.corp 389 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', '_msdcs.freewaynet.corp', '_ldap._tcp.dc', 'SRV', 'agamenon.freewaynet.corp 389 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _ldap._tcp.dc._msdcs.freewaynet.corp agamenon.freewaynet.corp 389
update (samba-tool): SRV _ldap._tcp.9ab474e0-d6c2-431d-a769-c44ba1f20818.domains._msdcs.freewaynet.corp agamenon.freewaynet.corp 389
Calling samba-tool dns for SRV _ldap._tcp.9ab474e0-d6c2-431d-a769-c44ba1f20818.domains._msdcs.freewaynet.corp agamenon.freewaynet.corp 389 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', '_msdcs.freewaynet.corp', '_ldap._tcp.9ab474e0-d6c2-431d-a769-c44ba1f20818.domains', 'SRV', 'agamenon.freewaynet.corp 389 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _ldap._tcp.9ab474e0-d6c2-431d-a769-c44ba1f20818.domains._msdcs.freewaynet.corp agamenon.freewaynet.corp 389
update (samba-tool): SRV _kerberos._tcp.freewaynet.corp agamenon.freewaynet.corp 88
Calling samba-tool dns for SRV _kerberos._tcp.freewaynet.corp agamenon.freewaynet.corp 88 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', '_kerberos._tcp', 'SRV', 'agamenon.freewaynet.corp 88 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _kerberos._tcp.freewaynet.corp agamenon.freewaynet.corp 88
update (samba-tool): SRV _kerberos._udp.freewaynet.corp agamenon.freewaynet.corp 88
Calling samba-tool dns for SRV _kerberos._udp.freewaynet.corp agamenon.freewaynet.corp 88 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', '_kerberos._udp', 'SRV', 'agamenon.freewaynet.corp 88 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _kerberos._udp.freewaynet.corp agamenon.freewaynet.corp 88
update (samba-tool): SRV _kerberos._tcp.dc._msdcs.freewaynet.corp agamenon.freewaynet.corp 88
Calling samba-tool dns for SRV _kerberos._tcp.dc._msdcs.freewaynet.corp agamenon.freewaynet.corp 88 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', '_msdcs.freewaynet.corp', '_kerberos._tcp.dc', 'SRV', 'agamenon.freewaynet.corp 88 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _kerberos._tcp.dc._msdcs.freewaynet.corp agamenon.freewaynet.corp 88
update (samba-tool): SRV _kpasswd._tcp.freewaynet.corp agamenon.freewaynet.corp 464
Calling samba-tool dns for SRV _kpasswd._tcp.freewaynet.corp agamenon.freewaynet.corp 464 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', '_kpasswd._tcp', 'SRV', 'agamenon.freewaynet.corp 464 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _kpasswd._tcp.freewaynet.corp agamenon.freewaynet.corp 464
update (samba-tool): SRV _kpasswd._udp.freewaynet.corp agamenon.freewaynet.corp 464
Calling samba-tool dns for SRV _kpasswd._udp.freewaynet.corp agamenon.freewaynet.corp 464 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', '_kpasswd._udp', 'SRV', 'agamenon.freewaynet.corp 464 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _kpasswd._udp.freewaynet.corp agamenon.freewaynet.corp 464
update (samba-tool): CNAME 3f8e7991-853a-41c1-854b-2dc24cf51667._msdcs.freewaynet.corp agamenon.freewaynet.corp
Calling samba-tool dns for CNAME 3f8e7991-853a-41c1-854b-2dc24cf51667._msdcs.freewaynet.corp agamenon.freewaynet.corp (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', '_msdcs.freewaynet.corp', '3f8e7991-853a-41c1-854b-2dc24cf51667', 'CNAME', 'agamenon.freewaynet.corp']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of CNAME 3f8e7991-853a-41c1-854b-2dc24cf51667._msdcs.freewaynet.corp agamenon.freewaynet.corp
update (samba-tool): SRV _ldap._tcp.Default-First-Site-Name._sites.freewaynet.corp agamenon.freewaynet.corp 389
Calling samba-tool dns for SRV _ldap._tcp.Default-First-Site-Name._sites.freewaynet.corp agamenon.freewaynet.corp 389 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', '_ldap._tcp.Default-First-Site-Name._sites', 'SRV', 'agamenon.freewaynet.corp 389 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _ldap._tcp.Default-First-Site-Name._sites.freewaynet.corp agamenon.freewaynet.corp 389
update (samba-tool): SRV _ldap._tcp.Default-First-Site-Name._sites.dc._msdcs.freewaynet.corp agamenon.freewaynet.corp 389
Calling samba-tool dns for SRV _ldap._tcp.Default-First-Site-Name._sites.dc._msdcs.freewaynet.corp agamenon.freewaynet.corp 389 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', '_msdcs.freewaynet.corp', '_ldap._tcp.Default-First-Site-Name._sites.dc', 'SRV', 'agamenon.freewaynet.corp 389 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _ldap._tcp.Default-First-Site-Name._sites.dc._msdcs.freewaynet.corp agamenon.freewaynet.corp 389
update (samba-tool): SRV _kerberos._tcp.Default-First-Site-Name._sites.freewaynet.corp agamenon.freewaynet.corp 88
Calling samba-tool dns for SRV _kerberos._tcp.Default-First-Site-Name._sites.freewaynet.corp agamenon.freewaynet.corp 88 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', '_kerberos._tcp.Default-First-Site-Name._sites', 'SRV', 'agamenon.freewaynet.corp 88 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _kerberos._tcp.Default-First-Site-Name._sites.freewaynet.corp agamenon.freewaynet.corp 88
update (samba-tool): SRV _kerberos._tcp.Default-First-Site-Name._sites.dc._msdcs.freewaynet.corp agamenon.freewaynet.corp 88
Calling samba-tool dns for SRV _kerberos._tcp.Default-First-Site-Name._sites.dc._msdcs.freewaynet.corp agamenon.freewaynet.corp 88 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', '_msdcs.freewaynet.corp', '_kerberos._tcp.Default-First-Site-Name._sites.dc', 'SRV', 'agamenon.freewaynet.corp 88 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _kerberos._tcp.Default-First-Site-Name._sites.dc._msdcs.freewaynet.corp agamenon.freewaynet.corp 88
update (samba-tool): SRV _ldap._tcp.pdc._msdcs.freewaynet.corp agamenon.freewaynet.corp 389
Calling samba-tool dns for SRV _ldap._tcp.pdc._msdcs.freewaynet.corp agamenon.freewaynet.corp 389 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', '_msdcs.freewaynet.corp', '_ldap._tcp.pdc', 'SRV', 'agamenon.freewaynet.corp 389 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _ldap._tcp.pdc._msdcs.freewaynet.corp agamenon.freewaynet.corp 389
update (samba-tool): A gc._msdcs.freewaynet.corp 192.168.1.252
Calling samba-tool dns for A gc._msdcs.freewaynet.corp 192.168.1.252 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', '_msdcs.freewaynet.corp', 'gc', 'A', '192.168.1.252']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of A gc._msdcs.freewaynet.corp 192.168.1.252
update (samba-tool): AAAA gc._msdcs.freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299
Calling samba-tool dns for AAAA gc._msdcs.freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', '_msdcs.freewaynet.corp', 'gc', 'AAAA', '2001:db8:3:0:20c:29ff:fecb:5299']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of AAAA gc._msdcs.freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299
update (samba-tool): SRV _gc._tcp.freewaynet.corp agamenon.freewaynet.corp 3268
Calling samba-tool dns for SRV _gc._tcp.freewaynet.corp agamenon.freewaynet.corp 3268 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', '_gc._tcp', 'SRV', 'agamenon.freewaynet.corp 3268 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _gc._tcp.freewaynet.corp agamenon.freewaynet.corp 3268
update (samba-tool): SRV _ldap._tcp.gc._msdcs.freewaynet.corp agamenon.freewaynet.corp 3268
Calling samba-tool dns for SRV _ldap._tcp.gc._msdcs.freewaynet.corp agamenon.freewaynet.corp 3268 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', '_msdcs.freewaynet.corp', '_ldap._tcp.gc', 'SRV', 'agamenon.freewaynet.corp 3268 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _ldap._tcp.gc._msdcs.freewaynet.corp agamenon.freewaynet.corp 3268
update (samba-tool): SRV _gc._tcp.Default-First-Site-Name._sites.freewaynet.corp agamenon.freewaynet.corp 3268
Calling samba-tool dns for SRV _gc._tcp.Default-First-Site-Name._sites.freewaynet.corp agamenon.freewaynet.corp 3268 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', '_gc._tcp.Default-First-Site-Name._sites', 'SRV', 'agamenon.freewaynet.corp 3268 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _gc._tcp.Default-First-Site-Name._sites.freewaynet.corp agamenon.freewaynet.corp 3268
update (samba-tool): SRV _ldap._tcp.Default-First-Site-Name._sites.gc._msdcs.freewaynet.corp agamenon.freewaynet.corp 3268
Calling samba-tool dns for SRV _ldap._tcp.Default-First-Site-Name._sites.gc._msdcs.freewaynet.corp agamenon.freewaynet.corp 3268 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', '_msdcs.freewaynet.corp', '_ldap._tcp.Default-First-Site-Name._sites.gc', 'SRV', 'agamenon.freewaynet.corp 3268 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _ldap._tcp.Default-First-Site-Name._sites.gc._msdcs.freewaynet.corp agamenon.freewaynet.corp 3268
update (samba-tool): A DomainDnsZones.freewaynet.corp 192.168.1.252
Calling samba-tool dns for A DomainDnsZones.freewaynet.corp 192.168.1.252 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', 'DomainDnsZones', 'A', '192.168.1.252']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of A DomainDnsZones.freewaynet.corp 192.168.1.252
update (samba-tool): AAAA DomainDnsZones.freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299
Calling samba-tool dns for AAAA DomainDnsZones.freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', 'DomainDnsZones', 'AAAA', '2001:db8:3:0:20c:29ff:fecb:5299']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of AAAA DomainDnsZones.freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299
update (samba-tool): SRV _ldap._tcp.DomainDnsZones.freewaynet.corp agamenon.freewaynet.corp 389
Calling samba-tool dns for SRV _ldap._tcp.DomainDnsZones.freewaynet.corp agamenon.freewaynet.corp 389 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', '_ldap._tcp.DomainDnsZones', 'SRV', 'agamenon.freewaynet.corp 389 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _ldap._tcp.DomainDnsZones.freewaynet.corp agamenon.freewaynet.corp 389
update (samba-tool): SRV _ldap._tcp.Default-First-Site-Name._sites.DomainDnsZones.freewaynet.corp agamenon.freewaynet.corp 389
Calling samba-tool dns for SRV _ldap._tcp.Default-First-Site-Name._sites.DomainDnsZones.freewaynet.corp agamenon.freewaynet.corp 389 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', '_ldap._tcp.Default-First-Site-Name._sites.DomainDnsZones', 'SRV', 'agamenon.freewaynet.corp 389 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _ldap._tcp.Default-First-Site-Name._sites.DomainDnsZones.freewaynet.corp agamenon.freewaynet.corp 389
update (samba-tool): A ForestDnsZones.freewaynet.corp 192.168.1.252
Calling samba-tool dns for A ForestDnsZones.freewaynet.corp 192.168.1.252 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', 'ForestDnsZones', 'A', '192.168.1.252']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of A ForestDnsZones.freewaynet.corp 192.168.1.252
update (samba-tool): AAAA ForestDnsZones.freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299
Calling samba-tool dns for AAAA ForestDnsZones.freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', 'ForestDnsZones', 'AAAA', '2001:db8:3:0:20c:29ff:fecb:5299']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of AAAA ForestDnsZones.freewaynet.corp 2001:db8:3:0:20c:29ff:fecb:5299
update (samba-tool): SRV _ldap._tcp.ForestDnsZones.freewaynet.corp agamenon.freewaynet.corp 389
Calling samba-tool dns for SRV _ldap._tcp.ForestDnsZones.freewaynet.corp agamenon.freewaynet.corp 389 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', '_ldap._tcp.ForestDnsZones', 'SRV', 'agamenon.freewaynet.corp 389 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _ldap._tcp.ForestDnsZones.freewaynet.corp agamenon.freewaynet.corp 389
update (samba-tool): SRV _ldap._tcp.Default-First-Site-Name._sites.ForestDnsZones.freewaynet.corp agamenon.freewaynet.corp 389
Calling samba-tool dns for SRV _ldap._tcp.Default-First-Site-Name._sites.ForestDnsZones.freewaynet.corp agamenon.freewaynet.corp 389 (add)
Calling samba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', '_ldap._tcp.Default-First-Site-Name._sites.ForestDnsZones', 'SRV', 'agamenon.freewaynet.corp 389 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
     raise e
Failed 'samba-tool dns' based update of SRV _ldap._tcp.Default-First-Site-Name._sites.ForestDnsZones.freewaynet.corp agamenon.freewaynet.corp 389
Failed update of 34 entries
root at agamenon:~#


consulting the all records the dns:


root at agamenon:~# samba-tool dns query agamenon freewaynet.corp @ ALL -U 
administrator
Password for [FREEWAYNET\administrator]:
   Name=, Records=4, Children=0
     SOA: serial=155, refresh=900, retry=600, expire=86400, minttl=3600, 
ns=agamenon.freewaynet.corp., email=hostmaster.freewaynet.corp. 
(flags=600000f0, serial=155, ttl=3600)
     NS: agamenon.freewaynet.corp. (flags=600000f0, serial=1, ttl=900)
     A: 192.168.1.252 (flags=600000f0, serial=1, ttl=900)
     AAAA: 2001:db8:0003:0000:020c:29ff:fecb:5299 (flags=600000f0, 
serial=1, ttl=900)
   Name=_msdcs, Records=0, Children=0
   Name=_sites, Records=0, Children=1
   Name=_tcp, Records=0, Children=4
   Name=_udp, Records=0, Children=2
   Name=agamenon, Records=2, Children=0
     A: 192.168.1.252 (flags=f0, serial=1, ttl=900)
     AAAA: 2001:db8:0003:0000:020c:29ff:fecb:5299 (flags=f0, serial=1, 
ttl=900)
   Name=DomainDnsZones, Records=0, Children=2
   Name=ForestDnsZones, Records=0, Children=2
root at agamenon:~#

I'm wary of ipv6, testing on another machine without ipv6 and if works 
perfectly. Does anyone have any ideas?

root at agamenon:~# ifconfig
ens32: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
         inet 192.168.1.252  netmask 255.255.255.0  broadcast 192.168.1.255
         inet6 2001:db8:3:0:20c:29ff:fecb:5299  prefixlen 64 scopeid 
0x0<global>
         inet6 fe80::20c:29ff:fecb:5299  prefixlen 64  scopeid 0x20<link>
         ether 00:0c:29:cb:52:99  txqueuelen 1000  (Ethernet)
         RX packets 6618  bytes 1246620 (1.2 MB)
         RX errors 0  dropped 3  overruns 0  frame 0
         TX packets 2567  bytes 386427 (386.4 KB)
         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


Regards.








More information about the samba mailing list