Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

Fix the following error occurred when DNS was queried for the service location

Posted on 28/07/202003/09/2026 Christian By Christian No Comments on Fix the following error occurred when DNS was queried for the service location
  1. Home
  2. Windows Server
  3. Fix the following error occurred when DNS was queried for the service location
Graphic illustrating the three types of DNS queries: Recursive, Iterative, and Non-recursive, with brief descriptions for each type.

A DNS query (also known as a DNS request) is a demand for information sent from a user’s computer (DNS client) to a DNS server. When prompted with the following error as shown below. In this guide, I will show you how to fix “the following error occurred when DNS was queried for the service location (SRV) resource record used to locate an Active Directory Domain Controller (AD DS) for domain: Error code 0x0000232B RCODE_NAME_ERROR”. Please see the following guides: DNS: Unable to register a client to Domain, How to find disabled Active Directory User accounts, how to fix WinRM cannot process the request: The following error occurred while using Kerberos authentication, cannot find the computer.

Computer properties window displaying an error message indicating that the Active Directory Domain Controller for the domain 'technet.local' could not be contacted.

This is a DNS issue, no doubt! Use this guide for the different types of DNS records. When you search on the internet, you may find conflicting tips. In my environment, here are some tips I followed to resolve this issue.

Please see these exciting articles: Domain Name System: How to create a DNS record. How to fix DNS Bad key 9017: The Cluster Name registration failed of one or more associated DNS names. And how to enable God Mode via PowerShell, CLI and GUI.

Resolve Error for “DNS was queried for the service location (SRV)”

Here are my recommendations below

1: Ensure the client(s) IP parameters (preferred DNS Server) set on the client machine points to the DNS points to internal DNS servers as DNS servers. See a similar error “The following errors occurred attempting to join the domain: The specified domain either does not exist or could not be contacted“.

As you can see, it was pointing to a wrong IP Address (gateway).

Error message indicating that an Active Directory Domain Controller for the domain 'techdirect.local' cannot be contacted, with details about DNS records and IP addresses.

Therefore, I will have to corrected the information.

Screenshot of the Ethernet Properties window displaying Internet Protocol Version 4 (TCP/IPv4) settings, including fields for IP address, subnet mask, default gateway, preferred DNS server, and alternate DNS server, with highlighted sections for editing.


2: Ensure the DNS server has the right IP address of itself populated for all zones and records. A similar idea was used in resolving this issue “How to fix nslookup unknown: cannot find non-existent domain“.

After ensuring the above two recommendations are met, flush the DNS cache and registered the DNS again using the command below on the DNS server and restart the DNS and netlogon service. You can optionally restart your DNS server. for other DNS troubleshooting parameters, see this link.

ipconfig /registerdns
net stop netlogon
net start netlogon
Command Prompt window displaying an error message indicating that 'ipconfig' is not recognized as a command, with the command 'ipconfig /registerdns' highlighted.

Now, you should e able to join your device to the domain as shown below. For how to set up a domain, see the following link. Also for how to add a second DC, see the following link. For how to join a PC to a Domain, see the following link.

Computer Properties window displaying computer name and domain settings, with a notification confirming membership in the 'techdirect.local' domain.

Note: You will be prompted to restart your device as shown below. Proceed and have it restarted.

A pop-up notification from Microsoft Windows indicating the need to restart the computer to apply changes, with options to 'Restart Now' or 'Restart Later'.

I hope you found this blog post helpful on how to fix the following error occurred when DNS was queried for the service location”. If you have any questions, please let me know in the comment session.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
Windows Server Tags:DNS, DNSRecord, Domain, Domain Controller, FQDN, Windows Server 2016

Post navigation

Previous Post: The following errors occurred attempting to join the domain: The specified domain either does not exist or could not be contacted
Next Post: How to fix “Unable to Sign In: Domain Not Available”

Related Posts

  • screenshot 2020 02 07 at 20.59.01
    How to use the PsInfo utility from SysInternals Windows Server
  • VBscript fixed and working in WinPE
    Windows PE working for Windows 11 and Windows Server 2022 Windows Server
  • screenshot 2020 03 31 at 22.22.43
    How to create, edit and delete a scheduled task via the Command Prompt Windows Server
  • image 1
    Install and License Devolutions Remote Desktop Manager on Mac Mac
  • iscsi
    Install and configure iSCSI Target Server and iSCSI Initiator on a Windows Server Windows Server
  • firewall windows 1
    How to create a Windows firewall rule on Windows Windows Server

More Related Articles

maxresdefault Install and manage IP Address Management on Windows Server Windows
RDP Certificate Issues Connecting to the RDP host: Fix the Certificate could not be verified back to the root certificate Mac
windows 10 spying 1200x687 1 Error 183: Specified image is being serviced by another DISM operation Windows Server
integrate Icloud with Windows Synchronize Apple Calendar on Windows with Outlook [Part 2] Mac
diagnose How to Diagnose a Windows Hardware Issue Windows
Could not load file or assembly Unable to edit MDT XML unattended file: Could not load file Windows Server

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • prometheus feature image
    How to use Prometheus for Monitoring Linux
  • Distributed File System DFS
    How to find Dfs Referral Path and clear Dfs referral Cache Storage
  • parttt
    Adding a new partition to an existing Linux server Linux
  • Screenshot 2020 12 30 at 01.03.14
    Device cannot use a Trusted Platform Module: Allow BitLocker without a compatible TPM Windows
  • zoom feature
    How to install Zoom video conference software on Linux System Linux
  • Screenshot 2020 08 13 at 03.29.53
    Windows Modules Installer: How to deactivate TrustedInstaller in Windows Windows
  • ESNAS Virtualization 01
    How to remove Recent vSphere Client Connections Virtualization
  • Screenshot
    Fix AirDrop issue “No People found and there is no one nearby to share with” on Mac Mac

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,745 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.