Download your favorite Linux distribution at LQ ISO.
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 02-06-2009, 03:20 PM   #1
LQ Newbie
Registered: Jan 2006
Posts: 13

Rep: Reputation: 0
Cannot Ping Hostname

I'm still struggling with this problem but I would appreciate some fresh ideas.

I am trying to virtual setup a domain name ( on a server that is
I've tried a ton of things and have gone thru a tutorial on setting up DNS caching on my box ( My netgear router is my gateway and as long as I have my covad nameservers in /etc/resolve.conf i can get to the net.

I can do a dig and get good information returned. But I have notices that the IP address

But for the life of me, i cannot ping from the server or outside the server.

I'm running RHE 5.
when I do a ping from my linux box i get the following:
ping: unknown host

Could anyone give me an idea or two on how to attact this?
Any help would be appreciated.
Old 02-06-2009, 04:48 PM   #2
LQ Newbie
Registered: Nov 2008
Location: USA
Distribution: rhell 4/5
Posts: 18

Rep: Reputation: 1
*sorry on second thought, my initial response would not have worked*

Can you post the results of "route" instead? Does that provide any insight into why the name is not resolving - like can you get to the name server?

Is ypbind also started? ("service ypbind status")

Last edited by web_janitor; 02-06-2009 at 04:51 PM.
Old 02-06-2009, 05:10 PM   #3
LQ Newbie
Registered: Jan 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface * U 0 0 0 eth0 * U 0 0 0 eth0
default NetgearR UG 0 0 0 eth0

Hmmm...ypbind is not started and could not be started. Here is part of the error msg: This is a daemon which runs on NIS/YP clients and binds them to a NIS domain. It must be running for systems based on glibc to work as NIS clients, but it should not be enabled on systems which are not using NIS.

I don't think i'm using NIS. I've never config'd it. ???
Old 02-06-2009, 11:50 PM   #4
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34

there is a file in /etc named nsswitch.conf
find this line :
#hosts:     db files nisplus nis dns
hosts:      files dns
try to change the hosts part to -> files dns

Old 02-07-2009, 02:04 PM   #5
LQ Newbie
Registered: Jan 2006
Posts: 13

Original Poster
Rep: Reputation: 0
thanks rossonieri#1
That was it.

The change i made was host: dns files. i kinda thought files meant /etc/hosts and felt why check /etc/hosts first when you have dns.

I did a ping from my linux box to and it worked!
Secondly I did a ping from my pc (on same network) and it returned with a good IP address. Did did not work the last time i tried.

thanks to all who responded.


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't Ping By Hostname, Only By IP SoulGrind Linux - Networking 5 10-14-2006 12:28 AM
can ping ip but not hostname mrbabis Linux - Networking 17 06-07-2006 01:26 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 05:57 AM
Can ping by IP but not by hostname gillesdutertre Linux - Networking 8 09-01-2003 08:59 AM
can ping by IP but not by hostname al contado Linux - Networking 6 03-16-2003 04:06 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:18 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