Rowland Penny
2024-Oct-19 10:32 UTC
[Samba] Best way to get the current PDC emulator master via DNS (Possible bug?)
On Sat, 19 Oct 2024 12:28:01 +0200 Luis Peromarta via samba <samba at lists.samba.org> wrote:> OK, so I was thinking I should probably do some basic scripting to > check pdc entries in dns as part of routine checks. To my surprise, > in 2 managed installations, transferring the pdc role no longer > creates the new dns entries. > > Has anyone seen this ? Samba 4.20.5 bookworm back ports.Transferring the PDC_Emulator FSMO role does not create the dns entry, it is created by samba_dnsupdate, which is run every 10 minutes. Rowland
Luis Peromarta
2024-Oct-19 10:39 UTC
[Samba] Best way to get the current PDC emulator master via DNS (Possible bug?)
Correct, I see them now. Thanks for clarifying. On Oct 19, 2024 at 12:33 +0200, samba at lists.samba.org <samba at lists.samba.org>, wrote:> > Transferring the PDC_Emulator FSMO role does not create the dns entry, > it is created by samba_dnsupdate, which is run every 10 minutes.
Luis Peromarta
2024-Oct-19 11:13 UTC
[Samba] Best way to get the current PDC emulator master via DNS (Possible bug?)
Thanks Rowland for clarifying. I am trying to build a??'samba-tool dns delete? command to delete the record, but can?t quite figure it out. host -t SRV _ldap._tcp.pdc._msdcs.mad.caopnato.es _ldap._tcp.pdc._msdcs.mad.caponato.es has SRV record 0 100 389 dc1.mad.caponato.es. samba-tool dns delete dc1.mad.caponato.es??mad.caponato.es??_ldap._tcp.pdc._msdcs SRV ?dc1.mad.caponato.es 389 0 100" -U Administrator ERROR(runtime): The record does not exist [WERR_DNS_ERROR_RECORD_DOES_NOT_EXIST] - (9701, 'WERR_DNS_ERROR_RECORD_DOES_NOT_EXIST') Any hint ? Thanks, On Oct 19, 2024 at 12:33 +0200, samba at lists.samba.org <samba at lists.samba.org>, wrote:> > Transferring the PDC_Emulator FSMO role does not create the dns entry, > it is created by samba_dnsupdate, which is run every 10 minutes.