DNS event 4013 — waiting for Active Directory to signal it has completed initial synchronisation
The DNS server will not start its AD-integrated zones because AD has not finished synchronising, and AD cannot synchronise because it needs DNS. On a single DC this deadlock resolves itself; with more than one it may not.
What you see
After a restart, DNS does not answer for the domain. Event 4013 in the DNS Server log. Clients cannot log in and replication fails.
What is actually wrong
The DC could not reach a replication partner during startup. Common after restoring a DC, after a long outage, or when a DC has been offline past the tombstone lifetime.
Codes and articles
Fixes (2)
Break the deadlock on a single-DC domain
This is the only DC, so there is no partner to wait for and the wait is pointless.
Confirm it really is the only DC.
Get-ADDomainController -Filter * | Select-Object Name, Site, IPv4AddressTell the DC not to require initial synchronisation before advertising.
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\NTDS\Parameters' -Name 'Repl Perform Initial Synchronizations' -Value 0 -PropertyType DWord -ForceThis is safe on a single DC and dangerous on several: it lets a DC advertise before it has caught up, which on a multi-DC domain can hand out stale data. Set it back to 1 if another DC is ever added.
Restart the DC.
Confirm DNS is answering for the zone.
Resolve-DnsName example.local -Server 127.0.0.1
dcdiag /v /test:dnsRestore replication with the partner
There is more than one DC. Do NOT apply the single-DC registry change here — find out why the partner is unreachable instead.
Check how long this DC has been out of touch. If it exceeds the tombstone lifetime, it must be demoted and rebuilt rather than reconnected.
repadmin /showreplGet-ADObject -Identity ((Get-ADDomain).DistinguishedName) -Properties tombstoneLifetime
Reintroducing a DC that has been offline longer than the tombstone lifetime resurrects deleted objects across the forest. That is far worse than the outage you are fixing.
Confirm the partner is reachable on the network and by name.
Test-NetConnection DC02 -Port 389Resolve-DnsName DC02
Point this DC's DNS client at a working partner rather than itself.
Set-DnsClientServerAddress -InterfaceAlias 'Ethernet' -ServerAddresses 10.0.0.11,127.0.0.1Restart the DC, then force replication.
repadmin /syncall /AdeP
repadmin /replsummaryReference
Related faults
Where this stops. This write-up was written and checked by hand. It says what each step changes, how to confirm it worked and how to reverse it, and anything destructive is flagged before you reach it. If it does not match what your machine is doing, search the Support Centre for the exact code or message — and when something needs a person, get in touch.