{"id":1963,"date":"2015-02-27T05:30:58","date_gmt":"2015-02-27T05:30:58","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=1963"},"modified":"2015-02-27T05:30:58","modified_gmt":"2015-02-27T05:30:58","slug":"add-resolvers-to-ubuntu-server","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/02\/27\/add-resolvers-to-ubuntu-server\/","title":{"rendered":"Add resolvers to ubuntu server"},"content":{"rendered":"<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nsudo nano \/etc\/network\/interfaces\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# This file describes the network interfaces available on your system\n# and how to activate them. For more information, see interfaces(5).\n\n# The loopback network interface\nauto lo\niface lo inet loopback\nauto eth0\niface eth0 inet static \naddress ipAddress \nnetmask 255.255.255.0 \ngateway gatewayIP \ndns-nameservers 69.64.66.11 69.64.66.10\n\n<\/pre>\n<p>Once you have entered the values correctly, press Ctrl+Enter to save it with the current filename, then press Ctrl+X to exit the editor.<\/p>\n<p>Provided you entered your values correctly, verify the new settings by retyping the cat command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\ncat \/etc\/network\/interfaces\n# This file describes the network interfaces available on your system\n# and how to activate them. For more information, see interfaces(5).\n# The loopback network interface\nauto lo\niface lo inet loopback\nauto eth0\niface eth0 inet static \naddress 123.45.67.89\nnetmask 255.255.255.0 \ngateway 123.45.67.1 \ndns-nameservers 8.8.8.8 8.8.4.4\n\n<\/pre>\n<p>Apply setting to Interface<\/p>\n<p>After you have determined the values entered are correct, restart networking with the following command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nsudo service networking restart\nstop: Unknown instance: \nnetworking stop\/waiting\nadministrator@ubuntu:~#\n\n<\/pre>\n<p>Verify it works<br \/>\nTo verify the resolvers are working, simply ping a known domain.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nping google.com\nPING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.\n64 bytes from 8.8.8.8: icmp_req=1 ttl=45 time=42.1 ms\n64 bytes from 8.8.8.8: icmp_req=2 ttl=45 time=42.2 ms\n64 bytes from 8.8.8.8: icmp_req=3 ttl=45 time=42.0 ms\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>sudo nano \/etc\/network\/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback auto eth0 iface eth0 inet static address ipAddress netmask 255.255.255.0 gateway gatewayIP dns-nameservers 69.64.66.11 69.64.66.10 Once you have entered &#8230; <a title=\"Add resolvers to ubuntu server\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2015\/02\/27\/add-resolvers-to-ubuntu-server\/\" aria-label=\"Read more about Add resolvers to ubuntu server\">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-1963","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1963","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=1963"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1963\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=1963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=1963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=1963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}