Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am facing some strange problem. I compiled the latest linux kernel and used "make localmodconfig" to create my .config file. In the new kernel "ping" does not work. However the following works. NSLOOKUP works, DIG works, host works. Similarly giving ifconfig after "ping" shows increase in TX and RX counters. So it looks to me like packets are received. SELinux is disabled and iptables does not have rules.

Contents of /etc/resolv.conf


Ping by IP works. For example, if I ping the IP address of google, I am getting response. The name servers are also pingable.

Can someone please help me out.



share|improve this question
Sounds like nsswitch.conf may be incorrect. – David Schwartz Jul 1 '14 at 23:13
Is it just which gives you a problem or you can not ping other places as well? – VL-80 Jul 1 '14 at 23:24
Any address with host name cannot be pinged. If I "nslookup" the host name and ping the IP, I am able to ping. Curl / wget also does not work – CHID Jul 2 '14 at 19:08
@DavidSchwartz : Thanks. I went over a couple of forums which suggested the issue could be in nsswitch.conf. Unfortunately my file is same as specified in those forums. – CHID Jul 2 '14 at 19:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.