Quick answer for advanced users
Reconnect to the corporate network, then run ipconfig /flushdns and nltest /dsgetdc:yourdomain.com from an elevated command prompt. If that doesn't work, restart the Netlogon service on the client.
Why this happens
This error pops up when Windows tries to log you on with a domain account but can't reach any domain controller (DC). It's not a password problem — the machine simply can't find a DC to validate your credentials. Common triggers:
- You're on a laptop that slept through a network change and the Wi‑Fi reconnected to the wrong SSID (like a guest network).
- A DNS misconfiguration on the client points to the wrong DNS servers, so the
_ldap._tcp.dc._msdcs.yourdomain.comSRV record lookup fails. - The Netlogon service on the client crashed or stopped.
- The DC itself is down or unreachable due to a firewall rule.
When this happens, you usually still have cached credentials, so you might get in once. But the real fix is restoring connectivity to the DC.
Fix steps
Try these in order. Most users only need step 1 or 2.
Step 1 – Check your network connection
- Click the network icon in the system tray and verify you're connected to your corporate network, not a public or guest network.
- If you're on Wi‑Fi, forget the current network and reconnect to the correct one.
- Once connected, open Command Prompt as administrator. Press Win, type
cmd, right-click it, and choose Run as administrator. - Run
ping yourdomain.com(replace with your actual domain). If you get replies, proceed. If it times out, you're still not on the right network.
Expected outcome: You'll see replies if the DC is reachable. If not, move to step 2.
Step 2 – Flush DNS and force DC discovery
- In the same admin command prompt, run:
ipconfig /flushdns - Then run:
Replacenltest /dsgetdc:yourdomain.comyourdomain.comwith your actual domain name. This forces Windows to attempt locating a DC. - If it returns a DC name, you're good. If it says
ERROR_NO_LOGON_SERVERSagain, DNS is the problem.
Expected outcome: You'll either see a DC listed or get an error message that tells you more about why discovery failed.
Step 3 – Restart the Netlogon service
- Open Services (press Win + R, type
services.msc, hit Enter). - Find Netlogon in the list. Right-click it and select Restart.
- If it's not running, right-click and choose Start.
Expected outcome: The service should start without errors, and the logon should work now.
Step 4 – Verify DNS settings
- Open Network Connections (Win + R, type
ncpa.cpl). - Right-click your active adapter and choose Properties.
- Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
- Make sure the DNS servers are set to your internal DNS (usually the DC's IP). If it's set to something like 8.8.8.8, that's your problem — change it to the correct internal DNS.
- Click OK and close all dialogs.
Expected outcome: After applying, you'll see the DNS server IPs. Now try logging off and back on.
Alternative fixes if the main one fails
Use cached credentials to get in
If you've logged into this machine before, you can press Ctrl + Alt + Del, then choose Switch user. On the login screen, type your username and password. Windows will use the cached logon. This gets you to the desktop, but you still need to fix the network issue.
Reboot the DC (if you have access)
If you're an admin and the DC is unresponsive, reboot it. Sometimes the Netlogon service on the DC hangs. After it comes back, wait a few minutes for it to register DNS records.
Check the firewall on the DC
Make sure the Windows Firewall on the DC allows inbound TCP/UDP 389 (LDAP), 88 (Kerberos), and 53 (DNS). If you recently changed firewall policies, that could block client requests.
Repair the computer's trust relationship
If the error persists even with network connectivity, the machine might have lost its domain trust. You'll need to rejoin the domain. From an admin command prompt on the client:
- Run
netdom resetpwd /s:yourdcname /ud:yourdomain\administrator /pd:*(uses current admin password). - If that fails, you'll have to unjoin and rejoin the domain — that's a bigger job, but it's the nuclear option.
Expected outcome: The command will prompt for a password and then reset the machine account password.
Prevention tips
- Set your DNS servers statically on critical machines, or make sure DHCP hands out the correct internal DNS.
- Keep the Netlogon service set to Automatic and monitor it with your RMM tool.
- If you have laptops that roam, configure offline files and cached credentials so users can work during brief outages.
- Test DC discovery regularly with
nltest /dsgetdcfrom a few clients.
The real fix is almost always DNS. Get that SRV record resolvable and the error vanishes. Don't go straight to rejoining the domain — that's like reinstall Windows when a driver update would do.