NETLOGON 5774, 5775 or 5781: the DC cannot register its SRV, CNAME and A locator records in DNS. Fix DNS client settings and secure dynamic updates, run dcdiag registerindns, re-register with nltest /dsregdns and verify.
Home › Guides › Netlogon 5774 / 5781
Last updated 20 November 2026
NETLOGON events 5774, 5775 and 5781 mean the domain controller can't dynamically register (or delete) the DNS records that advertise it as a DC: the SRV records such as _ldap._tcp.dc._msdcs.contoso.com, the GUID-based CNAME and the A records. Microsoft's consequence list: other DCs, domain members and devices can't locate this DC, other DCs might not be able to replicate from it, computers might not be able to join the domain, and you might not be able to add DCs (unless other DCs registered their records).
Usual causes: the DC's DNS client points at DNS servers that don't host the AD zone (an ISP or public resolver), the zone doesn't accept secure dynamic updates, the DNS server is down or unreachable, or registration has been turned off. Fix the cause, then re-register with nltest /dsregdns (or restart Netlogon) and verify with dcdiag /test:dns /DnsRecordRegistration.
Event 5774 names one record, the DNS server it tried, and the result. A sample from a Windows Server 2016 DC (names changed to contoso.com):
The dynamic registration of the DNS record '_ldap._tcp.dc._msdcs.contoso.com. 600 IN SRV 0 100 389 dc01.contoso.com.' failed on the following DNS server: DNS server IP address: 10.0.0.2 Returned Response Code (RCODE): 0 Returned Status Code: 10054 For computers and users to locate this domain controller, this record must be registered in DNS. USER ACTION Determine what might have caused this failure, resolve the problem, and initiate registration of the DNS records by the domain controller. To determine what might have caused this failure, run DCDiag.exe. To learn more about DCDiag.exe, see Help and Support Center. To initiate registration of the DNS records by this domain controller, run 'nltest.exe /dsregdns' from the command prompt on the domain controller or restart Net Logon service. Or, you can manually add this record to DNS, but it is not recommended. ADDITIONAL DATA Error Value: An existing connection was forcibly closed by the remote host.
Event 5781 is per DNS domain, and often appears three times, for the domain, DomainDnsZones and ForestDnsZones:
Dynamic registration or deletion of one or more DNS records associated with DNS domain 'contoso.com.' failed. These records are used by other computers to locate this server as a domain controller (if the specified domain is an Active Directory domain) or as an LDAP server (if the specified domain is an application partition).
| Event | Hex | Meaning |
|---|---|---|
| 5774 | 0x168E | Dynamic registration of one DC locator record failed on the named DNS server. |
| 5775 | 0x168F | Dynamic deletion (deregistration) of one DC locator record failed. |
| 5781 | 0x1695 | Registration or deletion of one or more records for a DNS domain or application partition failed. |
dcdiag's SystemLog test prints the ID in hex, so a 5781 shows up as A warning event occurred. EventID: 0x00001695. Pull the events with PowerShell:
Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='NETLOGON'; Id=5774,5775,5781} -MaxEvents 20 | Format-List TimeCreated, Id, MessageReturned Response Code (RCODE) is the DNS server's answer to the update; Returned Status Code is the Windows error the DC got. Common RCODEs from the DNS standards (RFC 1035 and RFC 2136 for updates):
ipconfig /all
Microsoft's DNS client recommendations for DCs (KB 825036):
After changing DNS client settings: ipconfig /flushdns and ipconfig /registerdns.
dcdiag /test:registerindns /dnsdomain:contoso.com /v
RegisterInDNS can only run locally on the DC. It checks that the authoritative DNS zone can be contacted, that at least one adapter has a primary DNS server, whether the DNS suffix gives you a disjoint namespace, whether dynamic updates of the server's A record are possible (zone settings plus the DnsUpdateOnAllAdapters and DisableDynamicUpdate client settings), and whether an LDAP DC locator record like _ldap._tcp.dc._msdcs.<domain> comes back. Follow what it reports.
dcdiag /test:dns /v /s:DC01 /DnsDynamicUpdate
This confirms the AD zone accepts secure dynamic updates by registering a test record (_dcdiag_test_record, deleted afterwards). If IPv6 isn't enabled on the DC, the AAAA part is expected to fail. If secure updates are off: in DNS Manager (dnsmgmt.msc) open the zone's Properties, check on the General tab that it is Active Directory-integrated, and set Dynamic updates to Secure only.
Under HKLM\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters:
| Value | Default | Effect when 0 |
|---|---|---|
| UseDynamicDns | 1 | Netlogon doesn't use DNS updates; the records in Netlogon.dns must be registered by hand. To make a change effective, delete %systemroot%\System32\Config\netlogon.dnb and restart Netlogon. |
| RegisterDnsARecords | 1 | No A records from Netlogon, including gc._msdcs.<forest>, which then has to be registered manually. Restart Netlogon after changing it. |
Neither value is in the registry by default. Also check DisableDynamicUpdate under HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters (1 turns off DNS client registration on all adapters).
On a DC with several network adapters, Microsoft says to disable DNS registration on the unwanted one, or clients may be handed an address they can't reach (KB 2023004): clear Register this connection's addresses in DNS on that adapter, set the DNS server's Interfaces tab to listen only on the wanted IP, remove the unwanted IP from the zone's Name Servers tab, then delete the DC's unwanted A record.
On the DC, after fixing the cause:
nltest /dsregdns ipconfig /flushdns && ipconfig /registerdns
nltest /dsregdns refreshes the registration of all DC-specific records; restarting Netlogon (net stop netlogon && net start netlogon) does the same. The DNS Client service registers the host (A) record that the CNAME points to, hence ipconfig /registerdns. By default Netlogon also re-registers its records every hour.
Verify:
dcdiag /test:dns /DnsRecordRegistration nslookup -type=SRV _ldap._tcp.dc._msdcs.contoso.com
The first checks the CNAME, A, LDAP SRV, GC SRV and PDC SRV records. The nslookup answer should list the DC with port 389. In DNS Manager the SRV records sit under _msdcs/dc/_tcp and _msdcs/dc/_sites/Default-First-Site-Name/_tcp (_kerberos and _ldap), and the _msdcs zone has a CNAME named after the DC's DSA GUID. With non-Microsoft DNS, compare against %systemroot%\System32\Config\Netlogon.dns, the list of records the DC needs.
Missing locator records are a common cause of DNS lookup failures in replication; see replication error 8524 and event 2087.
Look up NETLOGON events 5774, 5775 and 5781 in the Windows Event ID Lookup, copy the nltest /dsregdns, dcdiag registerindns and DnsDynamicUpdate lines from the PowerShell Cheat Sheet, pull the record names and DNS server IPs out of 5774 event text with the Regex Tester, check the DC addresses and DNS server IPs against your subnets with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify which network adapter on a multihomed DC registered the wrong address with the MAC Vendor Lookup. Related guides: replication error 8524 (DNS lookup failure), event 2087, DNS Server event 4013 and common AD replication errors.
Two SRV records for the same DC, one in lowercase and one in mixed case? See duplicate SRV records for a DC with uppercase letters.
DCs cannot register their records and the DNS server logs event 4015 with ADMIN_LIMIT_EXCEEDED? See DNS Server event 4015.
Every AD replication error code with its cause and fix: common Active Directory replication errors.
The domain controller couldn't dynamically register one of its DC locator DNS records on the DNS server named in the event. Without those records other DCs, members and devices may not find the DC, replication from it can fail and computers may not be able to join the domain.
5774 is a failed registration of one record, with the DNS server, RCODE and status code. 5775 is a failed deletion of a record. 5781 says registration or deletion of one or more records for a DNS domain failed, and often appears for the domain, DomainDnsZones and ForestDnsZones.
No. Microsoft says that if a DC's DNS client points to the ISP's DNS servers, Netlogon doesn't register the correct records. Point DCs at DNS servers that host the AD zone and configure the ISP servers as forwarders.
Fix the cause first, then run nltest /dsregdns on the DC or restart the Netlogon service, and ipconfig /registerdns for the host record. Check the result with dcdiag /test:dns /DnsRecordRegistration.
Run nslookup -type=SRV _ldap._tcp.dc._msdcs.contoso.com with your domain name, look under _msdcs/dc/_tcp in DNS Manager, or compare DNS with the records listed in %systemroot%\System32\Config\Netlogon.dns.
Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.