Hi Henry,
It is not best practice to create manual connections and there's nothing about your scenario that requires you to do so. That being the case, remove the manual links you've created (in this case, both of the connection objects
starting with "DC02").
The Sites and Services screenshot from above doesn't match what you're saying as if it's pointing to the NTDS Settings for CLOUD-DC01 then you wouldn't be seeing an <automatically generated> connection object pointing
to itself. This image looks more like the view you would have from one of the HQSITE domain controllers (i.e. DC01 or DC02.)
This observation is backed up by the fact you have two connection objects pointing to "DC02". This has come about because someone has created one DC02 connection object on one domain controller and then another on
a separate domain controller with the same name. You can tell because the second "DC02" has includes the standard Active Directory nomenclature of "CNF:" in its name. Active Directory automatically renames the losing conflicting object
to include this label for easy identification.
You've mentioned that manual replication using Sites and Services fails with an error relating to DNS. Have you done any of the following yet?
- Looked in the Event Viewer under "Directory Service" for any warnings that describe the DNS failure?
- Run "dcdiag /test:dns /dnsbasic /e /v /s:dc02" to get an idea of which specific DNS record can't be found?
You could also run the dcdiag command from point 2 locally on CLOUD-DC01 to get an idea of what the reverse view looks like.
Because you're trying to fix a missing record issue, one change I'd recommend making until you've fixed the problem is configuring the primary DNS entry on CLOUD-DC01 to point to the IP address of DC02 (or DC01 - it doesn't really
matter) and then either restarting CLOUD-DC01 or manually performing the following steps on CLOUD-DC01:
- Run this command from an administrative command prompt: ipconfig /registerdns.
- Stop and then start the Netlogon service.
This will direct CLOUD-DC01 to create its appropriate host and service location records on DC02 which will quite likely help resolve any DNS issues identified above. You can always switch the primary DNS value back once you've
fixed all replication issues, though it's worth mentioning that you should never use the loopback address as a DNS entry (either 127.0.0.1 for IPv4 or ::1 for IPv6.) Also, it should be obvious, but make sure that DNS queries from CLOUD-DC01 can actually reach
DC02.
Going back to the start, once you have resolved your DNS and subsequent replication problems, you can easily change the domain controller associated with an automatic connection object by editing the automatically created connection
object under your CLOUDSITE\NTDS Settings container:
- Right-click the <automatic connection> object and choose properties.
- Click the Change button next to the Server value and choose DC02.
Focus on performing your configuration and administration from DC02 until both repadmin and dcdiag show no more errors. If you have broken replication and you're performing administrative tasks on both DC02 and CLOUD-DC01 then
you're likely to make the situation worse than it already is.
I think that's enough for now as you've got a few things to do before looking for any other faults. Just to recap:
- Delete the manually created Connection objects.
- Configure the primary DNS entry on CLOUD-DC01 to point to DC02.
- Either reboot CLOUD-DC01 or manually register the host and service location records.
- Assuming this resolves your DNS and replication issues, change the desired replication server in the automatic connection's properties.
Cheers,
Lain
Hi Mr. Lain,
Thanks so much for your patient of answering my question. That's true that my cropped image has some mistakes. the correct one should be the one below:

Actually, the automatically generated one is pointing to Cloud-DC02, which is because we previously has another AD called "Cloud-DC02" and has been disjoined from domain. To save time, we just shutted down the "Cloud-DC02" AD and create
a new VM and built another AD called "Cloud-DC01".
You have your point that because i have manually add the DC02 connection, so to avoid the confusion, the AD is automatically generated a new one plus the nomenclature behind. My reason to add that in because previously after doing the DCPROMO, i don't see
the DC02 inside, that's why i added in manually. In this case, is it safe to remove the DC02i have added previously (I think the one without nomenclature is the one added manually) and rename the one with nomenclature to DC02? will it cause replication issue?
Yes, for the DNS issue i will try to perform the steps that you given and let you know the result. Currently, i can see that the replication is only from DC02 to Cloud-DC01. because, when i create users or objects in DC02, it will automatically replicated
to CLoud-DC01 but not vice versa. do you think it is issue with DNS?
However, when i try to do nslookup and reverse lookup from both DC02 and CLoud-DC01, both are able to resolve FQDN or IP addresses of both DC. by right when they are able to resolve hostnames, the DNS should not be causing problem right?
Thanks.