1835120 Members
2264 Online
110076 Solutions
New Discussion

Re: Ping problem...

 
Sandip Samanta
Occasional Advisor

Ping problem...

Hi family,

I am facing one problem..

When I am trying to make ping in localhost (127.0.0.1) . It is showing unknow address. I have been able to make ping thru ip address. When I am giving nslookup command it is been able to printout localhost name. But it showing error in ping localhost command. I have check /etc/hosts, /etc/named.boot. Everything seems ok. Pls let me know what I am missing.

Sandip
3 REPLIES 3
Rita C Workman
Honored Contributor

Re: Ping problem...

When you do an nslookup, it is going to check all the lookups (in the order you have specified in the nss* file). So in your nslookup, where did it find it's answer. That may be your first key. I'd bet probably in the hosts file...and if you've done what I have done myself too...there is probably a space where it shouldn't be or instead of a period you have a colon (or in my case a comma)..
Anyway, just a thought, hope it helps.
Rick Garland
Honored Contributor

Re: Ping problem...

Have you checked the /etc/rc.config.d/netconf file. There is a definition for the loopback (127.0.0.1) address in there as well.

Kofi ARTHIABAH
Honored Contributor

Re: Ping problem...

Ok, check the following.

1. You should have an entry in your /etc/hosts file that reads:

127.0.0.1 localhost loopback

2. check your /etc/nsswitch.conf (if you do not have one, create one) it should contain a line that reads:

hosts: files [NOTFOUND=continue] dns

3. Check that your /etc/rc.config.d/netconf contains the following line:

LOOPBACK_ADDRESS=127.0.0.1

Good luck



nothing wrong with me that a few lines of code cannot fix!