{"id":537,"date":"2011-10-25T15:24:27","date_gmt":"2011-10-25T15:24:27","guid":{"rendered":"http:\/\/41j.com\/blog\/?p=537"},"modified":"2011-10-25T15:30:02","modified_gmt":"2011-10-25T15:30:02","slug":"can-resolve-using-nslookup-but-not-ping-on-linux","status":"publish","type":"post","link":"https:\/\/41j.com\/blog\/2011\/10\/can-resolve-using-nslookup-but-not-ping-on-linux\/","title":{"rendered":"Can resolve using nslookup but not ping on Linux"},"content":{"rendered":"<p>In my case this was I believe caused by avahi lookups taking priority.<\/p>\n<p>In nsswitch.conf I had:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nhosts:          files mdns4_minimal &#x5B;NOTFOUND=return] dns mdns4\r\n<\/pre>\n<p>I changed this to:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nhosts:          files dns mdns4_minimal &#x5B;NOTFOUND=return] dns mdns4\r\n<\/pre>\n<p>and all was well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my case this was I believe caused by avahi lookups taking priority. In nsswitch.conf I had: hosts: files mdns4_minimal &#x5B;NOTFOUND=return] dns mdns4 I changed this to: hosts: files dns mdns4_minimal &#x5B;NOTFOUND=return] dns mdns4 and all was well.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-537","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1RRoU-8F","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/537","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/comments?post=537"}],"version-history":[{"count":3,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/537\/revisions"}],"predecessor-version":[{"id":540,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/537\/revisions\/540"}],"wp:attachment":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/media?parent=537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/categories?post=537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/tags?post=537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}