0XC0000233

Fix 0XC0000233: Domain Controller Not Found Error

Windows Errors Intermediate 👁 5 views 📅 Jun 9, 2026

Your PC can't find a domain controller. This guide walks through quick checks, DNS fixes, and advanced repairs to get you back online.

You're staring at a blue screen or a login prompt that won't accept your password. The error says STATUS_DOMAIN_CONTROLLER_NOT_FOUND (0XC0000233). It's a nasty one — usually happens when your computer boots up after a network change, a VPN disconnect, or a DNS server went down while you weren't looking.

Here's what's happening: your machine knows it belongs to a domain (say corp.contoso.com), but when it tries to find a domain controller to authenticate you, it comes up empty. The error code 0XC0000233 is Windows saying, "I looked everywhere — no dice."

I've seen this with laptops that go from the office to home, or after a router firmware update. It's fixable. Work these steps in order. Stop when you're back in.

1. The 30-Second Fix: Check Your Network Cable or Wi-Fi

This sounds dumb, but I've watched people spend 20 minutes on DNS when their Wi-Fi was turned off. Windows can't find a domain controller if it's not connected to the network that has one.

  1. Look at the network icon in the system tray (bottom-right). You should see a wired connection or a Wi-Fi signal with internet access. If you see a red X or a globe with a yellow exclamation, you're not connected.
  2. If you're on Wi-Fi, click the icon and reconnect to your work network. If you're wired, check the cable is snug at both ends.
  3. After connecting, wait 10 seconds. Then try to log in again with Ctrl + Alt + Del.

If you're back in? Great. If not, move on.

2. The 5-Minute Fix: Flush DNS and Reset the Network Stack

Your computer might have cached a bad DNS record — an old IP for your domain controller that's no longer valid. Flushing that cache is quick and usually fixes it.

  1. Press Windows + R, type cmd, then press Ctrl + Shift + Enter to run as Administrator.
  2. In the black Command Prompt window, type these commands one at a time, pressing Enter after each:
ipconfig /flushdns
ipconfig /registerdns
ipconfig /release
ipconfig /renew

After each command, you'll see a confirmation. /flushdns says "Successfully flushed the DNS Resolver Cache." /registerdns might take a few seconds — it's re-registering your computer with the DNS server.

Now type:

nbtstat -R
nbtstat -RR

These clear NetBIOS name cache and re-register names. You should see "Successful purge and preload of the NBT Remote Cache Name Table" for the first one.

Finally, reset the Winsock catalog — this fixes weird network socket issues:

netsh winsock reset

Important: You'll see a message saying you need to restart. Don't restart yet — we're going to test first.

To confirm DNS is working, type:

nslookup yourdomain.local

Replace yourdomain.local with your actual domain name (e.g., corp.contoso.com). You should get back an IP address — that's your domain controller. If you get "DNS request timed out" or "server failed," your DNS server is unreachable. That's the core problem.

Now restart your computer. After it comes back up, try logging in. If it works, you're done. If not, proceed to step 3.

3. The 15-Minute Fix: Manually Set DNS Server and Repair Domain Trust

This step is for when your DNS server is down, misconfigured, or your laptop is using a wrong DNS (common with home routers handing out 8.8.8.8 instead of your internal DNS). We'll force your PC to use the right DNS, then repair the domain relationship.

3a. Set a Static DNS Server

  1. Press Windows + R, type ncpa.cpl, press Enter.
  2. Right-click your active network adapter ("Ethernet" or "Wi-Fi"), select Properties.
  3. Find Internet Protocol Version 4 (TCP/IPv4) in the list, double-click it.
  4. Select Use the following DNS server addresses.
  5. Ask your IT admin for the internal DNS IP. If you don't know it, try the domain controller's IP — often it's the same server. Common ones: 10.0.0.1, 192.168.1.10, or something like 172.16.x.x. If you have no clue, set it to 8.8.8.8 as a temporary test — but note that won't resolve your internal domain unless your domain is public.
  6. Click OK, then OK again.

3b. Test Domain Discovery

Open a new Command Prompt as Administrator (same way as before). Type:

nltest /dsgetdc:yourdomain.local

Replace yourdomain.local with your actual domain. If you get a reply showing "DC: \\DC01.yourdomain.local", the domain controller is reachable. If you get "ERROR_NO_LOGON_SERVERS" or something similar, the DNS is still wrong or the DC is actually offline.

3c. Reset the Machine Account Password (Advanced)

If the domain controller is reachable but your computer still can't log in, the trust relationship between your PC and the domain might be broken. This happens if you rolled back Windows updates or restored from a backup.

Warning: This requires you to be logged in as a local admin. If you can't get past the login screen, you'll need to boot into Safe Mode with Networking. To do that:

  1. Restart your computer. As it boots, press F8 repeatedly until you see Advanced Boot Options.
  2. Select Safe Mode with Networking.
  3. Log in with the local Administrator account (not the domain account). If you don't know that password, you're stuck — call your IT admin.

Once you're in Safe Mode as local admin, open Command Prompt as Administrator and run:

netdom resetpwd /server:DC01 /userd:YOURDOMAIN\Administrator /passwordd:*

Replace DC01 with your domain controller's computer name, and YOURDOMAIN with your domain name. It'll prompt you for the domain admin password (not the local one). Type it — nothing shows on screen — and press Enter.

You should see "The machine account password for this computer has been reset successfully."

Restart normally and try logging in. If you still get the error, the trust relationship may need a full domain rejoin — that's a separate process and usually requires IT support.

What If None of These Work?

If you're still seeing 0XC0000233 after all this, the domain controller itself might be offline, or your computer has a corrupted local security authority (LSA) cache. In that case:

  • Check with your IT team whether the domain controller is running. Ping the DC's IP (not the name — use the IP from nslookup earlier). If you get no reply, it's down.
  • If the DC is up but your computer still fails, try disconnecting from the network, restarting, then reconnecting. Sometimes the network location profile gets stuck on "Public" and blocks discovery.

One last trick: disable IPv6 on your network adapter. I've seen it interfere with domain discovery on some Windows 10 builds (1909 and 21H2). Go to ncpa.cpl, right-click your adapter, Properties, uncheck Internet Protocol Version 6 (TCP/IPv6), click OK, restart.

That's the full playbook. Start at the top, and you'll be back in within 15 minutes — assuming the DC is alive.

Was this solution helpful?