WINS database format

Andrew Boswell A.Boswell at
Thu May 20 14:10:19 GMT 1999

I am setting up a Network Domain Logon model using Samba 2.0.3.
Step 2 in DOMAIN.txt is to set up a WINS server.  We have previously
been working in a stand-alone NT workstation model and have used DHCP and
bootp for name resolution, so we are configuring a Samba server to be
a WINS server.

We need to populate the internal WINS database used by Samba:
ie /usr/local/samba/var/locks/wins.dat.  Can anyone provide a guide to
the format of this table, and the data produced by nmblookup.

wins.dat, so far, contains: 

"CPC#00" 927712312 c4R
"CPC#1e" 927712312 c4R
"CPCA8#00" 927712312 46R
"CPCA8#03" 927712312 46R
"CPCA8#20" 927712312 46R

where cpca8 is the name of the Samba server machine.  I am guessing
from little documentation, I have, that #00 etc is the 'type', but
what type is this?  The second field is a timestamp.  What is the
fourth field?

/usr/local/samba/bin/nmblookup -A gives:

Sending queries to
Looking up status of
received 5 names
        CPCA8           <00> -         M <ACTIVE> 
        CPCA8           <03> -         M <ACTIVE> 
        CPCA8           <20> -         M <ACTIVE> 
        CPC             <00> - <GROUP> M <ACTIVE> 
        CPC             <1e> - <GROUP> M <ACTIVE> 
num_good_sends=0 num_good_receives=0

What does the M field represent?

It would be useful to know how others have generated wins.dat files
which is what we believe that we have to do.  Also, how are entries
specified as static and dynamic?



Dr Andrew Boswell		email : A.Boswell at	
School Liaison Consultant       phone : +44-1603-593856
IT and Computing Services 	fax   : +44-1603-593467
University of East Anglia	
Norwich, NR4 7TJ, UK

More information about the samba-ntdom mailing list