In CRM 4 and CRM 2011, are you trying to create an organisation, import an organisation or register some plugins and you are getting the following error:
[…] Unable to obtain DNS hostname of Active Directory domain controller […]
Weird, isn’t it?
In my case I was trying to register some plugins and I got that messages from the CRM traces.
Finally, I found the problem and the solution:
PROBLEM:
Active Directory contains many domain controllers.
You have insufficient permissions to query all domain controllers.
SOLUTION:
Install last rollup (I got 17 and it works fine)
Add the entry PreferredDc in HKLM\Software\Microsoft\MSCRM with the closest domain controller (run this command >echo %logonserver%in your CRM server)
Software Engineer specialised on Microsoft Technologies with experience in large projects for different industrial sectors as developer, consultant and architect.
I enjoy designing and developing software applications, it is my job and one of my hobbies. I’m interested in design patterns, new technologies and best practices. Making those part of the ALM process is a great challenge.
During the last years, I have specialised in Microsoft Dynamics CRM (now Dynamics 365). I customise and extend the platform to provide tailored solutions and integrations based on service-oriented architectures and messages queuing.
Motivated by community events and contributor in blogs, technical books, open source projects and forums, I have been awarded Microsoft Most Valuable Professional (MVP) on Dynamics 365 (CRM) since 2012.
View all posts by Ramon Tebar