{"id":125,"date":"2014-03-05T20:54:25","date_gmt":"2014-03-05T20:54:25","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=125"},"modified":"2014-03-05T20:54:25","modified_gmt":"2014-03-05T20:54:25","slug":"how-do-i-include-lines-in-resolv-conf-that-wont-get-lost-on-reboot","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/03\/05\/how-do-i-include-lines-in-resolv-conf-that-wont-get-lost-on-reboot\/","title":{"rendered":"How do I include lines in resolv.conf that won&#8217;t get lost on reboot?"},"content":{"rendered":"<p>It&#8217;s probably better to have your DNS server be able to resolve &#8216;puppet&#8217; to the right address, and either to have your DHCP server hand out the DNS nameserver address and search list or else (if you have static IP addresses) to have something like the following in \/etc\/network\/interfaces.<\/p>\n<p>iface eth0 inet static<br \/>\n    address 192.168.3.3<br \/>\n    netmask 255.255.255.0<br \/>\n    gateway 192.168.3.1<br \/>\n    dns-search example.com<br \/>\n    dns-nameservers 192.168.3.45 192.168.8.10<\/p>\n<p>But if you do want to do it via the resolvconf configuration files you will want to edit \/etc\/resolvconf\/resolv.conf.d\/base. In that file, put in your info as you would in resolv.conf.<\/p>\n<p>nameserver 192.168.1.XXX<\/p>\n<p>Then tell resolvconf to regenerate resolv.conf.<\/p>\n<p>sudo resolvconf -u<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s probably better to have your DNS server be able to resolve &#8216;puppet&#8217; to the right address, and either to have your DHCP server hand out the DNS nameserver address and search list or else (if you have static IP addresses) to have something like the following in \/etc\/network\/interfaces. iface eth0 inet static address 192.168.3.3 &#8230; <a title=\"How do I include lines in resolv.conf that won&#8217;t get lost on reboot?\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2014\/03\/05\/how-do-i-include-lines-in-resolv-conf-that-wont-get-lost-on-reboot\/\" aria-label=\"Read more about How do I include lines in resolv.conf that won&#8217;t get lost on reboot?\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117],"tags":[],"class_list":["post-125","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=125"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/125\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}