[Samba] WINS

John H Terpstra jht at samba.org
Fri Apr 25 04:25:18 GMT 2003


Firstly, we are working on a new tool to implement static WINS addresses
for samba-3. This tool may or may not make it into 3.0.0.

Secondly, given what you describe below you do NOT need static WINS

Step 1. Make sure that samba is configured as a WINS server.

	In smb.conf [globals]
		wins support = yes

Step 2. Make sure all your MS Windows client get the WINS server address
_AND_ are set to NetBIOS node type 8. Example DHCP server config file:

option ntp-servers;
allow unknown-clients;
default-lease-time 86400;
max-lease-time 172800;
option domain-name "world.org";
option domain-name-servers;
option netbios-name-servers;
option netbios-dd-server;
option netbios-node-type 8;

subnet netmask {
        range dynamic-bootp;
        option subnet-mask;
        option routers;
        allow unknown-clients;

Step 3. Read the Samba-HOWTO-Collection.pdf

	See chapters: 9 and 23.

Hope this helps.

- John T.

On Fri, 25 Apr 2003 nazrul at heitech.com.my wrote:

> Thank you for your reply. This is my configuration:
> I'm migrating my DHCP/WINS server which was running on WinNT4  to Linux.
> I've configured the linux server as DHCP server which assign dynamic IPs to
> clients. On top of it I've assigned the client's options with NetBIOS name
> server (WINS) and Router (Default Gateway). All my client are using MS
> Windows and I want my Linux server to be the master browser. Furthermore
> the clients need to browse for their servers to access to their files,
> application as well as printing purpose. These servers have their own
> static IP.  The clients have no problem browsing over other PCs but fail to
> browse the servers. They have to maintain a personal hosts file to resolve
> server name to IP on each of their PCs.
> What I have in mind is to centralise all the static IP into one database -
> the WINS server. I've done this successfully on WinNT and I'm sure there is
> a way to do it in Samba but I couldn't figure it how.
> On Thu, 24 Apr 2003 nazrul at heitech.com.my wrote:
> > Anybody can help me how to add a static IP address with NetBIOS name for
> my
> > samba 2.2.5 on RH Linux 8.0
> > I've tried to modify the wins.dat and restart nmbd but it didn't work. I
> > couldn't figure out what are the numbers all about.
> > Pleaseeeee.... help!!!
> Why do you need a static IP address in WINS? What is your configuration?

John H Terpstra
Email: jht at samba.org

More information about the samba mailing list