Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-16-2003, 06:24 PM   #1
LQ Newbie
Registered: Dec 2003
Posts: 2

Rep: Reputation: 0
Linux gateway computer can't resolve names

I am using vectorlinux (slackware 9.1 distro) on a pII350
This computer is the gateway for about 5 Winxp clients.
The Win xp computers can ping each other & surf the net thru the Linux computer.
They cannot ping the linux computer by name only by ip address.

The linux comp can also surf the web using mozilla, and at the command line it can ping specific ip addresses, but it can't resolve names on the internet or on the LAN.
If I run findsmb it finds the computers in the workgroup by name and shows the ip address, but if I try to ping the computers by name it says "ping: unknown host office"
If I ping using ip address it works.
LinNetwork does not show Linux as one of the smb computers. Depending which computers are plugged in different computers are shown as the LMB.
All computers are set to the same workgroup name.

My smb config file is shown below.
All the Win XP computers have fixed IP addresses.
I am using the basic firewall script described in HOWTO IPMASQUERADE
I can supply further information if requested.

# Samba config file created using SWAT
# from localhost (
# Date: 2003/12/17 12:08:59

# Global parameters
workgroup = HKSCHOOL
netbios name = LINUX
server string = Samba Server
encrypt passwords = Yes
ssl CA certDir = /etc/ssl/certs
log file = /var/log/samba.%m
max log size = 50
os level = 99
preferred master = Yes
domain master = Yes
wins support = Yes

comment = Home Directories
read only = No
browseable = No

comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
Old 12-16-2003, 06:40 PM   #2
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
You have you linux box set as a WINS server are the windows boxes registering the ip with with linux box via WINS.
Old 12-17-2003, 12:00 AM   #3
LQ Newbie
Registered: Dec 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Yes. The wins server setting on all the XP computers is set to the ip address of the linux computer
Old 12-17-2003, 05:22 AM   #4
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
What are the contents of /etc/resolv.conf ? It sounds like you're not pointing at a valid DNS server (that's the problem with no Internet name resolution). As for the problem of internal name resolution, I'm not aware of Linux being able to use WINS for name resolution on protocols other than SMB, but perhaps it's possible. Another solution would be to put all the proper IPs and hostnames in /etc/hosts. The last solution would be to setup named (BIND) and configure it to only listen on your internal interface. Use that to configure a local DNS zone to resolve the names internally (you would have to populate the zone file by hand to get started).
Old 12-17-2003, 10:30 AM   #5
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
What about /etc/nsswitch.conf?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot resolve names bigd Linux - Networking 1 10-09-2005 01:06 PM
why does gateway ip address work to resolve names? tmmort Linux - Networking 3 09-26-2005 01:58 PM
DNS, Linux doesnt resolve domain names for me ikk Linux - Networking 6 08-28-2005 04:35 PM
DNS, Linux doesnt resolve domain names for me ikk Linux - Newbie 6 08-28-2005 04:29 PM
Windows Linux WRT54G router: Ping can not resolve local computer name sandipkumar Linux - Networking 5 07-07-2004 12:36 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration