Hi everyone, With samba 4.9, "samba_dnsupdate --verbose --use-samba-tool" generate spurious error WERR_DNS_ERROR_RECORD_ALREADY_EXISTS (which is true), but it's appear as an error. In older version, it was not giving this error out. I get this error message both for internal DNS server and Bind DLZ (which I think is logic, since it is using samba-tool...) update (samba-tool): SRV _ldap._tcp.site3._sites.ForestDnsZones.env.tranquil.it srvads.env.tranquil.it 389 Calling samba-tool dns for SRV _ldap._tcp.site3._sites.ForestDnsZones.env.tranquil.it srvads.env.tranquil.it 389 (add) Calling samba-tool dns add -k no -P ['192.168.1.2', 'env.tranquil.it', '_ldap._tcp.site3._sites.ForestDnsZones', 'SRV', 'srvads.env.tranquil.it 389 0 100'] ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS') File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 177, in _run return self.run(*args, **kwargs) File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/dns.py", line 945, in run raise e Failed 'samba-tool dns' based update of SRV _ldap._tcp.site3._sites.ForestDnsZones.env.tranquil.it srvads.env.tranquil.it 389
Does this still happen?
(In reply to Douglas Bagnall from comment #1) Yes it does and I have commented on this on the mailing list several times, trying to add a DNS record that already exists is not , in my opinion, an error. It should just print something like 'Record already exists.'
https://gitlab.com/samba-team/samba/-/merge_requests/4070 might help.
This bug was referenced in samba master: 0e5b17adb004ea26c0747719f096297709f7cf7f b5b08780f6d16f1c771bb54e85bc94f94d57aeed 19b63d3c87c04af6287f20d3dc296e6709ebc5ee d2201e72beb5b311995944921c3e8e9bead4f71d 2594a0c57f43a4b0b16ab072833f8e0f0492b522 b41c6caaf02b436daba40d9d84006a15df661d98 db7497aef13bd78cd27d35338f9fb281007f8187