{"id":1932,"date":"2018-03-16T17:50:53","date_gmt":"2018-03-16T17:50:53","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=1932"},"modified":"2018-03-16T17:50:53","modified_gmt":"2018-03-16T17:50:53","slug":"modifying-dns-entry-for-domain","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/modifying-dns-entry-for-domain\/","title":{"rendered":"Modifying DNS Entry for Domain"},"content":{"rendered":"<p>Search \/etc\/named.conf to find the zone file for the domain.<\/p>\n<p>Find the domain name and see where the zone file is.\u00a0 Example zone block.<\/p>\n<pre>zone \"incredigeek.com\" in {\r\n type master;\r\n file \"\/var\/named\/mzones\/incredigeek.com.hosts\";\r\n allow-query { any; };\r\n forwarders {};\r\n};<\/pre>\n<p>The file is \/var\/named\/mzones\/incredigeek.com.hosts<\/p>\n<p>Edit your zone file by opening it up in a text editor.<\/p>\n<p>Example.\u00a0 Text in bold added for comments.<\/p>\n<pre>$TTL 21600\r\n$ORIGIN com.\r\nincredigeek IN SOA dns1.dns-server.com. dns2.dns-server.com.(\r\n 0000147 ; serial  <strong>&lt;- This needs to be incremented so it is greater than the previous version of this file<\/strong>\r\n 43200 ; refresh (12 hours)\r\n 7200 ; retry (2 hours)\r\n 604800 ; expire (7 days)\r\n 21600 ) ; minimum\r\n NS dns1.dns-server.com.\r\n NS dns2.dns-server.com.\r\n 300 A 10.0.0.11   <strong>&lt;- A record for root domain<\/strong>\r\n$ORIGIN incredigeek.com.\r\nlocalhost IN A 127.0.0.1\r\nwww 300 IN A 10.0.0.11  <strong>&lt;- www subdomain A record\r\n<\/strong>login 300 IN A 10.0.0.12<strong> &lt;- another subdomain A record<\/strong><\/pre>\n<p>Save file and reload Bind<\/p>\n<p>On FreeBSD<\/p>\n<pre>rndc reload incredigeek.com<\/pre>\n<p>you can reload everything with<\/p>\n<pre>rndc reload<\/pre>\n<p>On Fedora\/CentOS\/REHL<\/p>\n<pre>service named reload<\/pre>\n<p>On Ubuntu\/Debian<\/p>\n<pre>service bind9 restart<\/pre>\n<p>You may need to reload Bind on any slave servers<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Search \/etc\/named.conf to find the zone file for the domain. Find the domain name and see where the zone file is.\u00a0 Example zone block. zone &#8220;incredigeek.com&#8221; in { type master; file &#8220;\/var\/named\/mzones\/incredigeek.com.hosts&#8221;; allow-query { any; }; forwarders {}; }; The &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/modifying-dns-entry-for-domain\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46,3],"tags":[425,426,277,7,428,424,427],"class_list":["post-1932","post","type-post","status-publish","format-standard","hentry","category-dns","category-linux","tag-bind","tag-bind9","tag-dns","tag-linux-2","tag-mzones","tag-named","tag-zone"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=1932"}],"version-history":[{"count":5,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1932\/revisions"}],"predecessor-version":[{"id":1937,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1932\/revisions\/1937"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=1932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=1932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=1932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}