{"id":346,"date":"2023-04-18T10:05:49","date_gmt":"2023-04-18T08:05:49","guid":{"rendered":"https:\/\/blog.remyblom.nl\/?p=346"},"modified":"2023-06-06T10:58:50","modified_gmt":"2023-06-06T08:58:50","slug":"temporary-failure-in-name-resolution","status":"publish","type":"post","link":"https:\/\/blog.remyblom.nl\/?p=346","title":{"rendered":"&#8220;Temporary failure in name resolution&#8221;"},"content":{"rendered":"\n<p>I just updated a Ubuntu 20.04 LTS box to 22.04 LTS and found out my nginx server would not come up. The reason? It was not able to resolve it&#8217;s upstream servers by name. Known issue. So I started to google it. But DAMN! WTF! The internet is like a f*cking echo chamber for so-called techies writing blog posts all over the place and asking for coffees in return. It is really sad. Even the typo&#8217;s are just copy-pasted! <\/p>\n\n\n\n<p>I wanted a solution that is NOT editing a file which states very clearly at the top:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># This is \/run\/systemd\/resolve\/stub-resolv.conf managed by man:systemd-resolved(8).\n# Do not edit.<\/code><\/pre>\n\n\n\n<p>It took me quite some searching but I finally found it, the magic happens in <code>\/etc\/systemd\/resolved<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>DNS=8.8.8.8 8.8.4.4\nDomains=remyblom.nl<\/code><\/pre>\n\n\n\n<p>(I used the google DNS in the example above, but I&#8217;d recomment using your local internet provider&#8217;s DNS at all time. Better for both performance and your privacy)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just updated a Ubuntu 20.04 LTS box to 22.04 LTS and found out my nginx server would not come up. The reason? It was not able to resolve it&#8217;s upstream servers by name. Known issue. So I started to google it. But DAMN! WTF! The internet is like a f*cking echo chamber for so-called &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.remyblom.nl\/?p=346\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;&#8220;Temporary failure in name resolution&#8221;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,3],"tags":[],"class_list":["post-346","post","type-post","status-publish","format-standard","hentry","category-config","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=\/wp\/v2\/posts\/346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=346"}],"version-history":[{"count":2,"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=\/wp\/v2\/posts\/346\/revisions"}],"predecessor-version":[{"id":354,"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=\/wp\/v2\/posts\/346\/revisions\/354"}],"wp:attachment":[{"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}