[Samba] Samba WINS Questions

Logan Shaw lshaw at emitinc.com
Tue Jun 27 16:04:53 GMT 2006


On Tue, 27 Jun 2006, Vincent Fonteneau wrote:
> Finaly WINS problem solved,

I'm not so sure.  The WINS server is supposed to maintain a
dynamic database that is updated every time some NetBIOS names
are registered or deregistered on the network.  Just stuffing
data into the databases like that isn't likely to really
work properly.

> WINS replication is used (but I don't know if I can use the expression 
> "replication") by entering new parameters in /var/lib/samba/wins.dat before 
> starting smb daemon
>
> on BDC1 the wins.dat should goes with :
> "MYDOMAIN#00" 1151663528 255.255.255.255 e4R
> "MYDOMAIN#1b" 1151589720 192.168.2.71 64R
> "MYDOMAIN#1c" 1151663528 192.168.2.71 193.168.2.71 e4R
> "MYDOMAIN#1e" 1151663528 255.255.255.255 e4R
> "MYPDC#00" 1151589720 192.168.2.71 66R
> "MYPDC#03" 1151589720 192.168.2.71 66R
> "MYPDC#20" 1151589720 192.168.2.71 66R
> "MYBDC1#00" 1151663528 193.168.2.71 66R
> "MYBDC1#03" 1151663528 193.168.2.71 66R
> "MYBDC1#20" 1151663528 193.168.2.71 66R
> "MYBDC2#00" 1151663528 194.168.2.71 66R
> "MYBDC2#03" 1151663528 194.168.2.71 66R
> "MYBDC2#20" 1151663528 194.168.2.71 66R
>
> on BDCs the wins.dat should goes with :
> "MYDOMAIN#00" 1151663528 255.255.255.255 e4R
> "MYDOMAIN#1b" 1151589720 192.168.2.71 64R
> "MYDOMAIN#1c" 1151663528 192.168.2.71 193.168.2.71 194.168.2.71 e4R
> "MYDOMAIN#1e" 1151663528 255.255.255.255 e4R
> "MYPDC#00" 1151589720 192.168.2.71 66R
> "MYPDC#03" 1151589720 192.168.2.71 66R
> "MYPDC#20" 1151589720 192.168.2.71 66R
> "MYBDC1#00" 1151663528 193.168.2.71 66R
> "MYBDC1#03" 1151663528 193.168.2.71 66R
> "MYBDC1#20" 1151663528 193.168.2.71 66R
> "MYBDC2#00" 1151663528 194.168.2.71 66R
> "MYBDC2#03" 1151663528 194.168.2.71 66R
> "MYBDC2#20" 1151663528 194.168.2.71 66R

That should be pretty good until Thu Jun 29 14:02:00 2006 (UTC)
when the entries with the timestamp 1151589720 will expire.
If you're going to hardcode data into WINS, at least read the
documentation on how to do that:

 	http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/NetworkBrowsing.html#id2554221

Of course, I still recommend that you don't try to force
software to do replication when it wasn't designed to do that.

   - Logan


More information about the samba mailing list