DHCP discovery of WINS servers
Christopher R. Hertel
crh at nts.umn.edu
Wed Sep 5 18:13:48 GMT 2001
> >If so, then how does smbclient discover its WINS server? Same for
> >nmblookup? These tools need to have a WINS server and (I think) they
> >currently get their WINS server by reading smb.conf.
> Yep, you're right. I guess we'll need to save the list discovered in a
> file, along with any lease time. If the wins server entry has dhcp in it,
> we look for the file. If it doesn't exist or if it is too old (based on
> the lease time or our own arbitrary limit), we rediscover the wins
> servers. This could go for the client tools as well as nmbd.
Note that clients may not have authority to write to such a file. This
only means that systems which are not running the Samba daemons will have
to perform DHCP queries for every client instance.
Another interesting note is that a client with a hard-coded IP address
could still use DHCP to grab a WINS list.
Christopher R. Hertel -)----- University of Minnesota
crh at nts.umn.edu Networking and Telecommunications Services
Ideals are like stars; you will not succeed in touching them
with your hands...you choose them as your guides, and following
them you will reach your destiny. --Carl Schultz
More information about the samba-technical