Haven experienced this error in my lab which says “An error occurred when DNS was queried for the service location (SRV) resource record used to locate an Active Directory Domain Controller (AD DC) for domain “xxxxxx.com”.
The error was: “No records found for given DNS query.”
(error code 0x0000251D DNS_INFO_NO_RECORDS)
The query was for the SRV record for _ldap._tcp.dc._msdcs.xxxxxx.com”
How to fix
Often times, this issues arise when a secondary NIC card is enabled. Simply disable the secondary NIC card and also ensure the IPv6 option unchecked.
Next you having to run the following commands,
c:/>ipconfig /flushdns and c:/>pconfig /registerdns
Your Domain DNS zone may not have the proper SRV records registered for the DC
Restart the netlogon service command on the server
c:/>net stop netlogon, and c:/> net start netlogon
See the link for a similar error: https://techdirectarchive.com/2019/01/20/how-to-fix-err_connection_timed_out-error/