[Samba] Do we need WINS Replication?

Vizitiu, Ciprian CVizitiu at gbif.org
Thu Jun 12 08:05:34 GMT 2003



> > Just a silly idea don't know even if it works: If you are 
> in control 
> > of the link how about messing with the wins.dat file? When the link 
> > gets up you exchange/merge wins.dat files from both servers and 
> > restart nmbds... For example all machines in one net are 
> called with a 
> > distinctive a_ in name so you grep in b network in the 
> wins.dat file 
> > and replace all a_ entries with the new ones. Same for the other 
> > wins.dat for hosts named b_whatever.
> > 
> wins.dat has simple format,
> so it's possible to detect fi any machines are registered on 
> a secondary WINS server, replace/add this data to the primary 
> WINS server's wins.dat, 

The idea is not to add to the primary but also to bring back the data FROM
the primary to the secondary. A more elegant approach will be to detect the
link is down and DELETE from secondary the "missing" primary machines! 

There seems to be one aspect you're missing: the damn browse list! IMO
You'll have to change that too.

> and kill&start nmbd (because I don't 
> know how to make it reread wins.dat).

Oh, that was a problem for me too.

> 
> Will this work?

Exactly my point Michael: why don't you try and tell us? ;-)

Long ago I had problems with a stupid NT server refusing to register himself
at the wins... Without being rebooted; So all I did was to alter the
wins.dat file "by hand"... It worked back then it was samba 2.2.0 or smth. I
think it *should* work but someone has to try and bring back the
knowledge...



More information about the samba mailing list