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.
Since 2008, I have been working with Microsoft Dynamics 365 (CRM back then), the Power Platform and Azure. 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 was awarded Microsoft Business Applications Most Valuable Professional (MVP) for 7 years.
View all posts by Ramon Tebar