How does DNS pick what IP to return to the client?

In Active Directory if you have more than 1 domain controller they show up in DNS as (same as parent folder).  So when trying to ping the domain (not the Domain controller) it returns one of the IP's listed in (same as parent folder).  How does DNS chose which IP to return to the client that is requesting it?

Thanks
litogAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PlaceboC6Commented:
The SRV record has a priority value on it.

http://support.microsoft.com/kb/232025
0
ahmedalnoohCommented:
srv record that belongs to the domain controllers have priority and also somthing called weight also so if same priorty for both the weight value will make one of them win and if also the same so the round robin method will win and the load balancing will make the dns server each query give one of them on the top of the list
0
PlaceboC6Commented:
However,  if you modify the priority on the srv record without disabling the function that auto-registers the SRV records...it'll just create another record with the default weight and you'll have multiple records:

Otherwise it is just round robin based off which site the client and DC's are in.  If you have 3 DC's in your default site...and a client in that site/subnet queries..it'll be handed the ip of one of those 3 DC's at random.

To disable auto-registration see the following KB (The netlogon section)

http://support.microsoft.com/kb/246804
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DNS

From novice to tech pro — start learning today.