Bug 3061 - Wins.dat enties without starting Samba do not work
Wins.dat enties without starting Samba do not work
Product: Samba 3.0
Classification: Unclassified
Component: Docs
x86 Windows XP
: P3 major
: none
Assigned To: John H Terpstra
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2005-09-02 02:21 UTC by Benjamin Oeltze
Modified: 2005-10-17 09:24 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Oeltze 2005-09-02 02:21:12 UTC
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.
Comment 1 Gerald (Jerry) Carter 2005-09-02 04:06:42 UTC
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.
Comment 2 Benjamin Oeltze 2005-09-02 04:54:40 UTC
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 
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
Comment 3 Gerald (Jerry) Carter 2005-09-02 06:15:51 UTC
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.
Comment 4 John H Terpstra 2005-10-17 09:24:04 UTC
The Samba3-HOWTO has been duly ammended.

- John T.