LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-16-2003, 05:24 PM   #1
krsnendu
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 (127.0.0.1)
# Date: 2003/12/17 12:08:59

# Global parameters
[global]
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

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
 
Old 12-16-2003, 05:40 PM   #2
g-rod
Member
 
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-16-2003, 11:00 PM   #3
krsnendu
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 192.168.0.1
 
Old 12-17-2003, 04:22 AM   #4
chort
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: 76
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, 09:30 AM   #5
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

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


Reply



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 12:06 PM
why does gateway ip address work to resolve names? tmmort Linux - Networking 3 09-26-2005 12:58 PM
DNS, Linux doesnt resolve domain names for me ikk Linux - Networking 6 08-28-2005 03:35 PM
DNS, Linux doesnt resolve domain names for me ikk Linux - Newbie 6 08-28-2005 03:29 PM
Windows Linux WRT54G router: Ping can not resolve local computer name sandipkumar Linux - Networking 5 07-06-2004 11:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:40 AM.

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