[Samba] Resolving NetBIOS names within linux

darren teodarren at myrealbox.com
Fri Oct 18 17:02:31 GMT 2002


Hi,

I would like to do the same (resolve win_pc names in linux) too.
However, all my Win2k machines are simple just PCs in the same workgroup
(LAN).

What do I fill in as the WINS server?

-----Original Message-----
From: samba-admin at lists.samba.org [mailto:samba-admin at lists.samba.org]
On Behalf Of John H Terpstra
Sent: Friday, October 18, 2002 6:32 AM
To: Bert Rapp
Cc: samba
Subject: Re: [Samba] Resolving NetBIOS names within linux

On Thu, 17 Oct 2002, Bert Rapp wrote:

>
> I want to be able to resolve windows machine names to their IP
addresses
> while using Linux.  What I'd like to be able to do, from my linux box
at
> the command line is this,
>
> ping windows_machine_name
>
> Is there any way I can do this?

If you are using the samba-team RPM package for your linux system, then
we
know you have libnss_wins.so in /lib.

So long as this library exists on your system:

1. Configure /etc/samba/smb.conf globals section
	If your samba server is the WINS server you will have:
		wins support = Yes
	If your samba server is a WINS client then you will have:
		wins server = x.x.x.x, where x.x.x.x is the WINS server
			IP address.

2. Edit your /etc/nsswitch.conf file so it has:
	hosts: files dns wins

3. Try it:
	ping windows_machine_name

- John T.

-- 
John H Terpstra
Email: jht at samba.org

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba




More information about the samba mailing list