[Samba] dns replication error due to deleted records
rpenny at samba.org
Thu Oct 10 19:07:19 UTC 2019
On 10/10/2019 19:56, Luca Olivetti via samba wrote:
> El 10/10/19 a les 20:41, Rowland penny via samba ha escrit:
>>> It turns out that dc2 chokes on "\0ADEL" dns records, supposedly
>>> deleted objects.
>> What you have there is known as a tombstone record and Samba has a
>> tool to remove them:
>> samba-tool domain tombstones expunge NC
>> Where 'NC' is the naming context and 'TOMBSTONE_LIFETIME' is the days
>> to keep deleted records for.
> Good to know, but why do they trigger the replication problem?
Not sure they are, they could just be an artefact of the replication
>>> I found a "solution" here:
>>> The procedure to solve it is not exactly the same but it put me on
>>> the, hopefully, right track. I scripted it since it got tiresome and
>>> it solved the replication problem, for a while, but now it
>>> reappeared (that's the message above).
>>> This started on September 25, when I upgraded dc2 from stretch to
>>> buster. A few days later I also upgraded dc1 (it was still running
>>> I'm using internal dns and the dhcp server talks to dc1 to update
>>> the dns records, that would explain why there are records to
>>> replicate but doesn't explain why samba fails (when it didn't before).
>> How is the dhcp server updating the dns records ?
> Using this method:
> TLDR: it does a "samba-tool dns add" when a host get a lease and
> "samba-tool dns delete" when it releases it or expires.
It works in a similar way to how I update dns records and I have similar
records in AD and they replicate.
Can you post your dhcpd.conf and smb.conf
More information about the samba