DNS name does not exist

Apply for a server to be a file server on the cloud, use VPN connection between the cloud and the local network, and set the DNS of the cloud server to point to the DNS of the local network in the network.
but the cloud server was added to the domain with an error:
The error was: “DNS name does not exist.” (error code 0x0000232B RCODE_NAME_ERROR)
The query was for The SRV record for _ldap._tcp. Dc._msdcs.mydomain.com
Common causes of this error include The Following :
– The DNS SRV records required to locate an AD DC for The domain are not registered in DNS. These records are registered with a DNS server automatically when an 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: instead
One or more of the following zones do not include Delegation to its child zone.
Set up various records in hosts, but there are still errors when adding them.
check DNS server did not find the existence of _ldap._tcp. Dc._msdcs.mydomain.com SRV record.
finally suspected that it was the DNS server problem. The DNS server I am looking at now is secondary, copied from the primary DNS server, and connected to the primary DNS of another network segment. As expected, there was this record. So on the secondary DNS you are creating a secondary domain, copy it from the primary DNS.
add again, and everything is fine.

Read More: