[Samba] Samba-4.11 AD DC dnsupdate fails

James B. Byrne byrnejb at harte-lyne.ca
Wed Jun 3 20:23:54 UTC 2020


FreeBSd-12.1p5
Samab-4.11
py37-dnspython-1.16.0
python37-3.7.7


I am seeing a recurring error relating to dns updates.  I ran:

samba_dnsupdate --verbose

I see this result:

Calling samba-tool dns add -k no -P ['192.168.216.166',
'brockley.harte-lyne.ca',
'_ldap._tcp.Default-First-Site-Name._sites.ForestDnsZones', 'SRV',
'SMB4-1.BROCKLEY.HARTE-LYNE.CA.brockley.harte-lyne.ca 389 0 100']
ERROR(runtime): uncaught exception - (9711,
'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
  File "/usr/local/lib/python3.7/site-packages/samba/netcmd/__init__.py", line
186, in _run
    return self.run(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/samba/netcmd/dns.py", line 945,
in run
    raise e
  File "/usr/local/lib/python3.7/site-packages/samba/netcmd/dns.py", line 941,
in run
    0, server, zone, name, add_rec_buf, None)
Failed 'samba-tool dns' based update of SRV
_ldap._tcp.Default-First-Site-Name._sites.ForestDnsZones.brockley.harte-lyne.ca
SMB4-1.BROCKLEY.HARTE-LYNE.CA.brockley.harte-lyne.ca 389
Failed update of 29 entries

There have been no manual updates done to the DNS forward zonefile.  Samba-tool
has only been used for queries since the initial provisioning.

What is causing this? A uplicate record, I know but why does the duplicate
exist?  More to the point how do I get rid of it?


-- 
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3




More information about the samba mailing list