Exception: An Active Directory Domain Controller (AD DC) for the domain “**” could not be contacted

Sathish Nadarajan
 
Solution Architect
September 17, 2018
 
Rate this article
 
Views
4902

Hope we remember, in the previous article, we installed a Windows Server 2019 Server and was thinking to install the SP 2019 on it. Before doing that, I wanted to add the newly created VM to the existing Domain Controller. While doing that, I got an exception as “An Active Directory Domain Controller (AD DC) for the domain “” could not be contacted”. Hence, wanted to share that work around to that exception.

Steps to be followed to Add the VM to the Domain Controller:

1. Login to the Guest VM.

2. Go to the My Computer properties.

clip_image001

3. Click on the Change Settings of the Computer Name, domain, workgroup.

clip_image002

4. Click on the Change settings.

clip_image004

5. Click on Change and Enter the Domain Name.

clip_image006

6. Click OK, we will get the exception as shown below.

clip_image008

The work around is, we need to ensure the DNS Server on the Guest VM. For that, go to the Host Server and note the DNS IP Address.

In the HOST SERVER, note the below IP address.

1. Go to the network settings.

clip_image010

2. Click on “Change adapter settings”

clip_image012

3. Click on the network appropriately.

clip_image014

4. Make a note of the below IP Address. In my case, the DNS IP is 192.168.10.4.

clip_image016

Now, login to the Host VM. Repeat the same process as mentioned above.

1. In Windows Server 2019, the UI looks a bit different.

clip_image018

clip_image020

2. Click on “Ethernet” and click on the “Change adaptor settings”

clip_image022

3. Right click and go to the properties.

clip_image023

4. Select the IPv4 properties.

clip_image025

5. We can see the IP Address and the DNS Servers are empty and obtain automatically.

clip_image027

6. Now, update the details as below.

clip_image029

7. Click on OK.

8. Now, go back to the computer properties and change the domain.

clip_image031

9. It will ask for the Domain Admin User name and password.

clip_image033

10. Click OK.

11. It will take few minutes to get added.

clip_image035

12. Now, after the restart, let us go back to the computer properties and have a look on the domain name.

clip_image036

With this, we know, how to add the host VM to the DNS Server.

Happy Coding,

Sathish Nadarajan.

Author Info

Sathish Nadarajan
 
Solution Architect
 
Rate this article
 
Sathish is a Microsoft MVP for SharePoint (Office Servers and Services) having 15+ years of experience in Microsoft Technologies. He holds a Masters Degree in Computer Aided Design and Business ...read more
 

How to Configure DNS for App Development Model in SharePoint 2013

Sathish Nadarajan
 
Solution Architect
March 28, 2015
 
Rate this article
 
Views
19598

In the previous article, we saw the preparatory steps for the App Development Environment. But on that, we did not see, how to configure the DNS as a Domain/Subdomain. Let us have a look on that now.

The most important change in SharePoint 2013 for developers is the introduction of SharePoint apps. An app for SharePoint is a small and isolated application that provides a specific bit of functionality. Apps have their own, isolated URLs, which are separate from the URLs of the sites where the app is being deployed to and where the app is being used.

In order to provide isolated apps run in their own domain, instead of in the same domain name as your farm. Using a different domain name for apps helps prevent cross-site scripting between apps and SharePoint sites.
Each installation of an app has its own unique URL within the app domain.

The app’s URL is based on a template “http://[app prefix][app hash].[app domain]/[relative site url]/[app name]. When you add an app to a site, a substite called appweb is created to host the app content.

Because apps run in their own app domain , The farm admin will have to configure Domain Name Services (DNS) in the environment in order to be able to host apps. There is a page on TechNet that describes how to setup you DNS.

The Fam administrator can choose whether he want’s your app domain to be a subdomain of the domain that hosts the SharePoint environment (option B), or whether you want to create a completely new domain for your apps (option A).

Creating a new domain specifically to host your apps in is a bit more secure, but it also requires a little bit more configuration. The below sub section describe both approaches.

Option A: Create a new domain to host Apps

Go to “Start” menu in sharePoint 2013 Server.

Click on “Administrative Tools”

Select “DNS

clip_image001

Right click “Forward Lookup Zones” and select “New Zone…”

clip_image003

Click “Next”

clip_image004

Keep the default and click “Next” again

In most cases, especially your development server will be in it’s own domain you can use the default on the next tab again and can just click “Next”

clip_image006

clip_image008

You now have to specify a zone name. It’s up to you what you choose here. My domain name is “solutions.com” and for our POC app domain. We will use “solutionapps.com”

clip_image010

Click “Next”

clip_image012

Click “Finish” button to complete the New Zone wizard.

clip_image013

clip_image015

Right click on your new zone and select “New Alias (CNAME)…”

Fill in a * for “Alias name (uses parent domain if left blank)”

clip_image017

Click “Browse”

Double click on your server name

Double click “Forward Lookup Zones”

Double click the domain of your SharePoint environment. In my case this is “solutions.com”.

Select “(Same as parent folder)” and click “OK”

Click “OK”.

Note that selecting the FQDN of the domain in here will only work in single server scenarios. If you are using more than one server you should be pointing to the DNS record of the web server in here. This is either the DNS A record for the web server, or the DNS record of the primary cluster address for NLB environments.

Option B: Create a sub domain to host Apps

Go to “Start”

Click on “Administrative Tools”

Select “DNS”

clip_image001[1]

clip_image018

Right click on the name of your domain and select “New Alias (CNAME)…”

clip_image020

Fill in “*.app” for “Alias name (uses parent domain if left blank)”

Click “Browse”

Double click on your server name

Double click “Forward Lookup Zones”

Double click the domain of your SharePoint environment. In our case this is “DC07.Loc”

Select “(Same as parent folder)” and click “OK”

Click “OK”

clip_image022

Note that selecting the FQDN of the domain in here will only work in single server scenarios. If you are using more than one server you should be pointing to the DNS record of the web server in here. This is either the DNS A record for the web server, or the DNS record of the primary cluster address for NLB environments.

Configuring App Domain

Go to Central Administration

Click on “Apps” in the left side navigation

Click “Configure App URLs”

Fill in the URL of the app domain that you configured.

If you choose to use Option A the url will be something like “solutionapps.com”, if you choose to use Option B it will look like dc07.loc.

Fill in an app prefix. This can be anything you like, although it is best to keep this short. we used “app” for our POC

Click OK.

clip_image024

 

 

Happy Coding

Sathish Nadarajan

Author Info

Sathish Nadarajan
 
Solution Architect
 
Rate this article
 
Sathish is a Microsoft MVP for SharePoint (Office Servers and Services) having 15+ years of experience in Microsoft Technologies. He holds a Masters Degree in Computer Aided Design and Business ...read more
 

Leave a comment