DNS Server Events 4000, 4007, 4004 and 4016: AD-Integrated Zones Not Loading

AD-integrated DNS zones missing on a domain controller with DNS Server events 4000 and 4007: reset the secure channel with netdom resetpwd. Events 4016 and 4004: LDAP update timeouts fixed in the April 2024 updates, with a workaround.

Home › Guides › DNS Server events 4000, 4007, 4004 and 4016

Last updated 21 November 2026

Quick answer

When the DNS console on a domain controller shows no Active Directory-integrated zones and the DNS Server log has event 4000 (The DNS server was unable to open Active Directory) and event 4007 (unable to open zone in the Active Directory from the application directory partition), Microsoft's cause (KB 2751452) is that the DC/DNS server has lost its secure channel with itself or with the PDC. It also happens on a single DC that holds all the FSMO roles and points to itself as its primary DNS server. The fix is to point the server at another DNS server, stop the KDC, reset the machine account password with netdom resetpwd and reboot.

Events 4016 (The DNS server timed out attempting an Active Directory service operation) and 4004 (unable to complete directory service enumeration of zone) are a different problem: DNS updates from LDAP to AD time out. Microsoft fixed that in the April 9, 2024 updates for Windows Server 2019 and later; the workaround is to purge the system Kerberos ticket cache and restart the DNS Server service.

EventWhat the DNS Server log saysGo to
4000The DNS server was unable to open Active Directory and is unable to load the zone without it.Secure channel fix (KB 2751452)
4007The DNS server was unable to open zone <zone> in the Active Directory from the application directory partition <partition name>.Secure channel fix (KB 2751452)
4016The DNS server timed out attempting an Active Directory service operation on DC=...,cn=MicrosoftDNS,...LDAP update timeouts (April 2024 updates)
4004The DNS server was unable to complete directory service enumeration of zone ...LDAP update timeouts (April 2024 updates)

Events 4000 and 4007: the symptoms

One of the DNS servers in the environment stops showing its zones in the DNS console, and these two events are logged in the DNS event log:

Event ID 4000
The DNS server was unable to open Active Directory. This DNS server is configured to obtain and use information from the directory for this zone and is unable to load the zone without it. Check that the Active Directory is functioning properly and reload the zone. The event data is the error code.
Event ID 4007
The DNS server was unable to open zone <zone> in the Active Directory from the application directory partition <partition name>. This DNS server is configured to obtain and use information from the directory for this zone and is unable to load the zone without it. Check that the Active Directory is functioning properly and reload the zone. The event data is the error code.

Also described in KB 2751452:

Events 4000 and 4007: fix the secure channel

  1. If you have other domain controller/DNS servers, set the DNS server in the TCP/IP properties of the broken server to another active DNS server.
  2. Stop the KDC service on the DC that has the problem.
  3. From an elevated prompt, reset the machine account password against the PDC. It prompts for the password of the Domain Admin account you name:
    netdom resetpwd /server:<PDC.domain.com> /userd:<Domain\domain_admin> /passwordd:*
  4. When the command finishes, reboot the server. The DNS zones should load.

If it is the only domain controller and there are no other DNS servers, follow the same steps but use the server's own IP address in place of PDC.domain.com, because it is the PDC itself.

The same netdom resetpwd and stop-the-KDC pattern appears in the replication error -2146893022 and replication error 5 (Access is denied) guides.

Events 4016 and 4004: DNS updates to AD time out

Microsoft's article on 4016 and 4004 covers AD-integrated DNS zones hosted on domain controllers running Windows Server 2012 R2 or later. DNS can't enumerate the zones, or intermittently fails to create or write records, and both events are logged with the source Microsoft-Windows-DNS-Server-Service:

