Event ID 2087: DNS Lookup Failure Caused AD Replication to Fail

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

Quick answer

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:

  1. the source DC's GUID-based alias (CNAME) record, <DSA GUID>._msdcs.<forest root domain>;
  2. the source DC's fully qualified domain name (FQDN);
  3. the source DC's NetBIOS name.

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:

  1. Check whether the source DC still works. If it's gone for good, clean up its metadata and stop there.
  2. If it works, run the dcdiag DNS tests, register its DNS records again, replicate, and as a last check compare the NTDS Settings GUID on both DCs.

What the event looks like

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:

FieldWhat it tells you
Source domain controllerThe partner this DC couldn't reach (DC2 above).
Failing DNS host nameThe 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 valueThe 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

Why it happens

Microsoft lists these causes for a source DC whose alias (CNAME) record won't resolve:

Step 1: Is the source DC still working?

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.

Step 2: Source DC is gone: clean up its metadata

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:

  1. At metadata cleanup: type connection, then connect to server <a working DC>, then quit.
  2. Type select operation target, then list sites and select site <number>.
  3. list domains in site and select domain <number>.
  4. list servers in site and select server <number>, then quit.
  5. remove selected server, then remove selected domain to remove the domain metadata as well.
  6. 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.

Step 3: Run the dcdiag DNS tests

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:

  1. Open the report and scroll to the Summary table near the bottom.
  2. Note every DC marked Warn or Fail.
  3. Search for DC: <DC name> to find that DC's detailed section.
  4. Fix the DNS client and DNS server settings it reports, then run the test again to confirm.

Step 4: Check the CNAME and locator records

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.

Step 5: Test dynamic updates

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.

Step 6: Register the records again

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.

Step 7: Replicate from the source DC

With DNS fixed, force inbound replication on the destination DC (Domain Admins in its domain):

  1. Open Active Directory Sites and Services.
  2. Expand Sites, the destination DC's site, Servers, the destination DC, and select NTDS Settings.
  3. In the details pane, find the connection object whose From Server is the source DC.
  4. Right-click it, select Replicate Now, then OK.

If it still fails, check the GUID (step 8).

Step 8: Compare the NTDS Settings GUID on both DCs

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:

  1. On the destination DC, run ldp. On the Connection menu select Connect, leave Server empty (the local DC), set Port to 389 and select OK.
  2. Connection > Bind: use Enterprise Admins credentials, select Domain and enter the forest root domain.
  3. View > Tree: enter CN=Configuration,DC=<forest root domain>.
  4. Go to 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.
  5. Connection > Disconnect, then repeat with the source DC's name (for example DC03) in the Server box.
  6. Compare the two values.

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.

Related tools and guides

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.

FAQ

What does event ID 2087 mean?

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.

What is the failing DNS host name in event 2087?

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.

What is the difference between event 2087 and 2088?

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.

What if the source DC no longer exists?

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.

How do I re-register a domain controller's DNS records?

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.

Want the full kit?

Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.