Skip to content

Est. 2011ยทMicrosoft Partner 7033487ยทDelivery under 3 minยทSupport 7 days a week

Your vault is empty.

Free Fix Event ID 5781

Event ID 5781: dynamic registration of domain controller DNS records failed

11 min read Updated October 4, 2026 Windows Server: AD, DNS & Group Policy

Fix it now

Microsoft publishes 5781 as “Dynamic registration or deletion of one or more DNS records associated with DNS domain ‘<domain>’ failed.” It comes from Net Logon, not from DNS. Clients that already know a domain controller keep working, so the damage shows up slowly, in new sign-ins and in other sites.

Run these on the domain controller logging the event, in an elevated prompt

dcdiag /test:RegisterInDNS /DnsDomain:corp.example.com
dcdiag /test:DNS /DnsRecordRegistration
ipconfig /all
  1. Read the RegisterInDNS output. Microsoft documents this test as checking whether the directory server can register the locator records other computers need, including whether the authoritative zone can be contacted, whether an adapter has a primary DNS server, whether the namespace is disjoint, whether dynamic updates are possible, and whether the locator records come back.
  2. Check the server’s own resolver settings. Every DNS server listed must host the directory zone or be able to reach a server that does; a public resolver in the adapter settings guarantees this event.
  3. In DNS Manager, open the zone’s properties and confirm dynamic updates are permitted. With updates set to none, no domain controller will ever register anything.
  4. Restart Net Logon on the domain controller and re-run the two tests.

If your directory zone is a single label, treat that as the cause rather than a puzzle: Microsoft documents 5781 as a symptom of single-label DNS names, where clients and DCs cannot dynamically register records in the zone.

If both tests pass and the locator records resolve, you are done. If not, the next section covers what a domain controller has to publish and why it fails.

Why it happens

Nobody creates a domain controller’s locator records by hand. Net Logon works out the set of names the server must own – the service records clients query to find a domain controller, the alias that carries the server’s directory identifier, and its host records – and registers them as dynamic updates. Event 5781 is that registration failing, and Microsoft’s published text names the DNS domain the records belong to.

Two conditions have to hold for the update to succeed. The DNS server the domain controller is configured to use must be authoritative for the zone or able to reach one that is, and the zone itself must accept dynamic updates. For a directory-integrated zone the setting to use is secure updates only, which lets a machine update the records it already owns and refuses updates from anything else.

Microsoft documents one configuration where this event appears consistently and no zone setting fixes it: a domain with a single-label DNS name. In that case clients may be unable to register records dynamically in the single-label forward lookup zone, and the domain controllers log 5781 in their system logs as a matter of course. That is a naming decision to unwind, not a registration problem to troubleshoot.

The rest of the events in this family – 5774, 5775 and 6702 – are not published by Microsoft. Read them for the record names, DNS server addresses and status values they carry. A 5774 naming one record and one DNS server tells you exactly which zone to look at, and that is more useful than any definition of the number would be.

The zone does not accept dynamic updates

You have this one if The zone’s properties show dynamic updates set to none, and every record fails the same way.

  1. Set dynamic updates to secure only on the directory-integrated zone.
  2. Do the same for the reverse lookup zone if you rely on pointer records.
  3. Restart Net Logon on each domain controller and re-run dcdiag /test:RegisterInDNS /DnsDomain:<domain>.
  4. Confirm the locator records now resolve.

Secure only is the right setting for a directory-integrated zone. Allowing insecure updates lets any host on the network overwrite records it does not own, which is a much larger problem than the one you are fixing.

The domain controller is pointed at the wrong DNS server

You have this one if The server’s resolver list holds a public address, an ISP address, or a server that is not authoritative for the directory zone.

  1. Set the adapter to use DNS servers that hold the directory zone for this forest, and nothing else.
  2. If the server needs to resolve internet names, configure forwarders on the DNS server itself rather than putting a public resolver in the client settings.
  3. Flush the resolver cache and restart Net Logon.
  4. Repeat the check on every domain controller, since one misconfigured server produces this event on its own.

The zone for the forest-wide locator records is missing or too narrow

You have this one if Records in the domain’s own zone resolve and the ones the rest of the forest depends on do not, so other domains cannot find this domain controller.

  1. Confirm the _msdcs zone for the forest root exists and is directory-integrated.
  2. Set its replication scope so that every DNS server in the forest holds it, because the whole forest depends on those records.
  3. Confirm the parent zone contains a delegation to it where the two are hosted separately.
  4. Restart Net Logon and re-test the locator records.

A multi-homed domain controller is publishing addresses clients cannot use

You have this one if The server has extra adapters for backup, storage or clustering, and records appear with addresses clients cannot route to.

  1. On every adapter that is not the production network, turn off registration of that connection’s addresses in DNS.
  2. Delete the stale host records for those addresses.
  3. Restart Net Logon so the server republishes a clean set.
  4. Confirm only the intended addresses now appear for the server name.

A domain controller with several registered addresses is worse than one with a registration failure, because clients pick an address and roughly half of them fail.

The domain uses a single-label DNS name

