{"id":1054,"date":"2013-12-27T20:47:47","date_gmt":"2013-12-27T20:47:47","guid":{"rendered":"http:\/\/www.omniweb.com\/wordpress\/?p=1054"},"modified":"2014-01-01T20:51:59","modified_gmt":"2014-01-01T20:51:59","slug":"working-with-resolvconf-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.omniweb.com\/wordpress\/?p=1054","title":{"rendered":"Working with resolvconf on Ubuntu"},"content":{"rendered":"<p>Trying to update your nameservers the old fashioned way can be a headache on Ubuntu.   There is this thing called resolvconf that likes to change your settings back when you reboot.  So for future reference, here&#8217;s what I found.<\/p>\n<p>First of all, as with any normal linux install, nameservers are spelled out in the file &#8220;\/etc\/resolv.conf&#8221; however this now includes the ominous warning<br \/>\n<code># Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)<br \/>\n#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN<br \/>\n<\/code><\/p>\n<p>There is a folder \/etc\/resolvconf\/resolv.conf.d\/ with 3 files; &#8220;base&#8221;,  &#8220;head&#8221;  &#038; &#8220;original&#8221;.  The warning above actually comes from this head file.  In the base file you should add the nameservers on lines like:<\/p>\n<pre><code>\r\nnameserver 192.168.1.1\r\nnameserver 192.168.1.2\r\n<\/code><\/pre>\n<p>Then if you run &#8216;<code>resolvconf -u<\/code>&#8216; your nameservers will update to include those from the base file.  However you may get some additional nameservers showing up, if you have them designated in \/etc\/network\/interfaces with the &#8220;dns-nameservers&#8221; option, eg <\/p>\n<pre><code>dns-nameservers 192.168.1.11 192.168.1.12<\/code><\/pre>\n<p>If you have the same nameservers set in both places (the base file and the interfaces file) they will only show up once in \/etc\/resolv.conf<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Trying to update your nameservers the old fashioned way can be a headache on Ubuntu. There is this thing called resolvconf that likes to change your settings back when you reboot. So for future reference, here&#8217;s what I found. First &hellip; <a href=\"https:\/\/www.omniweb.com\/wordpress\/?p=1054\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1054"}],"collection":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1054"}],"version-history":[{"count":6,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1054\/revisions"}],"predecessor-version":[{"id":1067,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1054\/revisions\/1067"}],"wp:attachment":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}