LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Enabling WINS lookup (https://www.linuxquestions.org/questions/suse-opensuse-60/enabling-wins-lookup-463012/)

TKD 07-11-2006 12:35 PM

Enabling WINS lookup
 
Hi all,

I'm running 10.1 as a client on a pretty old NT server domain which runs WINS rather than DNS to resolve hostnames.
I've been messing around all day and can't for the life of me work out how to get suse to resolve hostnames using a WINS server.
I've cracked it for samba. I.e. i can see network shares using 'smb://hostname/share'. However, if try from the terminal:
tkd@TKDSUSE:~> ping tt100269

I get..

ping: unknown host tt100269

Doing the same using an IP or a hostname which is definitely in DNS is fine too.

Can anyone help?

EclipseAgent 07-12-2006 12:07 AM

DNS > WINS :)

Samba can utilize WINS but Linux its self cannot I believe.

dorkman 02-05-2007 10:17 AM

Samba uses NetBIOS lookup, there is a utility in linux that allows you to use this

nmblookup tt100269

will give you an ip address and you can ping the ip address.

swerdna 02-06-2007 08:14 AM

Go into the file nsswitch.conf located at /etc/nsswitch.conf. Find the Line "hosts: files dns". It's missing wins so make it like this "hosts: files dns wins". Then you can ping by NetBIOS name.:)
Swerdna


All times are GMT -5. The time now is 03:15 PM.