You have this one if Every domain controller logs 5781 consistently, and the directory zone name has no dot in it.

  1. Microsoft documents this as a known bad configuration in which clients may be unable to dynamically register records in a single-label forward lookup zone.
  2. Treat it as a naming problem to plan around rather than a registration problem to fix.
  3. Read Microsoft’s best-practice guidance for domains with single-label names before changing anything, because the remedies have consequences of their own.

Full reference

The events

Event Status How to read it
5781 Published Dynamic registration or deletion of one or more DNS records associated with the named DNS domain failed
5774 Not published Read the entry for the record it names and the DNS server the update was sent to
5775 Not published Read the entry the same way; it accompanies a removal rather than a registration
6702 Not published Read the entry for the record and server it names

Only 5781 is published. The three companions are still useful, because each names a specific record and a specific DNS server, which is a narrower question than the one 5781 asks.

The tests Microsoft documents for this

Test What it checks
dcdiag /test:RegisterInDNS /DnsDomain:<domain> Whether the directory server can register the locator records other computers need: that the authoritative zone can be contacted, that at least one adapter has a primary DNS server, whether the namespace is disjoint, whether dynamic updates are possible, and whether the locator records are returned
dcdiag /test:DNS /DnsRecordRegistration The record registration part of the enterprise-wide DNS health check. The DNS test is not run by default and must be requested
dcdiag /test:DNS /DnsAll Every part of the DNS test at once, including forwarders, delegation, dynamic update and external name resolution
dcdiag /test:Advertising Whether the server advertises itself in the roles it should perform. Fails if Net Logon has stopped
dcdiag /test:Connectivity That the directory server agent and DNS are registered and reachable

Why nothing breaks immediately

Clients cache the domain controller they used, so an estate whose domain controllers have stopped registering records carries on working for a while. The failures appear as machines move between sites, reboot, or need a domain controller they have never talked to before. That delay is the reason this event gets closed as low priority and then reopened weeks later as an apparently unrelated authentication problem in one office.

Registering by hand is a poor answer

You can create the records manually, and occasionally during a recovery you have to. It is a bad long-term arrangement because the set includes an alias keyed to the server’s directory identifier, and any hand-built set has to be maintained by hand every time a domain controller is added, removed or readdressed. A missed edit produces exactly this problem again, with no event to tell you, because nothing tried to register anything.

Multi-homed domain controllers

  • A domain controller with a backup, storage or cluster network should register only its production address.
  • Turn off DNS registration on the non-production adapters rather than relying on binding order.
  • Delete the records those adapters already created; turning registration off does not remove what is already published.
  • Check the result by resolving the server’s name and confirming only the intended addresses come back.
  • Repeat the check after any adapter or teaming change, because rebuilding a team commonly restores the default.

Secure updates and what they protect

Setting a zone to accept updates from anything makes this event disappear, and it is the wrong trade. Secure updates tie each record to the account that owns it, so a machine can maintain its own records and nothing else. An open zone lets any host on the network overwrite any record, including the ones clients use to find domain controllers. If the only way to make registration succeed is to open the zone, the registration is failing for a reason worth finding.

Every code this article covers

Code What it points at Source
Event ID 5781 Net Logon: dynamic registration or deletion of one or more DNS records associated with the named DNS domain failed Microsoft Learn
Event ID 5774 Accompanies a failed registration and names one record and the DNS server the update was sent to. Not published by the vendor not published by the vendor
Event ID 5775 The same for a record the domain controller was removing rather than registering. Not published by the vendor not published by the vendor
Event ID 6702 A DNS server entry logged around record updates. Not published by the vendor; read it for the record and server it names not published by the vendor

Confirm the fix worked

  1. dcdiag /test:RegisterInDNS /DnsDomain:<domain> passes on the affected domain controller.
  2. dcdiag /test:DNS /DnsRecordRegistration reports no registration failures.
  3. The locator service records for the domain resolve and list this server.
  4. Only the intended addresses come back when the server’s name is resolved.
  5. No new 5781 or 5774 appears after the next Net Logon restart.

Questions people ask about this

Does this cost anything to fix?

No. Dynamic update settings, resolver configuration and zone scope are configuration on servers you already own.

Will sign-ins stop working?

Not immediately. Clients cache the domain controller they used and carry on. The failures appear as machines move sites, reboot, or need a domain controller they have never contacted, which is why the effect is delayed and looks random.

Can I create the records by hand instead?

You can, and during a recovery you sometimes must. It is a poor long-term answer, because the set includes an alias keyed to the server’s directory identifier and has to be maintained by hand every time a domain controller changes.

Should the zone allow insecure updates?

No. Secure updates let a machine maintain the records it owns and refuse everything else. Opening the zone makes the event go away by letting any host overwrite any record, including the ones clients use to find domain controllers.

Our domain name has no dot in it. Is that relevant?

Very. Microsoft documents 5781 as a symptom in domains with single-label DNS names, where clients may be unable to register records dynamically in the single-label forward lookup zone.

Related error codes

Was this article helpful?

Your feedback helps us improve our documentation.

Related articles

License Error Error 0x80094800: the CA does not support the requested certificate template Free Fix Event ID 4771 Kerberos pre-authentication failed: tracing account lockouts License Error KDC Event ID 20: the domain controller certificate is no longer usable License Error FRS Event ID 13508: SYSVOL still on File Replication Service and unsupported
โ† Back to Knowledge Base