Event ID 4016
The DNS server timed out attempting an Active Directory service operation on DC=xx.x,DC=xxx.xx.in-addr.arpa,cn=MicrosoftDNS,DC=ForestDnsZones,DC=xxx,DC=com. Check Active Directory to see that it is functioning properly. The event data contains the error.
Event ID 4004
The DNS server was unable to complete directory service enumeration of zone xx.xxx.xx.in-addr.arpa. This DNS server is configured to use information obtained from Active Directory for this zone and is unable to load the zone without it. Check that the Active Directory is functioning properly and repeat enumeration of the zone. The extended error debug information (which may be empty) is "". The event data contains the error.

What Microsoft observed while the events are logged:

The issue is fixed in these updates:

Update (April 9, 2024)OS build
KB503690920348.2402
KB503691025398.830
KB503689617763.5696

Events 4016 and 4004: the workaround

Until the update is installed, Microsoft's workaround is to restart the DNS Server service after deleting the Kerberos ticket cache. The core of its example PowerShell script is:

Stop-Service DNS -Force
klist purge -li 0x3e7
Start-Service DNS

The full script in the article runs in a loop: it reads the DNS Server log with Get-EventLog, counts events 4016 or 4011 in the last $EventIntervalMinutes (3 by default), and when it finds $NumberOfEvents (10 by default) it stops DNS, purges the system tickets, starts DNS and logs each step to C:\temp\dnsResetLog.txt. Microsoft notes that those defaults may not be optimal and should be adjusted for your environment.

Related: 4004 with 4013

Microsoft's DNS troubleshooting guidance also lists 4004 together with event 4013, with the message that the DNS server was unable to open Active Directory and will wait for the directory to start, and points to troubleshooting AD DS and restarting the DNS Server service. That startup wait is covered in DNS Server event 4013. For event 4015 (critical error from the Active Directory), see DNS Server event 4015.

Related tools and guides

Look up DNS Server events 4000, 4007, 4004, 4016 and 4013 in the Windows Event ID Lookup, copy the netdom resetpwd and klist purge lines from the PowerShell Cheat Sheet, pull the zone names out of exported 4007 and 4004 events with the Regex Tester, check which subnet the other DNS servers sit in with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the network adapter vendor of the affected DC with the MAC Vendor Lookup. Related guides: DNS Server event 4015, DNS Server event 4013, replication error -2146893022 and common AD replication errors.

DNS server querying itself, or stale records piling up? See DNS Server event 7062 and DNS scavenging not working.

Every AD replication error code with its cause and fix: common Active Directory replication errors.

Every Windows DNS Server and DHCP Server event and symptom in one place: common Windows DNS Server and DHCP Server errors.

FAQ

What causes DNS Server events 4000 and 4007?

Microsoft says the domain controller and DNS server has lost its secure channel with itself or with the PDC. It can also happen on a single DC that holds all the FSMO roles and points to itself as its primary DNS server. The zones do not load and the DNS console shows Access Denied.

How do I fix events 4000 and 4007?

Point the server at another active DNS server in its TCP/IP properties, stop the KDC service, run netdom resetpwd /server:PDC /userd:Domain\admin /passwordd:* from an elevated prompt and reboot. On the only DC, use its own IP address as the server.

What do DNS Server events 4016 and 4004 mean?

Event 4016 says the DNS server timed out attempting an Active Directory service operation, and 4004 says it could not complete directory service enumeration of a zone. Microsoft ties them to DNS updates from LDAP to AD timing out on AD-integrated zones.

Which updates fix events 4016 and 4004?

Microsoft lists the April 9, 2024 updates KB5036909 (OS Build 20348.2402), KB5036910 (OS Build 25398.830) and KB5036896 (OS Build 17763.5696) for Windows Server 2019 and later versions.

What is the workaround for events 4016 and 4004?

Restart the DNS Server service after deleting the Kerberos ticket cache: Stop-Service DNS -Force, klist purge -li 0x3e7, then Start-Service DNS. Microsoft gives a PowerShell script that does this when 4016 or 4011 events repeat.

Want the full kit?

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