[Samba] Conflict entries in DNS with DHCP and dynamic DNS updates 

Christian chanlists at googlemail.com
Mon Feb 22 22:41:25 UTC 2021

Hi Samba fan,
On 22.02.2021 19:08, Samba Fan via samba wrote:
> Currently, as a workaround, I use the query for a possible "CNF entry" when executing the on-expiry event, and then delete that entry as well.
> Thank you very much for this discussion!

could you share a code sniplet? I run the following code every once in a 
while to purge those entries:

IFS= ldbsearch --cross-ncs -H /var/lib/samba/private/sam.ldb -b 
'(DC=*CNF:*)' dn | sed -e 's/\\/\\\\/g' | grep ^dn | while read dn ; do
   ldbdel -H /var/lib/samba/private/sam.ldb "${dn#dn: }"

Not sure whether this is the right thing though... Thanks,


More information about the samba mailing list