-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday 01 August 2003 19:32, Johnny Shih wrote:> Hello guys,
>
> I have been running a server (running RH 7.3) with WINS support for
> quite some time and it works well. I am seeing that once Windows
> clients (Windows XP) are connected to the server, the wins.dat in the
> server gets updated where the clients IP etc being added. Even the
> server's IP has been changed (for example, the machine is moved and
> connected to a different network with a different WINS server), the
> clients still automatically find and talk to that WINS server and have
> themselves registered.
>
> However, the linux clients do not seem to be so smart(?), my finding is
> that "wins server" has to be specified so the client's samba
will then
> talk to the WINS server and therefore get registered. This becomes very
> inconvenient if the linux machnes (e.g. laptops) are used/connected to
> different networks where WINS servers' IPs are different or even
> unknown. I am wondering, how does Windows (act as a WINS client) do
> that? Can linux running Samba dynamically find WINS server without
> having to specify it in "wins server"?
>
Hi,
ISC's DHCP server is capable of passing the IP of a WINS server so in theory
it is possible to write some script to fetch that IP from the DHCP response
and modify it in the client's smb.conf.
The DHCP server has this configuration for a WINS server:
option netbios-name-servers [ipaddress], [ipaddress], ... ;
Hope this is of some help.
Greetz,
Sander van VLiet
- --
- -----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
mQGiBD7lrmYRBAC5LTtYhAr8TfYlhvM4q+/kwr14O8rGWrRft/BVvXx0Uo//+Bgg
XgJt1H0o7i8eQ2K2GR/q0i9agSL7wrEy6igzCT47hetWrLk51L7Ifd7AixaDNKtS
Hpur6MzfNiuGVMfkYnz6XqA+P08zkPesPspbHNZ+vLwkszwZHcz95f1RywCgoIEQ
jiNQ6YSYSAeC1sgj+nur5b8EAJq7Neret/I8jNOhTuP+zVcAYYr07JOeFyKV7HG6
keD7OqTIo3vs+N3l6mEjEuapNVq7MmB+XDxM3SDmgVrvGmruxkg43NWCBEudSFTN
TcAgd6zUh0y60hIwvSIuCn2KFgmIfRnFDxLosn3exHuXc1HEjxwtykZEAPi7Ah4C
Jq/KA/9U72jNR2AWaNqjKiPsi17ofVxO6+s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