How to configure Bind as a Caching or Forwarding DNS Server on Ubuntu
It is helpful for you to familiarize yourself first with the different types of DNS servers before deciding on which DNS configuration to adopt.
Types of DNS Servers
You can configure Bind9 DNS Server as either a Cashing or Forwarding DNS Server. Bind is an open source software that makes it possible for internet users to publish their Domain Name System (DNS) information on the internet, and to help them resolve their queries.
To achieve either of these configurations, two computers must be used (and one of these, at least, and an Ubuntu 18.xx server). As shown below, one of the two computers will be configured as the client while the other functions as the DNS server. DNS Server IP addresses in this example are Master 192.168.1.4 and the Slave is 192.168.1.5
How to configure Bind9 as A Caching DNS Server
These are the procedures you must follow in order to configure Bind9 DNS server into a Cashing DNS server:
First, install Bind on the DNS server
Set up an access control list, ACL
Create a label for the ACL group
Within the group, list the IP addresses that should be allowed to use this DNS Server
Having created an ACL list of clients that this Server will resolve queries for
The recursive service and other ACL specifications are configured—since there is no concern about authoritative-only server in this condition, the references used to describe the nature of the recursion and caching will define the effectiveness of the Bind9 DNS server
Once the configuration has been completed, save and close the file
In case you realize that you are not satisfied with the specifications in the configured Bind9 DNS server, you can restart and start the processes all over again.
How to configure Bind9 as A Forwarding DNS Server
Outlined below are the procedures required for configuring Bind9 as a Forwarding DNS Server.
You can start this process from where we stopped above, using the already configured Caching DNS Server.
Use the same ACL list to restrict the server only to a specific list of clients
Change the configuration so that the server will no longer handle and provide solutions to recursive queries
Set up caching servers to forward the queries to
Then create a block referred to as “forwarders”, which contain the IP addresses of recursive name servers that the requests or queries will be forwarded to
You can use Google’s public DNS server for this purpose; that is, as the cashing DNS servers
Configure that the server only forwards requests to the cashing DNS servers and does not attempt to resolve the queries itself
Once you have completed this configuration, safe and close the files
System Configurations
After setting up the servers as either a Cashing DNS server or a Forwarding DNS server, go ahead and tweak your devices’ operating systems. This step is essential because you should point the servers to the new Bind9 DNS servers so that problem resolution can take place within the system. If you neglected this step, it may be impossible for the device to point to the new nameservers and complete the required assignment of resolving or forwarding the queries.
[]
{"name":"WhoDat1 - DNS Propagation Tool","ads":{"one":"","two":"","three":"<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-9233126337026241\"\n crossorigin=\"anonymous\"><\/script>","four":"","five":"<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-9233126337026241\"\n crossorigin=\"anonymous\"><\/script>","six":""},"socials":[],"colors":{"primary":"#0155b5","secondary":"#2fc10a","tertiary":"#d2ab3e"},"global":{"css":" body,a,p,h1,h2,h3,h4,h5,h6{\n margin: 0 auto;\n }\n.mobile{\n\tdisplay:none;\n}\n.desktop{\ndisplay:flex;\n}\n .container{\n width: 1170px;\n }\n\n .titles{\n margin: 0 20px;\n }\n .titles #basic-addon2 {\n font-size: 18px;\n z-index: 10;\n}\n.titles .form-control{\nheight:auto;\n}\n.titles .btn_style, .btn_style_blue {\n color:#fff;\n font-size: 14px;\n font-weight: 600!important;\n background: linear-gradient(95.64deg,#1c3d9f 0%,#3096cb 100.33%);\n border-radius: 5px;\n border: none;\n outline: none;\n padding: 10px 23px;\n display: inline-flex;\n align-items: center;\n transition: all .3s ease-in-out;\n}\n.titles .btn_style, .btn_style_blue:hover{\n color: #fff;\n}\n.titles .input-group {\n position: relative;\n display: flex;\n flex-wrap: wrap;\n align-items: stretch;\n width: 100%;\n margin: 30px 0;\n}\n.titles .input_style, .textarea_style, .input_style:focus, .textarea_style:focus {\n background-color: #efefef!important;\n color: var(--clr-black)!important;\n font-size: 18px;\n font-weight: 600!important;\n padding: 18px 15px;\n border-radius: 8px;\n box-shadow: inset 1px 1px 6px rgba(0,0,0,.161)!important;\n outline: none;\n border: none;\n}\n .titles .button{\n text-align: center;\n }\n .titles .button a{\n border: none;\n background: #D0E7FF;\n color: #007AFF;\n border-radius: 20px;\n padding: 10px 40px;\n margin: 20px 7px 0;\n font-weight: 600;\n font-size: 14px;\n text-decoration: none;\n }\n .title{\n margin: 0 20px;\n }\n .title p{\n font-size: 14px;\n color: #666666;\n }\n .title .boxis{\n margin-top: 100px;\n }\n .title .box{\n display: flex;\n }\n.title .box a{\ntext-decoration:none;\ncolor:#000;\n}\n .title .box .d-flex img{\n width: 25%;\n background: rgb(201, 255, 201);\n padding: 5px;\n border-radius: 5px;\n border: 2px solid rgb(178, 211, 178);\n }\n .title .box .d-flex h5{\n margin: 0 15px;\n font-size: 16px;\n font-weight: 700;\n }\n .title .box p{\n margin: 10px 0 0 0;\n font-size: 12px;\n }\n .title .box1{\n margin: 10px;\n padding: 20px;\n width: 266PX;\n height: 115PX;\n }\n .title .box1 .d-flex{\n align-items: center;\n }\n .footerdiv p{\ntext-align:center;\nmargin-top:-150px;\n}\n @media(max-width:768px){\n.mobile{\n\t\tdisplay:block;\n\t}\n\t.desktop{\n\t\tdisplay:none;\n\t}\n .container{\n max-width: 100%;\npadding:0px;\n }\n.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {\n width: 100%;\n padding-right: 0!important;\n padding-left: 0!important;\n margin-right: auto;\n margin-left: auto;\n}\n .titles{\n margin: 0;\n }\n .titles ul{\n padding: 0;\n }\n ::placeholder{\n color: #fff;\n opacity: 1;\n }\n .titles .button a{\n padding: 10px 22px;\n }\n .title {\n margin: 0;\n }\n .title .boxis {\n margin-top: 20px;\n}\n .title .box{\n display: block;\n }\n .title .box1{\n margin: 15px 0;\n width: 100%;\nheight:auto;\n }\n.title .box .d-flex h5{\nfont-size:15px;\n}\n }","js":"","header":"<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no\">\n<meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\" \/>\n<link rel=\"canonical\" href=\"https:\/\/whodat1.com\" \/>\n<meta name=\"keywords\" content=\"DNS, WHOIS, Propagation, server, global, lookup, mx, checker\" \/>\n<meta name=\"description\" content=\"Check DNS Propagation worldwide. DNS Checker provides name server propagation check instantly. Changed nameservers so do a DNS lookup and check if DNS and nameservers have propagated.\" \/>\n<meta property=\"og:title\" content=\"WhoDat1 - DNS Propagation Tool\" \/>\n<meta property=\"og:description\" content=\"Check DNS Propagation worldwide. DNS Checker provides name server propagation check instantly. Recently changed DNS info, do a lookup and check if DNS and nameservers have propagated.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/whodat1.com\" \/>\n<meta property=\"og:image\" content=\"https:\/\/whodat1.com\/images\/logo.png\" \/>\n<meta property=\"og:site_name\" content=\"WhoDat1\" \/>\n<meta property='og:type' content='website' \/>","footer":"<!-- ws.metratics.com -->\n<script>\n var _paq = window._paq = window._paq || [];\n \/* tracker methods like \"setCustomDimension\" should be called before \"trackPageView\" *\/\n _paq.push(['trackPageView']);\n _paq.push(['enableLinkTracking']);\n (function() {\n var u=\"\/\/ws.metratics.com\/\";\n _paq.push(['setTrackerUrl', u+'matomo.php']);\n _paq.push(['setSiteId', '11']);\n var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];\n g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);\n })();\n<\/script>\n<!-- End Metratics Code -->\n\n<!-- Google tag (gtag.js) -->\n<script async src=\"https:\/\/www.googletagmanager.com\/gtag\/js?id=G-8R7G86WB8F\"><\/script>\n<script>\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n\n gtag('config', 'G-8R7G86WB8F');\n<\/script>\n\n<script async src=\"https:\/\/fundingchoicesmessages.google.com\/i\/pub-9233126337026241?ers=1\" nonce=\"MaGSS3hyI4nTxqSufLzSrQ\"><\/script><script nonce=\"MaGSS3hyI4nTxqSufLzSrQ\">(function() {function signalGooglefcPresent() {if (!window.frames['googlefcPresent']) {if (document.body) {const iframe = document.createElement('iframe'); iframe.style = 'width: 0; height: 0; border: none; z-index: -1000; left: -1000px; top: -1000px;'; iframe.style.display = 'none'; iframe.name = 'googlefcPresent'; document.body.appendChild(iframe);} else {setTimeout(signalGooglefcPresent, 0);}}}signalGooglefcPresent();})();<\/script>\n\n<div class=\"footerdiv\"><p>Copyright 2023 - WhoDat1.com<\/p><\/div>\n"},"cookie":{"enable":true,"text":"<p>By using this website you agree to our <a href=\"#\" target=\"_blank\">Cookie Policy<\/a><\/p>"},"font_family":"Poppins","text":{"above_map":"<h5>DNS Propagation Map by WhoDat1.com<\/h5><p><br><\/p><p>Have you recently made changes in your DNS records, switched web host, or started a new website? WhoDat1.com offers free DNS propagation check service to check Domain Name System records against a selected list of DNS servers in multiple regions worldwide. DNS propagation inquiries are important so that visitors are able to find web services, mail services, and more. The <span style=\"color: rgb(230, 0, 0);\">RED X<\/span> means the query has NOT been resolved, the <span style=\"color: rgb(0, 138, 0);\">GREEN Check Mark<\/span> the query has been resolved.<\/p>","below_map":"<p><span style=\"color: rgb(55, 65, 81);\">Our free online DNS Propagation Checker tool allows you to verify DNS propagation worldwide. Easily check DNS data for any hostname or domain from DNS servers across the globe.<\/span><\/p><p><span style=\"color: rgb(55, 65, 81);\">Our DNS Propagation Checker tool simplifies global DNS checks by offering a comprehensive list of over 100 global DNS servers. You can customize the DNS server for certain tools and perform DNS checks using different servers.<\/span><\/p><p><span style=\"color: rgb(55, 65, 81);\">To enhance understanding, our tool collects, parses, and displays DNS propagation results on a map. A green tick indicates that the requested DNS record is available on the DNS server, while a cross indicates its unavailability. The green tick also signifies that the DNS record matches the expected value set by the user, whereas a cross indicates a mismatch. To view individual DNS record propagation lookup on global DNS servers, simply select each DNS record.<\/span><\/p><p><br><\/p><h5><span style=\"color: rgb(55, 65, 81);\">\ufeffThe most common DNS record types include:<\/span><\/h5><ul><li>A record: Contains the IPv4 address information of the hostname.<\/li><li>AAAA record: Contains the IPv6 address information of the hostname.<\/li><li>CNAME record: Also known as an alias record, it redirects the sub-domain to its domain, such as redirecting <a href=\"https:\/\/www.whodat1.com\/\" target=\"_blank\" style=\"color: blue;\"><u>https:\/\/www.whodat1.com<\/u><\/a> to whodat1.com.<\/li><li>MX record: Provides information on where the domain's email should be routed and the priority of mail servers.<\/li><li>NS record: Offers information about the authoritative nameservers of a domain.<\/li><li>TXT record: Commonly used for other DNS record configurations like SPF, DKIM, or DMARC records.<\/li><\/ul><p><br><\/p><h5><span style=\"color: rgb(55, 65, 81);\">What is DNS propagation? <\/span><\/h5><p><span style=\"color: rgb(55, 65, 81);\">DNS propagation refers to the time it takes for DNS changes to propagate across the internet globally. This process can take up to 48 hours to complete worldwide. Use our <\/span><a href=\"https:\/\/whodat1.com\/\" target=\"_blank\" style=\"color: rgb(55, 65, 81);\">DNS Propagation Checker<\/a><span style=\"color: rgb(55, 65, 81);\"> to monitor and track the progress of your DNS changes.<\/span><\/p><p><br><\/p><h5><br><\/h5><p><br><\/p>","footer":"<p class=\"ql-align-center\"><br><\/p>"},"find_btn":{"text":"Find","color":"#F3DF00","text_color":"#000000"},"whois_btn":{"text":"Lookup","color":"#5CC9FF","text_color":"#000000"},"default_dns":"A","enable_logs":true,"show_dark_mode":true,"enable_ad_block_detector":false,"ad_block_detector_filename":"show_ad.js","map_fail_reloader":false,"timeout":5}