{"id":3308,"date":"2022-09-08T16:57:01","date_gmt":"2022-09-08T10:57:01","guid":{"rendered":"http:\/\/saq.com\/?p=3308"},"modified":"2022-11-18T00:58:38","modified_gmt":"2022-11-17T18:58:38","slug":"bind9-dns-server","status":"publish","type":"post","link":"https:\/\/saq-digital.com\/kk\/bind9-dns-server\/","title":{"rendered":"How to configure Bind 9 as private local DNS"},"content":{"rendered":"<p><\/p>\n\n\n\n<p>We are going to install local DNS server on the Ubuntu server by using open source DNS tool Bing9.<\/p>\n\n\n\n<p>First we need to install bind9 on the Ubuntu:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-palette-color-4-background-color has-text-color has-background\"><code>sudo apt install bind9 bind9-utils bind9-dnsutils -y<\/code><\/pre>\n\n\n\n<p>Second go to named.conf.local file under \/etc\/bind, and add below:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-palette-color-4-background-color has-text-color has-background\"><code>\/\/\r\n\/\/ Do any local configuration here\r\n\/\/\r\n\/\/ Consider adding the 1918 zones here, if they are not used in your\r\n\/\/ organization\r\n\/\/include \"\/etc\/bind\/zones.rfc1918\";\r\n\r\nzone    \"example.com\"  {\r\n        type master;\r\n        file \"\/etc\/bind\/db.forward.com\";\r\n};\r\n\r\nzone    \"100.10.10.in-addr.arpa\" {\r\n        type master;\r\n        file \"\/etc\/bind\/db.reverse.com\";\r\n};\r\n\r<\/code><\/pre>\n\n\n\n<p>Then we are going to copy default conf files with command cp db.local to db.forward.com and cp db.127 to db.reverse.com. when it&#8217;s done update below conf files: <\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-palette-color-4-background-color has-text-color has-background\"><code>\/\/ db.forward.com\r\n; BIND data file for local loopback interface\r\n;\r\n$TTL    604800\r\n@       IN      SOA     ns.dnsserver.com. root.localhost. (\r\n                              2         ; Serial\r\n                         604800         ; Refresh\r\n                          86400         ; Retry\r\n                        2419200         ; Expire\r\n                         604800 )       ; Negative Cache TTL\r\n;\r\n        IN      A       10.10.100.13\r\n@       IN      NS      ns.dnsserver.com.\r\nns      IN      A       10.10.100.13\r\nserver  IN      A       10.10.100.13\r\n\r\n\r\n\/\/db.reverse.com\r\n;\r\n; BIND reverse data file for local loopback interface\r\n;\r\n$TTL    604800\r\n@       IN      SOA     ns.dnsserver.com. root.localhost. (\r\n                              1         ; Serial\r\n                         604800         ; Refresh\r\n                          86400         ; Retry\r\n                        2419200         ; Expire\r\n                         604800 )       ; Negative Cache TTL\r\n;\r\n@       IN      NS      ns.\r\n13      IN      PTR     ns.dnsserver.com.\r\n13      IN      PTR     server.dnsserver.com.<\/code><\/pre>\n\n\n\n<p>Please check out here for more details regarding Bind9 : <a href=\"https:\/\/www.isc.org\/bind\/\" target=\"_blank\" rel=\"noopener\" title=\"\">BIND 9 &#8211; ISC<\/a> <\/p>","protected":false},"excerpt":{"rendered":"<p>We are going to install local DNS server on the Ubuntu server by using open source DNS tool Bing9. First we need to install bind9 on the Ubuntu: Second go to named.conf.local file under \/etc\/bind, and add below: Then we are going to copy default conf files with command cp db.local to db.forward.com and cp [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5721,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[84,85,105],"tags":[92,115],"class_list":["post-3308","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dns","category-infrastructure","category-servers","tag-dns","tag-servers"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"aioseo_notices":[],"featured_image_urls_v2":{"full":["https:\/\/saq-digital.com\/wp-content\/uploads\/2022\/06\/network-connection-infra-saq-ds-it-scaled.jpg",2560,1440,false],"thumbnail":["https:\/\/saq-digital.com\/wp-content\/uploads\/2022\/06\/network-connection-infra-saq-ds-it-150x150.jpg",150,150,true],"medium":["https:\/\/saq-digital.com\/wp-content\/uploads\/2022\/06\/network-connection-infra-saq-ds-it-300x169.jpg",300,169,true],"medium_large":["https:\/\/saq-digital.com\/wp-content\/uploads\/2022\/06\/network-connection-infra-saq-ds-it-768x432.jpg",768,432,true],"large":["https:\/\/saq-digital.com\/wp-content\/uploads\/2022\/06\/network-connection-infra-saq-ds-it-1024x576.jpg",1024,576,true],"1536x1536":["https:\/\/saq-digital.com\/wp-content\/uploads\/2022\/06\/network-connection-infra-saq-ds-it-1536x864.jpg",1536,864,true],"2048x2048":["https:\/\/saq-digital.com\/wp-content\/uploads\/2022\/06\/network-connection-infra-saq-ds-it-2048x1152.jpg",2048,1152,true],"trp-custom-language-flag":["https:\/\/saq-digital.com\/wp-content\/uploads\/2022\/06\/network-connection-infra-saq-ds-it-scaled.jpg",18,10,false]},"post_excerpt_stackable_v2":"<p>We are going to install local DNS server on the Ubuntu server by using open source DNS tool Bing9. First we need to install bind9 on the Ubuntu: sudo apt install bind9 bind9-utils bind9-dnsutils -y Second go to named.conf.local file under \/etc\/bind, and add below: \/\/ \/\/ Do any local configuration here \/\/ \/\/ Consider adding the 1918 zones here, if they are not used in your \/\/ organization \/\/include &#8220;\/etc\/bind\/zones.rfc1918&#8221;; zone &#8220;example.com&#8221; { type master; file &#8220;\/etc\/bind\/db.forward.com&#8221;; }; zone &#8220;100.10.10.in-addr.arpa&#8221; { type master; file &#8220;\/etc\/bind\/db.reverse.com&#8221;; }; Then we are going to copy default conf files with command cp db.local&hellip;<\/p>\n","category_list_v2":"<a href=\"https:\/\/saq-digital.com\/kk\/category\/infrastructure\/servers\/dns\/\" rel=\"category tag\">DNS<\/a>, <a href=\"https:\/\/saq-digital.com\/kk\/category\/infrastructure\/\" rel=\"category tag\">Infrastructure<\/a>, <a href=\"https:\/\/saq-digital.com\/kk\/category\/infrastructure\/servers\/\" rel=\"category tag\">Servers<\/a>","author_info_v2":{"name":"SAQ","url":"https:\/\/saq-digital.com\/kk\/author\/serik-akim\/"},"comments_num_v2":"0 comments","brizy_media":[],"_links":{"self":[{"href":"https:\/\/saq-digital.com\/kk\/wp-json\/wp\/v2\/posts\/3308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/saq-digital.com\/kk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/saq-digital.com\/kk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/saq-digital.com\/kk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/saq-digital.com\/kk\/wp-json\/wp\/v2\/comments?post=3308"}],"version-history":[{"count":8,"href":"https:\/\/saq-digital.com\/kk\/wp-json\/wp\/v2\/posts\/3308\/revisions"}],"predecessor-version":[{"id":6068,"href":"https:\/\/saq-digital.com\/kk\/wp-json\/wp\/v2\/posts\/3308\/revisions\/6068"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/saq-digital.com\/kk\/wp-json\/wp\/v2\/media\/5721"}],"wp:attachment":[{"href":"https:\/\/saq-digital.com\/kk\/wp-json\/wp\/v2\/media?parent=3308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/saq-digital.com\/kk\/wp-json\/wp\/v2\/categories?post=3308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/saq-digital.com\/kk\/wp-json\/wp\/v2\/tags?post=3308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}