{"id":1220,"date":"2020-04-07T00:52:18","date_gmt":"2020-04-07T00:52:18","guid":{"rendered":"\/blog\/?p=1220"},"modified":"2020-04-07T12:50:30","modified_gmt":"2020-04-07T12:50:30","slug":"setup-centos7-as-dns-forwarding","status":"publish","type":"post","link":"\/blog\/index.php\/setup-centos7-as-dns-forwarding\/","title":{"rendered":"setup CentOS7 as dns forwarding"},"content":{"rendered":"<p>yum install bind<br \/>\nvi \/etc\/named.conf<br \/>\nfound<br \/>\n&#8212;&#8212;&#8212;&#8211;<br \/>\nzone &#8220;.&#8221; IN {<br \/>\ntype hint;<br \/>\nfile &#8220;named.ca&#8221;;<br \/>\n};<br \/>\n&#8212;&#8212;&#8212;&#8211;<br \/>\nreplace with<br \/>\n&#8212;&#8212;&#8212;&#8211;<br \/>\nzone &#8220;.&#8221; IN {<br \/>\ntype forward;<br \/>\nforward only;<br \/>\nforwarders { 8.8.8.8; 8.8.4.4; };<br \/>\n};<br \/>\n&#8212;&#8212;&#8212;&#8211;<br \/>\nservice named start<\/p>\n<p>also change the ip address to the server&#8217;s ip address, and make sure to set the allow-query settings properly<\/p>\n<p>options {<br \/>\n        listen-on port 53 { 192.168.5.100; };<br \/>\n\tallow-query     { localhost;any; };<\/p>\n","protected":false},"excerpt":{"rendered":"<p>yum install bind vi \/etc\/named.conf found &#8212;&#8212;&#8212;&#8211; zone &#8220;.&#8221; IN { type hint; file &#8220;named.ca&#8221;; }; &#8212;&#8212;&#8212;&#8211; replace with &#8212;&#8212;&#8212;&#8211; zone &#8220;.&#8221; IN { type forward; forward only; forwarders { 8.8.8.8; 8.8.4.4; }; }; &#8212;&#8212;&#8212;&#8211; service named start also change the ip address to the server&#8217;s ip address, and make sure to set the allow-query [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1220","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1220"}],"version-history":[{"count":2,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1220\/revisions"}],"predecessor-version":[{"id":1222,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1220\/revisions\/1222"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1220"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}