{"id":3698,"date":"2015-04-25T17:22:00","date_gmt":"2015-04-25T17:22:00","guid":{"rendered":"http:\/\/really.zonky.org\/?p=3698"},"modified":"2015-04-25T17:22:00","modified_gmt":"2015-04-25T17:22:00","slug":"always-check-your-dns-resolver-etcresolv-conf","status":"publish","type":"post","link":"https:\/\/really.zonky.org\/?p=3698","title":{"rendered":"Always Check Your DNS Resolver (\/etc\/resolv.conf)"},"content":{"rendered":"<p>\n\tSo for ages I&#39;ve been having these mysterious slow downs in connecting to some of my internal servers. A few seconds, but once connected things are working normally.\n<\/p>\n<p>\n\tAnd of course I kept putting off having a look into the problem, because firstly I&#39;m lazy, secondly there are other more interesting things to look at, and thirdly I&#39;d already discounted the obvious (actually I&#39;d &quot;fixed&quot; it but made certain assumptions). But it&#39;s finally time to have a look.\n<\/p>\n<p>\n\tNow I said I&#39;d earlier discounted the obvious but decided to have a look any way. The thing to remember is that when you connect to a server it almost always performs a DNS lookup on your network address, so a mysterious slow down could well indicate that DNS resolution is to blame. You&nbsp;<em>could<\/em>&nbsp;perform diagnostics to determine what the problem is, but in all the decades I&#39;ve been solving issues with computers whenever a mysterious slow down has occurred&nbsp;<em>when connecting over the network<\/em>, then the problem has almost always been the DNS resolver.\n<\/p>\n<p>\n\tTaking a look at&nbsp;<em>\/etc\/resolv.conf<\/em>&nbsp;on the relevant server (a Linux container), and I find the file has a nameserver within it that was retired several weeks ago! Fixing that solved the issue.\n<\/p>\n<p>\n\tLessons learnt :-\n<\/p>\n<ol>\n<li>\n\t\tJust because you have a centrally distributed&nbsp;<em>\/etc\/resolv.conf<\/em>&nbsp;that is automatically installed on all your home network doesn&#39;t mean to say that it is&nbsp;<em>always<\/em>&nbsp;automatically installed. My Linux containers don&#39;t get that centrally distributed file (which had been corrected!).\n\t<\/li>\n<li>\n\t\tDon&#39;t assume that it&#39;s not the obvious even if you have reasons for thinking it couldn&#39;t possibly be the obvious (see #1).\n\t<\/li>\n<\/ol>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So for ages I&#39;ve been having these mysterious slow downs in connecting to some of my internal servers. A few seconds, but once connected things are working normally. And of course I kept putting off having a look into the problem, because firstly I&#39;m lazy, secondly there are other more interesting things to look at, <a href='https:\/\/really.zonky.org\/?p=3698' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":2,"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},"_share_on_mastodon":"0"},"categories":[209,226],"tags":[748,1303],"class_list":["post-3698","post","type-post","status-publish","format-standard","hentry","category-linux-it","category-working-notes","tag-dns","tag-it-problem-solving","category-209-id","category-226-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1f2KI-XE","_links":{"self":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/3698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3698"}],"version-history":[{"count":1,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/3698\/revisions"}],"predecessor-version":[{"id":3699,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/3698\/revisions\/3699"}],"wp:attachment":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}