Domain Join Error 0x54B: An Active Directory Domain Controller Could Not Be Contacted

Domain join fails with error 0x54B (ERROR_NO_SUCH_DOMAIN, 1355): an AD DC could not be contacted. Read NetSetup.log, test ports 135, 389, 445 and RPC, fix client DNS, run nltest /dsgetdc and check SRV records. Also 0xA8B.

Home › Guides › Domain join error 0x54B

Last updated 20 November 2026

Quick answer

Error code 0x54B means ERROR_NO_SUCH_DOMAIN (1355 in decimal): the computer could not contact a domain controller for the domain you typed. Microsoft gives two causes: DNS times out or can't resolve the DCs, or the network blocks the client from the DCs on TCP 135, 389, 445 or the RPC dynamic ports. Work through four checks:

  1. Test the ports from the client to a DC (TCP 135, 445, 389, UDP 389 and 49152-65535).
  2. Make sure the client's preferred DNS server is one that hosts or can resolve the AD domain, not an ISP or public resolver, and type the domain's DNS name (contoso.com), not its NetBIOS name.
  3. Run nltest /dsgetdc:<domain_name> /force and see whether a DC is found.
  4. On the closest DC, run dcdiag /v and check that its SRV records, such as _ldap._tcp.dc._msdcs.<domain_name>, are registered.

If the dialog says an attempt to resolve the DNS name of a DC in the domain being joined has failed, that's the related error 0xA8B; see the section on it below.

What the error looks like

Joining a workgroup computer to the domain fails in Computer Name/Domain Changes with:

Error code 0x54b
An Active Directory Domain Controller (AD DC) for the domain "<NetBIOS_name>" could not be contacted.
Ensure that the domain name is typed correctly.
If the name is correct, click Details for troubleshooting information.

The details are written to C:\WINDOWS\debug\dcdiag.txt. In Microsoft's example they show a DNS timeout on the SRV query that DC locator uses:

The following error occurred when DNS was queried for the service location (SRV) resource record used to locate an Active Directory Domain Controller (AD DC) for domain "<domain_name>":
The error was: "This operation returned because the timeout period expired." (error code 0x000005B4 ERROR_TIMEOUT)
The query was for the SRV record for <srv_record>
The DNS servers used by this computer for name resolution are not responding.

The join log, %windir%\debug\NetSetup.log, is on by default. A failed name check looks like this:

NetpValidateName: checking to see if '<domain_name>' is valid as type 3 name
NetpCheckDomainNameIsValid for <domain_name> returned 0x54b, last error is 0x0
NetpCheckDomainNameIsValid [ Exists ] for '<domain_name>' returned 0x54b

For comparison, Microsoft's log of a successful join shows NetpCheckDomainNameIsValid [ Exists ] for 'contoso.local' returned 0x0 followed by NetpDsGetDcName: found DC '\\DC2.contoso.local' in the specified domain.

Step 1: check the ports between the client and a DC

Server portService
TCP 135RPC Endpoint Mapper
TCP 49152-65535RPC dynamic ports
TCP 445SMB
UDP/TCP 389LDAP

Microsoft's Test-NetConnection check for LDAP:

Test-NetConnection <IP_address_of_the_DC> -Port 389

