Sorting list of DC addresses by closest first

Richard Sharpe rsharpe at richardsharpe.com
Sat May 1 19:03:19 GMT 2004


On Sat, 1 May 2004, Jeremy Allison wrote:

> On Tue, Apr 20, 2004 at 07:53:42PM -0700, Richard Sharpe wrote:
> > Hi,
> > 
> > We are having a problem with our internal infrastructure and our attempts 
> > to move to using Samba on our NAS to host internal CIFS usage.
> > 
> > We have offices in TX, PA, and CA, with DCs in each of those offices. The 
> > PDC is in TX.
> > 
> > When we first tried to cut over to using Samba member servers, all 
> > authentication traffic was going to TX, even in that from PA and CA.
> > 
> > It seems to me that when get_dc_list is called, the list should be sorted 
> > with those addresses that are in the same subnets as the member server 
> > first on the list (perhaps permuted each time if there is more than one) 
> > and the remaining addresses next on the list, perhaps again permuted as 
> > they are used.
> > 
> > Has anyone thought of the need for this behavior? 
> 
> Can you log a bug on this please ?

I don't think there is a need. The internal bug I was working on was 
mistaken. It seems that the WINS server report the IP addresses in the 
correct order.

Regards
-----
Richard Sharpe, rsharpe[at]richardsharpe.com, rsharpe[at]samba.org, 
sharpe[at]ethereal.com, http://www.richardsharpe.com



More information about the samba-technical mailing list