[Samba] How does Samba find a domain controller?

Gautier, B (Bob) Bob.Gautier at rabobank.com
Fri May 5 08:54:01 GMT 2006

During some recent testing of winbindd (3.0.22) in a multi-domain,
multi-DC AD context, the AD expert I was working with was very
interested in winbindd's choice of domain controller (it apparently was
not choosing the one(s) AD-expert expected).

I understand that Windows domain members have an algorithm based on DNS
SRV records and IP address comparison, and I've seen some code posted in
the last few days that suggests this is only 'under development' for

Can someone spell out to me the way Samba looks up DCs and chooses
amongst them?  For extra points: is there a way we can influence the


Bob Gautier

This email (including any attachments to it) is confidential, legally privileged, subject to copyright and is sent for the personal attention of the intended recipient only. If you have received this email in error, please advise us immediately and delete it. You are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Although we have taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the viruses in this email or attachments. We exclude any liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided in this email or its attachments, unless that information is subsequently confirmed in writing. If this email contains an offer, that should be considered as an invitation to treat.

More information about the samba mailing list