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.
Rowland Penny
2024-Oct-19 11:55 UTC
[Samba] Best way to get the current PDC emulator master via DNS (Possible bug?)
On Sat, 19 Oct 2024 13:13:10 +0200 Luis Peromarta via samba <samba at lists.samba.org> wrote:> 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. >The usage for that command is: samba-tool dns delete <server> <zone> <name> SRV "fqdn_string port priority weight" So you are nearly there, I think you are using the wrong 'zone', if I am correct, it should be '_msdcs.mad.caopnato.es' and the 'name' would be '_ldap._tcp.pdc'. Rowland