[Samba] Keeping DNS out of Samba
Peter Mittermayer
samba.lists at outlook.com
Thu Dec 19 15:02:37 UTC 2024
It is related though. Thanks for the answer anyway.
br
________________________________________
From: samba <samba-bounces at lists.samba.org> on behalf of Michael Tokarev via samba <samba at lists.samba.org>
Sent: Thursday, December 19, 2024 4:59 PM
To: samba at lists.samba.org
Subject: Re: [Samba] Keeping DNS out of Samba
19.12.2024 17:52, Peter Mittermayer via samba wrote:
>
> Hi Michael,
>
> I'm aware of the dns_update_cache file, and I saw it being generated when starting samba service for the first time. However, I don't understand when it gets updated.
It gets updated when "something" changes in the DC. Your FSMO role
transfer is one such example.
> For example, I have added an additional DC to my domain and moved the PDC role to it for a while. So the line for PDC record was added to the file. Once I removed the PDC role the line in the file is still there. I know I have to manually remove the DNS record (there can only be one pointing to the current role owner) but I expected that at least the dns_update_cache file would have been updated. If it is created from the template file dns_update list the line for PDC should have been removed. But it stays there even after service restart and even now, after more than a day, it is there. What triggers a regeneration of the dns_update_cache file? Any idea?
See dns update command parameter. It gets run every 60 iirc.
The problem with the DELETES is that the whole samba DNS infrastructure
only *adds* records, but does not DELETE the records. dns registration
script (which processes the updated dns_update_cache file) does not
know about the previous set of records. It only registers (or re-
registers) whatever's in the cache file now, without removing anything.
But this is not what this thread is about.
/mjt
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
More information about the samba
mailing list