1829269 Members
14368 Online
109988 Solutions
New Discussion

Can't ping localhost

 
Nhan Nguyen
New Member

Can't ping localhost

I am able to ping any system in the network by name/ip except the 'localhost'. I check the /etc/hosts file and it contains the entry

127.0.0.1 localhost

Does anyone has the same problem or know how to fix this?

Server: HP9000
OS: HP-UX 11.0

Thanks,
Nhan
1 REPLY 1
Dan_4
Advisor

Re: Can't ping localhost

Can you ping "127.0.0.1" ? The entry in /etc/hosts should say:

127.0.0.1 localhost loopback

Are you using a DNS? If so, make sure your /etc/nsswitch.conf file has an entry for the hosts file. For example:

hosts: files [NOTFOUND=continue] dns ...

Note this entry is not complete, but edited for space considerations :)