[CRM] Unable to obtain DNS hostname of Active Directory domain controller

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)

Original article from Microsoft Support:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;954811

About Ramon Tebar

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.

Posted on September 11, 2011, in CRM and tagged , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: