Iam runnung Samb 3.0.14a-21 on SuSE SLES9. I want to add static entries to the wins.dat. As described in th Samba Howto (http://us1.samba.org/samba/docs/man/Samba-HOWTO- Collection/NetworkBrowsing.html#id2564248) this is possible without any restart. So I enter th new values into th wins.dat and save it and try to lookup the new entry with nmblookup -R. I get a name _query failed to find name and after this the entry has disappeared from the wins.dat. If I stop Samba, add the entries and then start Samba nmblookup has a positive answer and the entry stays in the wins.dat.
There's nothing that I can find in the documentation that claims static entries can be created in wins.dat without a restart. IIRC the opposite is true. Wins.dadt is a cache of nmbd's in-memory wins name table. So a restart is required if you edit wins.dat.
Hi Jerry, sorry the Link i've posted is to long, so it does not work. Iam referring to Chapter 9 of the official Samba HowTo collection from samba.org. Under the point: "Static Wins entries" it is said :"Adding static entries to your Samba WINS server is actually fairly easy. All you have to do is add a line to wins.dat, typically located in /usr/local/samba/var/locks or /var/run/samba." So is this wrong?? Or has somebody forgotten to mention, that you have to stop and start Samba during this step? As you mention a in memory wins name table. Is it possible to add wins names directly to this? Thanks Benny
The docs forgot to mention that you have to stop and restart nmbd for the changes to wins.dat to take effect. There is no source bug here.
The Samba3-HOWTO has been duly ammended. - John T.