{"id":138,"date":"2010-06-01T09:48:10","date_gmt":"2010-06-01T09:48:10","guid":{"rendered":"http:\/\/test.bleuanus.nl\/index.php\/linux\/location-resolvconf-gets-overwritten\/"},"modified":"2018-12-11T16:09:09","modified_gmt":"2018-12-11T15:09:09","slug":"location-resolvconf-gets-overwritten","status":"publish","type":"post","link":"https:\/\/www.bleuanus.nl\/index.php\/2010\/06\/01\/location-resolvconf-gets-overwritten\/","title":{"rendered":"Location resolv.conf gets overwritten"},"content":{"rendered":"<p class=\"last-modified\">This post was most recently updated on December 11th, 2018<\/p><p>First, make sure you have internet access, and make sure resolvconf is installed on your system.<\/p>\n<blockquote><p>sudo\u00a0apt-get install resolvconf<\/p><\/blockquote>\n<p>Next, let me explain the elements of resolvconf.<\/p>\n<p>\/etc\/resolvconf\/resolv.conf.d\/head is the header file for the dynamic generation. Leave this alone.<\/p>\n<p>\/etc\/resolvconf\/resolv.conf.d\/base is the &#8220;meat&#8221; of the file, or the middle. Define your nameservers here using this syntax: &#8220;nameserver xxx.xxx.xxx.xxx&#8221; where xxx.xxx.xxx.xxx is the ip of your nameserver.<\/p>\n<p>\/etc\/resolvconf\/resolv.conf.d\/tail is the ending of this file. Leave this one alone too.<\/p>\n<p>\/etc\/resolvconf\/resolv.conf.d\/original is the original configuration of the file. These isn&#8217;t anything you have to do for this file.<\/p>\n<p>After you have applied your changes, but before you restart your network service, run this command:<\/p>\n<blockquote><p>sudo resolvconf -u<\/p><\/blockquote>\n<p>This will run the script and update your \/etc\/resolv.conf file. This apparently should happen every time the machine boots.<\/p>\n<p>After that, restart your networking service with this command:\u00a0<\/p>\n<blockquote><p>sudo \/etc\/init.d\/networking restart<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>This post was most recently updated on December 11th, 2018First, make sure you have internet access, and make sure resolvconf is installed on your system. sudo\u00a0apt-get install resolvconf Next, let me explain the elements of resolvconf. \/etc\/resolvconf\/resolv.conf.d\/head is the header file for the dynamic generation. Leave this alone. \/etc\/resolvconf\/resolv.conf.d\/base is the &#8220;meat&#8221; of the file, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-138","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/posts\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/comments?post=138"}],"version-history":[{"count":1,"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/posts\/138\/revisions"}],"predecessor-version":[{"id":245,"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/posts\/138\/revisions\/245"}],"wp:attachment":[{"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/media?parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/categories?post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/tags?post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}