Can resolve using nslookup but not ping on Linux

In my case this was I believe caused by avahi lookups taking priority.

In nsswitch.conf I had:

hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4

I changed this to:

hosts:          files dns mdns4_minimal [NOTFOUND=return] dns mdns4

and all was well.

3 thoughts on “Can resolve using nslookup but not ping on Linux

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>