TcpTestSucceeded : True means TCP 389 is open between the client and the DC. PortQry covers the other ports, including UDP 389 and the RPC range (Microsoft's syntax):

portqry -n <problem_server> -e 135
portqry -n <problem_server> -e 445
portqry -n <problem_server> -e 389
portqry -n <problem_server> -p UDP -e 389
portqry -n <problem_server> -r 49152:65535

A blocked endpoint mapper shows TCP port 135 (epmap service):FILTERED; a reachable LDAP port shows TCP port 389 (ldap service): LISTENING. UDP 389 matters on its own: Microsoft's DC location article calls it the port required to discover AD services. If a firewall, router or VPN device sits in the path, capture a network trace while you reproduce the join.

Step 2: check the DNS servers the client uses

Run ipconfig /all and look at the DNS servers. The client has to reach a DNS server that hosts the domain's zone or can resolve names in it, and that server should be the preferred DNS server. Ping the DC's IP address, the DC's name and the domain name to separate network problems from name resolution problems.

In the join dialog, type the DNS name of the domain (contoso.com) rather than the NetBIOS name (CONTOSO); Microsoft repeats this advice for nearly every networking join error.

Step 3: ask DC locator for a DC

Run the same discovery the join does, with either name form:

nltest /dsgetdc:<DNS domain name> /force
nltest /dsgetdc:<netbios domain name> /force

A working client lists the DC, its address, the domain GUID and names, the DC's site and the client's site, flags such as PDC GC DS LDAP KDC TIMESERV WRITABLE DNS_DC DNS_DOMAIN DNS_FOREST CLOSE_SITE, and ends with The command completed successfully. If no DC is found, fix DNS and the ports before you retry the join.

Step 4: check that the DC's SRV records are registered

On the closest DC, run dcdiag /v (Microsoft suggests dcdiag /v >dcdiag.txt to keep the output) and confirm records such as _ldap._tcp.dc._msdcs.<domain_name> are registered. From a client, check the DC's host record and its GUID record in _msdcs:

nslookup servername.childofrootdomain.rootdomain.com
nslookup guid._msdcs.rootdomain.com

If either lookup fails, re-register on the DC: ipconfig /registerdns forces the host record registration, and stopping and starting the Netlogon service forces the DC locator records. If Netlogon itself logs registration failures, see Netlogon events 5774 and 5781.

Related error 0xA8B: DNS name of a DC could not be resolved

The message is An attempt to resolve the DNS name of a DC in the domain being joined has failed. Please verify this client is configured to reach a DNS server that can resolve DNS names in the target domain. NetSetup.log shows:

NetpDsGetDcName: status of verifying DNS A record name resolution for '<DC name>.<domain>.<tld>: 0x2746
NetpDsGetDcName: failed to find a DC in the specified domain: 0xa8b, last error is 0x0
NetpJoinDomainOnDs: NetpDsGetDcName returned: 0xa8b
NetpJoinDomainOnDs: Function exits with status of: 0xa8b
NetpDoDomainJoin: status: 0xa8b
HexDecimalSymbolic name
0xa8b2699NERR_SetupCheckDNSConfig
0x54b1355ERROR_NO_SUCH_DOMAIN

The log shows the DNS A record check for a DC's name failing before the join gives up. Microsoft's checklist:

Other networking messages during a domain join

MessageMicrosoft's suggestions
Network name cannot be foundCheck the client can reach a DNS server for the domain (nltest /dsgetdc), use the DNS name, update the network adapter driver.
An operation was attempted on a nonexistent network connectionUse the DNS name and restart the computer before trying again.
Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowedRestart the computer to drop latent connections to domain servers; use the DNS name.
The format of the specified network name is invalidDNS and nltest checks, current NIC drivers, required ports open, disable TCP Chimney Offload and IP offloading.
The remote procedure call failed and did not executeCurrent NIC drivers, required ports; a router, firewall or VPN device may block MSRPC or reject packets.

Still stuck

A computer that is already joined and logs Netlogon event 5719 at startup has the same kind of DC discovery problem, seen from the other side.

The DC was found but the join still fails? See domain join error 0x569 (and status 0x32), domain join error 0x216D and domain join error 0xAAC.

Related tools and guides

Look up NETLOGON events such as 5719 and 5774 in the Windows Event ID Lookup, copy the nltest /dsgetdc, Test-NetConnection and portqry lines from the PowerShell Cheat Sheet, pull the status codes out of NetSetup.log lines with the Regex Tester, check that the client and the DC are in the subnets you expect with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the network adapter vendor on a client whose join fails with the MAC Vendor Lookup. Related guides: Netlogon event 5719, Netlogon events 5774 and 5781 (DNS registration failed), the trust relationship between this workstation and the primary domain failed and common AD replication errors.

Joined computers landing on a distant DC because their subnet has no site? See Netlogon event 5807.

Every AD replication error code with its cause and fix: common Active Directory replication errors.

FAQ

What does domain join error 0x54B mean?

0x54B is ERROR_NO_SUCH_DOMAIN, 1355 in decimal: the computer could not contact a domain controller for the domain you typed. Microsoft gives two causes: DNS times out or fails when locating the DCs, or the network blocks TCP 135, 389, 445 or the RPC dynamic ports between the client and the DCs.

Where is the log for a failed domain join?

In %windir%\debug\NetSetup.log on the computer you are joining; it is on by default. For 0x54B it shows NetpCheckDomainNameIsValid returning 0x54b. The details behind the dialog are also written to C:\WINDOWS\debug\dcdiag.txt.

Which ports does a domain join need?

Microsoft lists TCP 135 (RPC Endpoint Mapper), TCP 49152-65535 (RPC dynamic ports), TCP 445 (SMB) and UDP and TCP 389 (LDAP). Test TCP 389 with Test-NetConnection and the rest, including UDP 389, with PortQry.

Should I type the NetBIOS name or the DNS name of the domain?

The DNS name, for example contoso.com rather than CONTOSO. Microsoft gives that advice for nearly every networking error during a domain join, together with making sure the client uses a DNS server that hosts or can resolve the domain.

What is the difference between error 0x54B and 0xA8B?

0x54B (ERROR_NO_SUCH_DOMAIN) means no DC for the domain could be contacted. 0xA8B (2699, NERR_SetupCheckDNSConfig) means resolving the DNS name of a DC in the domain failed. Both point at client DNS servers, missing zones or records, or network problems.

Want the full kit?

Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.