One of our Server 2022 domain controllers keeps showing the Private profile after reboots and NLA restarts. We have also had directory communication and DNS errors, including an outage where the controllers could not communicate on port 389. Where should I start?
Why is my Server 2022 domain controller stuck on the Private network profile?
Answers
Start with DNS and replication rather than treating the profile as the whole problem. Check that the affected controller can resolve the domain using its configured DNS servers and that its connection DNS suffix is correct. Run dcdiag /test:dns and repadmin /replsummary, then investigate any failures and the corresponding DNS and directory service logs.
For DNS server order, one approach is to use a reachable partner DC first and the local DC second. Check that the partner is actually healthy and reachable before relying on it. Also review missing subnets in Active Directory Sites and Services, since those need attention even if they do not explain this particular profile issue.
Reply to this answer
If domain detection is failing during startup, there is an NLA setting worth testing. Under HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters, set the DWORD AlwaysExpectDomainController to 1. It is intended to make NLA keep retrying domain detection rather than give up after an initial failure.
I would treat that as a targeted test, not a fix for the port 389 outage or underlying DNS errors. Record the current setting and follow your normal change process.
Reply to this answer
Check what the network connection itself reports as well. If it shows an unidentified network, look at the adapter configuration, including the gateway and DNS addresses. If DNS is set to 127.0.0.1, checking the controller's own IP address instead may be worth testing.
Also confirm the active firewall profile when testing connectivity. A Private profile can have different rules from the Domain profile, so it is worth checking whether a rule is blocking port 389 rather than assuming the directory service is down.
Reply to this answer
Don't rush to enable DNS scavenging just because old records exist. If it previously coincided with an outage, review the records and configuration first, alongside the current DNS errors. The stale records and missing site subnets deserve their own investigation, but neither is proof of the cause of this outage.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Morning Toast:
There are different practices for putting the local DNS server first or second. Whichever order you use, check resolution and replication health on both servers.