{"id":119,"date":"2021-01-19T15:06:00","date_gmt":"2021-01-19T15:06:00","guid":{"rendered":"https:\/\/demo.themespiral.com\/trustnews\/?p=119"},"modified":"2021-06-14T01:52:12","modified_gmt":"2021-06-14T01:52:12","slug":"changing-dns-in-linux","status":"publish","type":"post","link":"https:\/\/teza.blog\/index.php\/2021\/01\/19\/changing-dns-in-linux\/","title":{"rendered":"Changing DNS in Linux"},"content":{"rendered":"\n<p>For whatever reason, you want to change your DNS, you need to change it at resolv.conf<br><br>First change your directory to \/etc.<br>cd \/etc<br><br>if you type in ls -l, you will see resolv.conf file. <br><br>you have to sudo or su to make changes <br><br>sudo nano resolv.conf <br><br>if there is existing dns, you can hash it out. Just put # in front of the address<br><br>and then type in the new nameservers <br><br>you can use openDNS, Googles DNS or any DNS that you prefer. <br><br>OpenDNS 1: 208.67.222.222<br>OpenDNS 2:&nbsp;208.67.220.220<br><br>ctrl + O<br>Enter <\/p>\n\n\n\n<p>ctrl +x <\/p>\n","protected":false},"excerpt":{"rendered":"<p>For whatever reason, you want to change your DNS, you need to change it at resolv.conf First change your directory to \/etc.cd \/etc if you type in ls -l, you will see resolv.conf file. you have to sudo or su to make changes sudo nano resolv.conf if there is existing dns, you can hash it &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/teza.blog\/index.php\/2021\/01\/19\/changing-dns-in-linux\/\" class=\"read-more\">Read More<span class=\"screen-reader-text\"> &#8220;Changing DNS in Linux&#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":[82,1],"tags":[71,58],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-linux","category-networking","tag-dns","tag-linux"],"_links":{"self":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":3,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":2315,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts\/119\/revisions\/2315"}],"wp:attachment":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}