[Samba] Resolving NetBIOS names within linux
John H Terpstra
jht at samba.org
Fri Oct 18 17:13:01 GMT 2002
On Fri, 18 Oct 2002, darren wrote:
> 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?
In the smb.conf file [globals] section add:
wins support = Yes
Then configure all you PC's TCP/IP stack so that the IP address of the
WINS server is the IP address of the network interface of your samba
server. That simple.
Of course, the simplest way do configure all the windows clients is to use
DHCP. See the documentation on that in the samba documentation tree.
Cheers,
John T.
>
> -----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
More information about the samba
mailing list