An Active Directory Domain Controller (AD DC) for the domain “x.x.com” could not be contacted (Windows Azure)

When you attempt to join a Windows 2012 R2 server to a domain in Windows Azure, you may receive the error An Active Directory Domain Controller (AD DC) for the domain “x.x.com” could not be contacted

If you click Details, the relevant part of the explanation is:

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 “x.x.com”:
The error was: “DNS name does not exist.”
(error code 0x0000232B RCODE_NAME_ERROR)
The query was for the SRV record for _ldap._tcp.dc._msdcs.x.x.com”

In most cases, the domain controller is reachable. If you have enabled PING to your DC, you can try to ping and you will probably get an answer back. In that case, this error can easily be resolved by manually adding a DNS Server Address in the Advanced TCP/IP settings of the network adapter.

There’s a screenshot below (click to enlarge!) that visualizes the following steps to fix this problem:

First, logon to the machine that you want to join to the domain (your client)

  1. Go to your Network and Sharing Center
  2. Click the Network Adapter that you use to join the domain (typically there is only one adapter, but in some scenarios you may have multiple NICS connected to your network)
  3. In the window “Network Adapter” Status, click Properties
  4. In the new window, select the Internet Protocol Version 4 (TCP/IPv4)
  5. Then click Properties
  6. In the Internet Protocol Version 4 (TCP/IPv4) window, click Advanced…
  7. In the Advanced TCP/IP Settings, select the tab DNS
  8. Beneath the “DNS Server addresses, in order of use” click Add…
  9. A small window pops up. Enter the IP address of your Domain Controller, and click OK
  10. Close all Windows with the OK button. It may be necessary to restart the computer. Retry to join the domain.
DNS name does not exist
DNS name does not exist

Leave a Reply

80 Comments on "An Active Directory Domain Controller (AD DC) for the domain “x.x.com” could not be contacted (Windows Azure)"

Notify of
avatar
Sort by:   newest | oldest | most voted
caprcisco
Guest

my problem was i named my domain as: cr.local, the solution was to join with the name “cr” only.

Sacri
Guest

If you still have the error:
“Restart” the service for the “DNS Server” and DNS Client” (DNS Server),
“Restart” the service for the “DNS Client” on the computer you want to join to the domain.
This should work now.

Patrick Curran
Guest

BINGO! We’ve been banging our heads against a wall for a day and a half with a client that would not re-join the domain. We had removed it from AD, flushed DNS on the client and cleared the DNS cache on the server, changed the IP address of the client, yadda yadda yadda, nothing was working. Finally came across this suggestion to re-start the DNS service, and the damned thing joined the domain immediately. Thank you, SACRI, and bless you!

Girshwin
Guest

Patric Curran Your dns thingy made me find the ip adress of the pc it was on before thank you sir!!

Richard West
Guest

This worked for me also!! thank goodness!

Anonymous
Guest

Thanks its working for me……

You are a special guy…

Jojo
Guest

You are a life saver.

Anonymous
Guest

ty so much

thomas
Guest

Thanks it worked for

Anonymous
Guest

Super dear

JOT
Guest

This is a life saving post.

Kingsley
Guest

it works , thanks

but if i have 50 pcs, do i have to do this on all 50 pcs to join the domain?

is there any other way to change on the server itself?

Nicky
Guest

I have been trying to fix this problem for days. I have tried countless explanations from countless websites including Microsoft’s own Server 2012 technical support and nothing worked. Until now. Thanks you so much, worked like a charm.

Caesar
Guest

Worked for me.
I have Windows 10 Pro

SALAMAT PO
Guest

Great write up.. Exactly what I needed. Works Great!! Thanks!!

Pablo
Guest

I have done what I said but I still have the problem, not connected to the domain controller, I ping, nslookup resolves.

Elmo
Guest

Please i have tried it but mine is still not working. Please help me out

DEEPAK
Guest

THANKS MAN ITS WORKING NOW, STRAIGHT FORWARD SOLUTIONS

shivam
Guest

Thanks man its worked :)

some dude
Guest

thank you ! it worked like a charm

James
Guest

There is also another setup that can cause the message. While setting up a new domain controller replacement I was not able to log onto the new “test” domain.. There was a DNS servers that was holding on to the computer name that a previous network administrator had added to the old domain. Even though the computer had been removed from the old domain. I removed all DNS servers from the NIC adapter except for the new domain/DNS server and was able to attach to the new domain.

sagari
Guest

my domain ip is already there but i still can’t connect to the domain network.
is there an another way ?

surendra
Guest

nice… good

Anonymous
Guest

chup re

Hemant Gurav
Guest

this worked well done thank you very much

Anonymous
Guest

985555

zemen
Guest

I am glad that I came to this website …thank you so much!

Anonymous
Guest

985555

Anburaja
Guest

wow… its working …. thank yu

citizen
Guest

This is one of the more important tips I’ve learned in a while. Thanks!

Uchenna
Guest

Worked like charm! you are the best

Imran Khan
Guest

Plz help me IM very New in this field

Imran Khan
Guest

Sir how to Connect Server 2008 to users

NG
Guest

Thanks

Joshua
Guest

Excellent. Much appreciated. You are the real MVP!

Marc
Guest

Mil gràcies! Thanks a lot!

Hamed Najjarpour Jabbari
Guest
Hamed Najjarpour Jabbari

Thank you very much, You are life saver.
best regard

Nitin
Guest

Fantastic… It’s really useful.. Thank You.

Sam
Guest

Thank you. You’re a lifesaver.

Casa Rural Segovia
Guest

Great article.
In our environment, dns was defined, but not find the DC.
Following this procedure, but withot add other dns (we had well configurated dns), just clic ok after step 7, and we can add our machine to the DC.

Regards

Anonymous
Guest

sir my error says that my connection could not e contacted…
the details says that DNS server has timed out
the remainig error is the same

Gidey
Guest

Thank you!!!

Anonymous
Guest

really thanks ur genius . i lost my sleep past 4 days .now i can able to login domain thanks a lot ..

Kenneth
Guest

It works…Tnx a lot..

Nirmal
Guest

Thanks buddy today I am very happy really almost from one month tried today I got solution.

Michael
Guest

worked Great! Thank you.

Eeshan
Guest

Amazing ! As smooth as silk

Mbsn
Guest

tnx but this nut work for me ! :/ Now I have what I

Mac
Guest

This worked like a dream!!!! Thanks for the help.

Loren
Guest

I had to change the order of DNS servers, so that the DC IP was at the top, then my server immediately found the DC and joined the domain. THANKS!

Joe
Guest

Yep… worked for me too

sherif
Guest

Thank you very much
4 days trying to solve this problem till i read your post

alex
Guest

Thanks Mate, You are the legend, I was working on this problem for a week now.
Cheers,

mario
Guest

thanks a lot this for this post, helped me a lot !

pls1
Guest

Thank you

Abdalazeem
Guest

Thank you so much , it works.

wpDiscuz