Windows 7 selecting wrong DC from replicated Samba4 setup

tms3 at tms3 at
Wed Dec 15 15:50:23 MST 2010

On Wednesday 15/12/2010 at 1:57 pm, Andrew Bartlett  wrote:
> On Wed, 2010-12-15 at 10:46 +0100, Axel Gembe wrote:
>> I have a Samba4 setup where I replicate the domain in 2 sites, each
>> having their own subnet. This works fine except that my Windows 
>> computer
>> seems to select the wrong DC (non-local) until I bring it down. If it 
>> is
>> down, it uses the local DC and all is well, but otherwise I have quite
>> some delay. It should prefer the DC that is in the local subnet
>> according to this document:
>> I've tried everything I could think of and don't get it to use the
>> correct DC. Any help ?

Just a thought, but my experience is showing the calls following a 
pretty standard round robbin in DNS.  Run a master DNS and slave off 
the appropriate DNS entries for the subnet, then use dhcp to assign 
the appropriate slave DNS, with the master DNS as the second.  I 
suspect that will solve that issue.  WINS is another matter if you're 
using it...
> Samba4's support for sites is very, very immature.  We probably need 
> to
> do a fair bit more work in the CLDAP and other related areas to 
> properly
> handle this.
> It should all be documented between the WSPP docs and other AD docs, 
> so
> it's not a matter of not knowing, just needing the time to implement
> things.  I'll happily review any patches you care to propose :-)
> Andrew Bartlett

More information about the samba-technical mailing list