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?
On 10/17 17:07, 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,------ edit /etc/hosts: 192.168.x.x lame_windows_machine ------ # ping lame_windows_machine -- Eric
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? > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/sambalook at the libnss_wins.so file and add to your nsswitch.conf -- =====================================================================Herb Lewis Silicon Graphics Networking Engineer 1600 Amphitheatre Pkwy MS-510 Strategic Software Organization Mountain View, CA 94043-1351 herb@sgi.com Tel: 650-933-2177 http://www.sgi.com Fax: 650-932-2177 ======================================================================
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@samba.org
You do not mention the size of your network. Here I have 12 WinNT Workstations, 51 Win2K workstations, 3 RH Workstations and 3 RH Servers and instead of using samba to do that job I use BIND (DNS Server) and DHCP Server to do the work for me.> 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? > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/sambaRapazito PT A Linux Newbie from Portugal linuxzito@frontnet.net
>ping windows_machine_nameI personal use dnsmasq with dhcp, search freshmeat.net. It's almost a dynamic dns solution, but with alot less head archs ( it took me a long time to get dhcp+bind to do ddns ) The only thing that is a little differant, is you will have to use the full hostname or client with a period on the end ... ping client.domain or ping client. Very quick, very light, very nice. Mailed Lee