Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Fix the "An Active Directory Domain Controller Could Not Be Contacted" Error

This Windows error appears when your computer cannot reach the server that manages your network logins. This guide shows the common fixes.

Domains and DNS2 min read11 steps30 screenshots

What is this error?

Active Directory is a Microsoft system that keeps a list of users and computers in an office network. A domain controller is the server that runs it. Think of it as the security desk of a building. If your computer cannot find the desk, it cannot check your badge.

The error usually shows up when you try to join a computer to a domain, or log in to one.

system button
Change settings
System Properties window

Common causes

  • Your computer uses the wrong DNS server.
    Validate the Accuracy of IP Settings
    DNS Client Service
    Inspect the Host File for Domain Entries
    Restart the DNS Cache Service
    Service.msc console
  • The domain controller is switched off or has no network.
    Check the Accessibility of the DC from the Client
  • The domain name is typed wrongly.
  • A firewall blocks the connection.
  • The clock on your computer is far from the server's clock.

Steps

  1. Check that your network cable or Wi-Fi works. Open a website to test.
    execute command
  2. Press Windows key + R, type ncpa.cpl and press Enter.
    Verify DC Accessibility using PowerShell
  3. Right-click your network connection and choose Properties.
    ping the DC
    trace the routes to the DC
    trace the routes to the DC
    Configure the DNS Server in the TCP/IP Settings
    network adapter
  4. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
  5. Set Preferred DNS server to the IP address of your domain controller. Do not use a public DNS here. Public DNS cannot find your private domain.
    DNS tab
    advanced tcp ip setting
    Verify Your DNS Server Configuration
  6. Click OK.
  7. Open Command Prompt and clear the old DNS memory:
ipconfig /flushdns

This command clears saved DNS answers on your computer.

  1. Test that the domain name is found:
nslookup yourdomain.local

Use your real domain name. It should return the IP of the domain controller.

Internet Protocol Version
Internet Protocol Version  Properties
  1. Test the connection to the server:
    Windows Settings
ping 192.168.1.10

Replace the number with your domain controller's IP. This checks if the server answers.

Access work or school
  1. Check the date and time on your computer. Fix them if they are wrong.
  2. Try to join the domain again.
    Microsoft account window
    reachable domain name
    complete a domain account
    add an account
    DNS service on the DC
    DNS server records
Tip: If you run a Windows VPS with Hostvento, ask support whether a firewall on your plan blocks the ports Active Directory needs.

Careful: do not remove a computer from a domain without a local admin password. You could be locked out.

Quick recap

  • The error means your PC cannot find the domain controller.
    retrieve domain and DC information
  • The most common cause is a wrong DNS server.
  • Point DNS to the domain controller, then flush DNS.
  • Use nslookup and ping to test.
  • Check the firewall and the computer clock.