LinuxQuestions.org
Help answer threads with 0 replies.
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 10-12-2006, 06:12 PM   #1
SoulGrind
LQ Newbie
 
Registered: Sep 2006
Posts: 9

Rep: Reputation: 0
Can't Ping By Hostname, Only By IP


Running SuSE OpenLinux 10.1
Hostname: toolbox
Registered in DNS: Yes
SuSE Firewall: Disabled
Can ping google.com: Yes
Can ping sun.com: Yes
Can ping other internal machines by hostname: No
Can ping other internal machines by IP address: Yes
Other machines can ping toolbox by hostname: Yes
Other machines can ping toolbox by IP address: Yes

Trying to see other network resources from within SuSE OpenLinux 10.1 - I can ping other internal hosts by IP address, not by hostname.

Any suggestions?
 
Old 10-12-2006, 06:25 PM   #2
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Re: Can't ping

Add host names in the /etc/hosts file.
 
Old 10-13-2006, 12:00 PM   #3
SoulGrind
LQ Newbie
 
Registered: Sep 2006
Posts: 9

Original Poster
Rep: Reputation: 0
???

Quote:
Originally Posted by dxqcanada
Add host names in the /etc/hosts file.
Can you explain the reasoning behind this approach? This seems rather unecessary as other machines on the network do not need such etc/hosts entries and yet they maintain the ability to ping other network devices by hostname.


Thanks,

SoulGrind
 
Old 10-13-2006, 12:23 PM   #4
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
Check your DNS settings. Yast2 provides a GUI frontend for this, might wanna try.
 
Old 10-13-2006, 12:43 PM   #5
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Quote:
Originally Posted by SoulGrind
Can you explain the reasoning behind this approach? This seems rather unecessary as other machines on the network do not need such etc/hosts entries and yet they maintain the ability to ping other network devices by hostname.


Thanks,

SoulGrind
Perhaps there is a DNS server they are using in their /etc/resolv.conf file that points to such hosts. Are these all Linux or Windows hosts? If they're all Windows hosts, it's a matter of them running WINS or the like where they can see each other by name without a DNS setup.
 
Old 10-13-2006, 11:28 PM   #6
Blindsight
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 234

Rep: Reputation: 30
Do you have a zonefile loaded for your local hostnames? Is your zonefile formed correctly? Can you nslookup the hostname? If not, your bind (read also DNS server) configuration is jacked. man named.conf. Read the DNS-HOWTO. If you still have problems, post your zonefile and your named.conf.
 
  


Reply


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
can ping ip but not hostname mrbabis Linux - Networking 17 06-07-2006 12:26 PM
SuSE can't ping by hostname jschwartzman Linux - Networking 10 03-14-2005 03:29 PM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM
Can ping by IP but not by hostname gillesdutertre Linux - Networking 8 09-01-2003 07:59 AM
can ping by IP but not by hostname al contado Linux - Networking 6 03-16-2003 03:06 AM


All times are GMT -5. The time now is 05:57 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration