Fix Active Directory event 2087 (DS RPC Client error 11004): the destination DC could not resolve the source DC by CNAME, FQDN or NetBIOS name. Check the DC is alive, run dcdiag DNS tests, re-register records, compare GUIDs.
Home › Guides › AD replication event 2087
Last updated 20 November 2026
Event 2087 (Level Error, source Microsoft-Windows-ActiveDirectory_DomainService, Task Category DS RPC Client, Directory Service log) means the destination domain controller couldn't find its replication partner by any name. It tried, in order:
<DSA GUID>._msdcs.<forest root domain>;All three failed, so the destination DC can't replicate from that source until you fix it. If only the CNAME lookup failed and a fallback worked, you get warning event 2088 instead. The same DC usually also shows replication status 8524 (DNS lookup failure) and KCC event 1925.
Microsoft's fix order:
Microsoft's example, logged on DC3 about its partner DC2:
Log Name: Directory Service Source: Microsoft-Windows-ActiveDirectory_DomainService Event ID: 2087 Task Category: DS RPC Client Level: Error Keywords: Classic User: ANONYMOUS LOGON Computer: DC3.contoso.com Description: Active Directory could not resolve the following DNS host name of the source domain controller to an IP address. This error prevents additions, deletions and changes in Active Directory Domain Services from replicating between one or more domain controllers in the forest. ... Source domain controller: DC2 Failing DNS host name: b0069e56-b19c-438a-8a1f-64866374dd6e._msdcs.contoso.com ... Additional Data Error value: 11004 The requested name is valid, but no data of the requested type was found.
The fields that matter:
| Field | What it tells you |
|---|---|
| Source domain controller | The partner this DC couldn't reach (DC2 above). |
| Failing DNS host name | The CNAME that didn't resolve. The GUID part is the objectGUID of the source DC's NTDS Settings object, and the zone is _msdcs.<forest root domain>. |
| Error value | The resolver result, here 11004: the name is valid but no record of the requested type was found. |
The event text warns that security groups, Group Policy, users, computers and their passwords will stay inconsistent between DCs until this is fixed, which can affect logon authentication and access to resources.
By default the DC shows only up to 10 DNS failures per 12-hour period. To log every failure, set the diagnostics value 22 DS RPC Client under HKLM\System\CurrentControlSet\Services\NTDS\Diagnostics to 1, for example:
reg add "HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics" /v "22 DS RPC Client" /t REG_DWORD /d 1 /f
Microsoft lists these causes for a source DC whose alias (CNAME) record won't resolve:
Any member of Domain Users can run this from a command prompt, using the NetBIOS name of the source DC:
net view \\<SourceDC>
A working domain controller lists its NETLOGON and SYSVOL shares. If it doesn't answer, find out why: either bring it back, or, if it can't be recovered, remove its metadata (step 2). If it works, go to step 3.
As long as the dead DC still has objects in Active Directory Sites and Services, the other DCs keep trying to replicate with it. You need Enterprise Admins (or equivalent). The easiest way is to delete the DC's computer object in Active Directory Users and Computers, which removes its server metadata. With the ntdsutil included in supported Windows Server versions, one command at the metadata cleanup: prompt does it. From an elevated command prompt:
ntdsutil metadata cleanup remove selected server cn=DC2,cn=Servers,cn=Default-First-Site-Name,cn=Sites,cn=Configuration,dc=contoso,dc=com quit quit
Use the distinguished name of the dead DC's server object. To make the change on a specific DC, add on <DC FQDN>: remove selected server <server DN> on <DC FQDN>.
If the dead DC was the last DC in its domain and you also want to remove the domain, use the interactive selection instead:
metadata cleanup: type connection, then connect to server <a working DC>, then quit.select operation target, then list sites and select site <number>.list domains in site and select domain <number>.list servers in site and select server <number>, then quit.remove selected server, then remove selected domain to remove the domain metadata as well.quit at the metadata cleanup: and ntdsutil: prompts.After removing a domain, give every global catalog in the forest time to replicate the deletion before you promote a new domain with the same name.
If the source DC is up, look for the DNS problem. Note the FQDNs of both DCs and the source DC's IP address first. The dcdiag DNS tests need Enterprise Admins (or equivalent) and run on any supported Windows Server, or on a client with RSAT. Add /f:c:\Test\DnsTest.txt to any of these commands to save the output to a file.
The basic test checks, per DC:
dcdiag /test:dns /s:<SourceDC> /DnsBasic
Use /e instead of /s:<SourceDC> to test every DC in the forest. Then:
DC: <DC name> to find that DC's detailed section.DCs can fall back to the FQDN or NetBIOS name, but the alias (CNAME) record is expected and should be there. This test checks every record a DC needs to be found:
dcdiag /test:dns /DnsRecordRegistration
It covers the alias (CNAME, the GUID-based record that locates a replication partner), the host (A) record, and the LDAP, GC and PDC SRV records.
To check only the CNAME by hand: in DNS Manager on a DC that hosts the zone for its AD domain, open the _msdcs.<DNS domain name> zone (a separate zone since Windows Server 2003) and confirm there's an alias record named <DSA GUID>._msdcs.<DNS domain name> and a matching host (A) record for the server it points to. If the CNAME is missing, test dynamic updates next.
If records are missing, this test checks that the AD domain zone accepts secure dynamic updates by registering a temporary record, _dcdiag_test_record, which it deletes afterwards:
dcdiag /test:dns /s:<SourceDC> /DnsDynamicUpdate
(/e instead of /s: tests every DC.) If secure dynamic update isn't set: in DNS Manager right-click the zone, select Properties, check on the General tab that the type is Active Directory-integrated, and set Dynamic updates to Secure only.
The Net Logon service registers the DC locator records (including the CNAME), and the DNS Client service registers the host (A) record the CNAME points to. To register them now instead of waiting, run on the source DC as Domain Admins in the forest root domain or Enterprise Admins:
net stop netlogon net start netlogon ipconfig /flushdns ipconfig /registerdns
Wait 15 minutes, check Event Viewer for registration errors, and repeat step 4 to confirm the records are in DNS.
With DNS fixed, force inbound replication on the destination DC (Domain Admins in its domain):
If it still fails, check the GUID (step 8).
When all DNS tests pass and replication still fails, the destination DC may be looking for an old GUID: for example, AD DS was reinstalled on the source and the new NTDS Settings object hasn't replicated in. Compare the objectGUID each DC holds in its own copy of the directory (Domain Admins in the destination DC's domain), using Ldp.exe:
ldp. On the Connection menu select Connect, leave Server empty (the local DC), set Port to 389 and select OK.CN=Configuration,DC=<forest root domain>.CN=NTDS Settings,CN=<source DC>,CN=Servers,CN=<site>,CN=Sites,CN=Configuration,DC=<forest root domain>, open it and copy the objectGUID value into Notepad.Different: the destination DC needs to receive the current GUID. Find a DC that already has the correct value and replicate the destination from that DC instead.
Same: check that the GUID matches the <DSA GUID>._msdcs CNAME in DNS. List the DNS servers in each DC's TCP/IP settings; all of them must resolve that alias directly or indirectly. Find the authoritative servers from the NS records at the root of the forest root zone. On those servers, in DNS Manager, open the forest root zone, then the _msdcs folder, and check the alias records for the server.
Look up 2087, 2088 and 1925 in the Windows Event ID Lookup, copy the dcdiag /test:dns, net view, ntdsutil metadata cleanup and reg add for 22 DS RPC Client lines from the PowerShell Cheat Sheet, pull the failing DNS host name and DSA GUID out of the event text with the Regex Tester, check that each DC points at DNS servers on the subnets you expect with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the network adapter vendor on a DC that won't answer with the MAC Vendor Lookup. Related guides: event 2088, event 1925, replication error 8524 and DNS Server event 4013.
Every AD replication error code with its cause and fix: common Active Directory replication errors.
Active Directory couldn't resolve the source domain controller's DNS host name to an IP address. The destination DC tried the GUID-based CNAME, the FQDN and the NetBIOS name of its partner, and all three failed, so it can't replicate from that source until the problem is fixed.
It's the source DC's alias (CNAME) record: its DSA GUID followed by _msdcs and the forest root domain, for example b0069e56-b19c-438a-8a1f-64866374dd6e._msdcs.contoso.com. The GUID is the objectGUID of the source DC's NTDS Settings object, and the record should exist in the _msdcs zone and point to the DC's host (A) record.
Both are DS RPC Client events about the source DC's CNAME failing to resolve. 2087 is an error: the FQDN and NetBIOS fallbacks also failed and replication stopped. 2088 is a warning: a fallback worked and replication succeeded, but DNS still needs fixing.
Clean up its metadata, either by deleting its computer object in Active Directory Users and Computers or with ntdsutil metadata cleanup and remove selected server. Until you do, the other DCs keep trying to replicate with it and keep logging 2087.
On the source DC run net stop netlogon and net start netlogon to register the DC locator records, including the CNAME, then ipconfig /flushdns and ipconfig /registerdns for the host (A) record. Wait about 15 minutes and check DNS again.
Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.