Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

localhost problems

Status
Not open for further replies.

womp

Technical User
Apr 6, 2001
105
US
I have a RedHat ver.9.0 running.
I am trying to do a ping localhost and nothing comes back!
I know I have the /etc/hosts correct because I have another box running RedHat 9.0 and I have no problems pinging localhost. I can do a ping of 127.0.0.1 without a problem.
Is there someplace else I should be looking?
 
127.0.0.1 localhost.localdomain localhost

This is the whole thing in /etc/hosts
 
If I ping localhost nothing happens
If I ping 127.0.0.1 I get the normal information of a ping.
In other words it works when I do "ping 127.0.0.1"
 
When I ping localhost I get:

[hansonr@linux hansonr]$ ping localhost
ping: unknown host localhost
[hansonr@linux hansonr]$
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top