Add Windows Server 2019 to AD Domain

Nate Matter 1 Reputation point

We have a company Office 365 account and domain ( Employess "add work account" to their computers.

We have a virtual Windows Server 2019 in the cloud that we're setting up with Solidworks PDM for CAD engineers to use. Our understanding is that this server needs to be on the company domain for user authentication.

How do we add the Windows Server to the company domain? When I try to add it to the domain using the server manager, I get the following error:

Note: This information is intended for a network administrator.  If you are not your network's administrator, notify the administrator that you received this information, which has been recorded in the file C:\Windows\debug\dcdiag.txt.

The following 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 "[COMPANY].com":

The error was: "DNS name does not exist."
(error code 0x0000232B RCODE_NAME_ERROR)

The query was for the SRV record for

Common causes of this error include the following:

- The DNS SRV records required to locate a AD DC for the domain are not registered in DNS. These records are registered with a DNS server automatically when a AD DC is added to a domain. They are updated by the AD DC at set intervals. This computer is configured to use DNS servers with the following IP addresses:

- One or more of the following zones do not include delegation to its child zone:

. (the root zone)
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,276 questions
Microsoft Entra
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Carlos Solís Salazar 16,786 Reputation points MVP

    Hi @Nate Matter

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    You should create an Azure Active Directory Domain Services (

    And then, join the server to the Domain.


    If you already have a Domain server On-Premises, you must create a VPN Site to Site, and add the IP address of the Domain Controller in the DNS server setting in your Virtual Network on Azure

    Hope this helps,
    Carlos Solís Salazar


    Please "Accept as Answer" and/or Upvote if any of the above helped so that, it can help others in the community looking for remediation for similar issues.

    1 person found this answer helpful.