Solved

Question about creating a DNS load balance between domain controllers

Posted on 2012-12-29
7
1,122 Views
Last Modified: 2013-01-15
Hi,
A small background before my question :) -
I had a need to create a load balance service name between all the domain controllers, i know i could use the default domain name instead, but it had connections to other servers except for the domain controllers.

So....
since i can't create the same multiple dns host to multiple servers i created a new subdomain and had all the domain controller's IP name SAME AS PARENT...so all would get the same DNS name of the new subdomain, hence creating a DNS Load Balance.

Here's my question though, how does it work? is it round robin? who answers first? the dc the computer is connected to or the DNS the computer is connected to?

AND the most important factor what if one of the domain controllers isn't available, will the be a timeout? or will the query never reach it in the first place?
0
Comment
Question by:johnnyjonathan
  • 4
  • 2
7 Comments
 
LVL 37

Expert Comment

by:Neil Russell
ID: 38729511
If all your DC's are running DNS then all you need to do is list all of he DC's IP addresses in the NIC cards DNS settings on all machines.  Windows will take care of the rest. No need for ANY load balancing, round robbins or square ones.
0
 

Author Comment

by:johnnyjonathan
ID: 38729529
I didn't understand how this will create a load balance?
my need is to ping a name for example (dns.company.com) and have a redundancy (perhaps i should have used that therm instead of the load balance since it explains my needs better) between all domain controllers.
0
 
LVL 37

Expert Comment

by:Neil Russell
ID: 38729746
Can you explain EXACTLY what it is you want to do and why?
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

Author Comment

by:johnnyjonathan
ID: 38729781
I have several applications that connect to Active Directory using LDAP directly to a Domain controller server, i don't want to give them the name of 1 domain controller since if it's down then the service is down, so....i want to create a DNS alias name to hold behind it all available DC's
0
 
LVL 26

Accepted Solution

by:
DrDave242 earned 500 total points
ID: 38732949
I'll get the easy part out of the way first:
Here's my question though, how does it work? is it round robin? who answers first? the dc the computer is connected to or the DNS the computer is connected to?
Yes, it's round-robin by default.  You can disable round-robin in the properties pages of the DNS servers (under the Advanced tab, I believe), but there's typically no reason to do this.  So the first time a DNS server is queried for that name, it'll return the IP address of the first corresponding host record.  The second time it's queried, it'll return the second one, etc.  It should be mentioned that you won't see this exact behavior on a client.  Multiple queries for the same name from a single client will return the same IP address for a while, because the client will have that address in its resolver cache and won't actually query a DNS server until the cached record expires or the entire cache is flushed.
i know i could use the default domain name instead, but it had connections to other servers except for the domain controllers.
Are you saying you've got blank host records in DNS (host records with the name "same as parent folder") referring to machines other than domain controllers?  If so, that's a problem.  Those records are used by domain members to locate a DC, and they shouldn't ever refer to anything but DCs.

To answer the question, there's no true load-balancing mechanism built into DNS.  Round-robin DNS does load balancing only on the most basic level; it doesn't care whether a given server is down and will return its IP address anyway.  Network Load Balancing (NLB) is outage-aware, but I can't think of a way to make it work in this scenario.  If those apps that you're running are AD-aware, they should be able to use AD's built-in mechanisms to locate a DC that's running.  Have you actually experienced problems with them?
0
 

Author Closing Comment

by:johnnyjonathan
ID: 38780863
Great Explanation!
Thank you so much!
0
 

Author Comment

by:johnnyjonathan
ID: 38780867
I haven't had any problems but yes the original DOMAINNAME.COM is full with other IP addresses that are not DC's, some are even external IP's i need to figure out how come it happened.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Resolve DNS query failed errors for Exchange
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now