Bug 13613 - spurious error message RECORD_ALREADY_EXISTS with samba_dnsupdate --verbose
Summary: spurious error message RECORD_ALREADY_EXISTS with samba_dnsupdate --verbose
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: 4.9.0rc5
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Douglas Bagnall
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-12 16:02 UTC by Kevin Guerineau
Modified: 2025-06-06 00:08 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Guerineau 2018-09-12 16:02:21 UTC
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
Comment 1 Douglas Bagnall 2025-05-24 06:21:33 UTC
Does this still happen?
Comment 2 Rowland Penny 2025-05-24 07:20:34 UTC
(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.'
Comment 3 Douglas Bagnall 2025-06-05 00:10:53 UTC
https://gitlab.com/samba-team/samba/-/merge_requests/4070 might help.
Comment 4 Samba QA Contact 2025-06-06 00:08:03 UTC
This bug was referenced in samba master:

0e5b17adb004ea26c0747719f096297709f7cf7f
b5b08780f6d16f1c771bb54e85bc94f94d57aeed
19b63d3c87c04af6287f20d3dc296e6709ebc5ee
d2201e72beb5b311995944921c3e8e9bead4f71d
2594a0c57f43a4b0b16ab072833f8e0f0492b522
b41c6caaf02b436daba40d9d84006a15df661d98
db7497aef13bd78cd27d35338f9fb281007f8187