{"id":10857,"date":"2021-11-07T10:40:55","date_gmt":"2021-11-07T07:40:55","guid":{"rendered":"https:\/\/kifarunix.com\/?p=10857"},"modified":"2024-03-18T08:14:31","modified_gmt":"2024-03-18T05:14:31","slug":"configure-bind-dns-server-using-webmin-on-debian-11","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/configure-bind-dns-server-using-webmin-on-debian-11\/","title":{"rendered":"Configure BIND DNS Server using Webmin on Debian 11"},"content":{"rendered":"\n<p>Welcome to out tutorial on how to configure Bind DNS server using Webmin on Debian 11.&nbsp;<a rel=\"noreferrer noopener\" href=\"http:\/\/www.webmin.com\/\" target=\"_blank\">Webmin<\/a>&nbsp;is a web-based control panel that allows system administrators to administer system administration tasks from web user interface.<\/p>\n\n\n\n<p>You can follow the link below to install Webmin on Debian 11.<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-webmin-on-debian-11\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install Webmin on Debian 11<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Configuring BIND DNS Server using Webmin on Debian<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Login to Webmin as Administrative User<\/h3>\n\n\n\n<p>All the installations and configurations will be run as root in this guide. Therefore, login as a root user or a user with sudo rights.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1486\" height=\"658\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/webmin-login-ui.png\" alt=\"\" class=\"wp-image-10862\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/webmin-login-ui.png?v=1636184467 1486w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/webmin-login-ui-768x340.png?v=1636184467 768w\" sizes=\"(max-width: 1486px) 100vw, 1486px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Run System Update<\/h3>\n\n\n\n<p>Launch the terminal by pressing&nbsp;<strong>Alt+k<\/strong>. Next, run system package update command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update -y<\/code><\/pre>\n\n\n\n<p>Close the terminal once the update is done.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install Bind DNS Server Module on Debian 11<\/h3>\n\n\n\n<p>Install Bind DNS server module by navigating to&nbsp;<strong>Dashboard &gt; Un-used Modules&nbsp;<\/strong>&gt;&nbsp;<strong>BIND DNS Server &gt; Install Now<\/strong>. This will start to build Bind package and required dependencies for installation.<\/p>\n\n\n\n<p>Once successfully build, click&nbsp;<strong>Install Now<\/strong>&nbsp;to install the Bind packages and all required dependencies.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1890\" height=\"713\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/install-bind-progress.png\" alt=\"\" class=\"wp-image-10867\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/install-bind-progress.png?v=1636269593 1890w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/install-bind-progress-768x290.png?v=1636269593 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/install-bind-progress-1536x579.png?v=1636269593 1536w\" sizes=\"(max-width: 1890px) 100vw, 1890px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Configuring BIND DNS Server Using Webmin<\/h3>\n\n\n\n<p>Once the installation is complete, click&nbsp;<strong>Return to BIND DNS Server<\/strong>&nbsp;below the screen to go back to BIND DNS Server configuration interface.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1901\" height=\"827\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/bind-dns-server.png\" alt=\"\" class=\"wp-image-10868\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/bind-dns-server.png?v=1636269729 1901w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/bind-dns-server-768x334.png?v=1636269729 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/bind-dns-server-1536x668.png?v=1636269729 1536w\" sizes=\"(max-width: 1901px) 100vw, 1901px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Configure Access Control List<\/h4>\n\n\n\n<p>To begin with, create an access control list for your DNS server.<\/p>\n\n\n\n<p>ACLs allows you to specify the IP addresses or networks to deny or allow to query the DNS server.<\/p>\n\n\n\n<p>To create the ACL:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click&nbsp;<strong>Access Control Lists<\/strong>, as higlighted in the screenshot above.<\/li>\n\n\n\n<li>Set the name of the ACL<\/li>\n\n\n\n<li>Add the IP addresses or the networks to allow to query your DNS server.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1899\" height=\"486\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/bind-dns-acls.png\" alt=\"\" class=\"wp-image-10869\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/bind-dns-acls.png?v=1636269844 1899w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/bind-dns-acls-768x197.png?v=1636269844 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/bind-dns-acls-1536x393.png?v=1636269844 1536w\" sizes=\"(max-width: 1899px) 100vw, 1899px\" \/><\/figure>\n\n\n\n<p>For example, we created an ACL called&nbsp;<code>allowed<\/code>&nbsp;to define the networks (<code>192.168.[57-60].0\/24<\/code>) of the hosts allowed to query our DNS server. <\/p>\n\n\n\n<p>Click <strong>Save<\/strong> and <strong>Return to zone list.<\/strong><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Define global server configuration options<\/h4>\n\n\n\n<p>Next, you need to configure BIND global configuration options.<\/p>\n\n\n\n<p>The&nbsp;<code>options<\/code>&nbsp;statement is used to set up global options to be used by&nbsp;BIND such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>define the hosts that are allowed to ask ordinary DNS questions<\/li>\n\n\n\n<li>specify the location of the&nbsp;<code>named<\/code>&nbsp;working directory<\/li>\n\n\n\n<li>the types of queries allowed<\/li>\n\n\n\n<li>specify which hosts are allowed to make recursive queries through the DNS server<\/li>\n<\/ul>\n\n\n\n<p>These configurations can be made on the&nbsp;<code>\/etc\/bind\/named.conf.options<\/code>&nbsp;configuration file.<\/p>\n\n\n\n<p>From&nbsp;<strong>BIND DNS Server<\/strong>&nbsp;interface:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click&nbsp;<strong>Edit Config File<\/strong>. By default, you will see the&nbsp;<code>\/etc\/bind\/named.conf<\/code>&nbsp;configuration file selected.<\/li>\n\n\n\n<li>Click on the drop down menu and select the&nbsp;<code>\/etc\/bind\/named.conf.options<\/code>&nbsp;configuration file.<\/li>\n\n\n\n<li>Make the changes on the file as per your environment setup. Here is our sample configuration file;<\/li>\n<\/ul>\n\n\n\n<pre class=\"scroll-box\"><code>options {\n\tdirectory \"\/var\/cache\/bind\";\n    \n    recursion yes;\n    allow-recursion { localhost; allowed; };\n    listen-on port 53 { localhost; 192.168.58.22; };\n    allow-query { localhost; allowed; };\n    allow-transfer { none; };\n\n\tforwarders {\n    \t\t192.168.58.1;\n            8.8.8.8;\n    };\n\n\tdnssec-validation auto;\n    auth-nxdomain no;\n\tlisten-on-v6 { none; };\n};\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Also see screenshot below;<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1556\" height=\"823\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/bind-named-options.png\" alt=\"\" class=\"wp-image-10870\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/bind-named-options.png?v=1636269956 1556w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/bind-named-options-768x406.png?v=1636269956 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/bind-named-options-1536x812.png?v=1636269956 1536w\" sizes=\"(max-width: 1556px) 100vw, 1556px\" \/><\/figure>\n\n\n\n<p>Click Save and close to return to zone list.<\/p>\n\n\n\n<p>Some of the configuration options used above are;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>recursion<\/strong>&nbsp;\u2013 Specifies whether to act as a recursive server.<\/li>\n\n\n\n<li><strong>allow-recursion<\/strong>&nbsp;\u2013 Defines hosts to allow recursive queries from.<\/li>\n\n\n\n<li><strong>listen-on<\/strong>&nbsp;\u2013 Specifies the&nbsp;<code>IPv4<\/code>&nbsp;network interface on which to listen for queries.<\/li>\n\n\n\n<li><strong>allow-query<\/strong>&nbsp;\u2013 Specifies which hosts are allowed to query the nameserver for authoritative resource records.<\/li>\n\n\n\n<li><strong>allow-transfer<\/strong>&nbsp;\u2013 Specifies which secondary servers are allowed to request a transfer of the zone\u2019s information.&nbsp;<\/li>\n\n\n\n<li><strong>forwarders<\/strong>&nbsp;\u2013 Defines one or more IP addresses of name servers to query.<\/li>\n\n\n\n<li><strong>dnssec-validation<\/strong>&nbsp;\u2013 Specifies whether to prove that resource records are authentic through DNSSEC. The default option is&nbsp;<code>yes<\/code>.<\/li>\n\n\n\n<li><strong>auth-nxdomain<\/strong>&nbsp;\u2013 defines whether the server should answer authoritatively.<\/li>\n\n\n\n<li><strong>listen-on-v6<\/strong>&nbsp;\u2013 Specifies the&nbsp;<code>IPv6<\/code>&nbsp;network interface on which to listen for queries.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Validate the Configuration Options<\/h3>\n\n\n\n<p>Next, you need to validate the configuration options made in the file above by clicking on&nbsp;<strong>Check BIND Config<\/strong>&nbsp;under the Bind DNS server global server options.<\/p>\n\n\n\n<p>If there is no syntax error with the configuration file, you will see such a message as:<\/p>\n\n\n\n<p><strong>No errors were found in the BIND configuration file&nbsp;\/etc\/bind\/named.conf&nbsp;or referenced zone files<\/strong>.<\/p>\n\n\n\n<p>Click <strong>Return to zone list<\/strong>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Create BIND DNS Server Master Zone Statements<\/h4>\n\n\n\n<p>Next, you need to create the master forward and reverse zone statements.<\/p>\n\n\n\n<p>Click&nbsp;<strong>Create master zone<\/strong>&nbsp;on the BIND DNS server interface.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1556\" height=\"812\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/master-zone.png\" alt=\"\" class=\"wp-image-10871\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/master-zone.png?v=1636270011 1556w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/master-zone-768x401.png?v=1636270011 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/master-zone-1536x802.png?v=1636270011 1536w\" sizes=\"(max-width: 1556px) 100vw, 1556px\" \/><\/figure>\n\n\n\n<p>This will open up a wizard where you can define the zone statement details.<\/p>\n\n\n\n<p>To begin with;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Select the Zone type, <strong>Forward: Names to Addresses<\/strong> to create the forward zone statement.<\/li>\n\n\n\n<li>Enter the Domain name<\/li>\n\n\n\n<li>Automatic Records file<\/li>\n\n\n\n<li>Master DNS server FQDN, Add NS record<\/li>\n\n\n\n<li>Email address. Note, the @ in the email address will be converted to dot (.) in SOA records.<\/li>\n\n\n\n<li>Use zone template, we choose No.<\/li>\n\n\n\n<li>Add reverses fro template addresses<\/li>\n\n\n\n<li>Refresh time, Transfer retry time, Expiry time, cache time.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1580\" height=\"620\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/master-forward-zone.png\" alt=\"\" class=\"wp-image-10872\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/master-forward-zone.png?v=1636270048 1580w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/master-forward-zone-768x301.png?v=1636270048 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/master-forward-zone-1536x603.png?v=1636270048 1536w\" sizes=\"(max-width: 1580px) 100vw, 1580px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click&nbsp;<strong>Create<\/strong>&nbsp;to create the master forward zone statement.<\/li>\n\n\n\n<li>Click&nbsp;<strong>Return to zone list<\/strong><\/li>\n<\/ul>\n\n\n\n<p>Next, create reverse zone statement by &nbsp;&gt;&nbsp;<strong>Create master zone<\/strong>. This time round, select&nbsp;<strong>Reverse: Addresses to Names<\/strong>.<\/p>\n\n\n\n<p>Note how the IP address is set.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1568\" height=\"613\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/master-reverse-zone.png\" alt=\"\" class=\"wp-image-10873\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/master-reverse-zone.png?v=1636270077 1568w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/master-reverse-zone-768x300.png?v=1636270077 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/master-reverse-zone-1536x600.png?v=1636270077 1536w\" sizes=\"(max-width: 1568px) 100vw, 1568px\" \/><\/figure>\n\n\n\n<p>Click&nbsp;<strong>Create<\/strong>&nbsp;to create the master reverse zone statement.<\/p>\n\n\n\n<p>Next, click <strong>Return to Zone list<\/strong>.<\/p>\n\n\n\n<p>If you have other Networks, ensure you create the reverse records for those networks. In this example, we have other networks, 192.168.60.0\/24, 192.168.59.0\/24.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1564\" height=\"756\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/master-zones.png\" alt=\"\" class=\"wp-image-10874\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/master-zones.png?v=1636270215 1564w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/master-zones-768x371.png?v=1636270215 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/master-zones-1536x742.png?v=1636270215 1536w\" sizes=\"(max-width: 1564px) 100vw, 1564px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Setup the DNS A Records<\/h4>\n\n\n\n<p>Under existing DNS Zones, click your master forward zone, see example highlighted.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1545\" height=\"766\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/create-a-records.png\" alt=\"\" class=\"wp-image-10875\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/create-a-records.png?v=1636270264 1545w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/create-a-records-768x381.png?v=1636270264 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/create-a-records-1536x762.png?v=1636270264 1536w\" sizes=\"(max-width: 1545px) 100vw, 1545px\" \/><\/figure>\n\n\n\n<p>Click&nbsp;<strong>Addresses<\/strong>.<\/p>\n\n\n\n<p>To begin with, set the A record for your DNS server.<\/p>\n\n\n\n<p>Click&nbsp;<strong>Create<\/strong>&nbsp;to set the DNS server address A record.<\/p>\n\n\n\n<p>Next, you can add more addresses for other hosts.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Name, without the domain part<\/li>\n\n\n\n<li>IP address<\/li>\n\n\n\n<li>Update reverse records<\/li>\n\n\n\n<li>Click <strong>Create<\/strong>.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1563\" height=\"733\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/add-a-records.png\" alt=\"\" class=\"wp-image-10876\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/add-a-records.png?v=1636270447 1563w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/add-a-records-768x360.png?v=1636270447 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/add-a-records-1536x720.png?v=1636270447 1536w\" sizes=\"(max-width: 1563px) 100vw, 1563px\" \/><\/figure>\n\n\n\n<p>Once done, click&nbsp;<strong>Return to records type<\/strong>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Create Name Server (NS) Records<\/h4>\n\n\n\n<p>Click&nbsp;<strong>Name Server<\/strong>&nbsp;on Master zone configuration page.<\/p>\n\n\n\n<p>If the name server record is not already set:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>for the&nbsp;<strong>zone name<\/strong>, enter the your domain for example,&nbsp;<strong>kifarunix-demo.com<\/strong><\/li>\n\n\n\n<li>for Name Server enter the FQDN of the DNS server, e.g&nbsp;<strong>ns1.kifarunix-demo.com<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1558\" height=\"648\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/ns-records.png\" alt=\"\" class=\"wp-image-10877\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/ns-records.png?v=1636270504 1558w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/ns-records-768x319.png?v=1636270504 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/ns-records-1536x639.png?v=1636270504 1536w\" sizes=\"(max-width: 1558px) 100vw, 1558px\" \/><\/figure>\n\n\n\n<p>Click&nbsp;<strong>Create<\/strong>&nbsp;to add the name server records. Once done, click&nbsp;<strong>Return to zone list<\/strong><\/p>\n\n\n\n<p>You should now have master zones set (forward and reverse zones) with each having defined A records and PTR records respectively.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Verify Zone Configuration Syntax<\/h4>\n\n\n\n<p>To check the validity of the zone configuration, click on&nbsp;<strong>Check BIND config<\/strong>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"restarting-bind\">Running BIND<\/h4>\n\n\n\n<p>Click on the refresh button to apply the configurations.<\/p>\n\n\n\n<p>Next, restart BIND on the web interface, stop and start it by clicking the stop and play buttons on the top right corner of the interface. See the highlighted section in the screenshot below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1562\" height=\"575\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/apply-configs.png\" alt=\"\" class=\"wp-image-10878\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/apply-configs.png?v=1636270572 1562w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/apply-configs-768x283.png?v=1636270572 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/11\/apply-configs-1536x565.png?v=1636270572 1536w\" sizes=\"(max-width: 1562px) 100vw, 1562px\" \/><\/figure>\n\n\n\n<p>If UFW is running, simply open the terminal (<strong>Alt+k)<\/strong>&nbsp;and run the command below to allow BIND.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ufw allow Bind9<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Verify if BIND is Working<\/h3>\n\n\n\n<p>To check if our DNS is working;<\/p>\n\n\n\n<p>Try to resolve the DNS server hostnames using dig command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dig ns1.kifarunix-demo.com @192.168.58.22<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>\n; <<>> DiG 9.16.1-Ubuntu <<>> ns1.kifarunix-demo.com @192.168.58.22\n;; global options: +cmd\n;; Got answer:\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 715\n;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1\n\n;; OPT PSEUDOSECTION:\n; EDNS: version: 0, flags:; udp: 1232\n; COOKIE: 4d8110c8fc7ed2cd01000000618774210bd99733b3045675 (good)\n;; QUESTION SECTION:\n;ns1.kifarunix-demo.com.\t\tIN\tA\n\n;; ANSWER SECTION:\nns1.kifarunix-demo.com.\t38400\tIN\tA\t192.168.58.22\n\n;; Query time: 0 msec\n;; SERVER: 192.168.58.22#53(192.168.58.22)\n;; WHEN: Sun Nov 07 09:37:22 EAT 2021\n;; MSG SIZE  rcvd: 95\n\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>dig ns1.kifarunix-demo.com @192.168.58.22 +short<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>192.168.58.22<\/code><\/pre>\n\n\n\n<p>Perform Reverse Lookup (PTR Records)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dig -x 192.168.58.22 @192.168.58.22<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>\n; <<>> DiG 9.16.1-Ubuntu <<>> -x 192.168.58.22 @192.168.58.22\n;; global options: +cmd\n;; Got answer:\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46718\n;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1\n\n;; OPT PSEUDOSECTION:\n; EDNS: version: 0, flags:; udp: 1232\n; COOKIE: c6927d40a2a20bb001000000618774c74e25a3ed4b260fbe (good)\n;; QUESTION SECTION:\n;22.58.168.192.in-addr.arpa.\tIN\tPTR\n\n;; ANSWER SECTION:\n22.58.168.192.in-addr.arpa. 38400 IN\tPTR\tns1.kifarunix-demo.com.\n\n;; Query time: 0 msec\n;; SERVER: 192.168.58.22#53(192.168.58.22)\n;; WHEN: Sun Nov 07 09:40:08 EAT 2021\n;; MSG SIZE  rcvd: 119\n<\/code><\/pre>\n\n\n\n<p>using nslookup command;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nslookup debian11.kifarunix-demo.com 192.168.58.22<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Server:\t\t192.168.58.22\nAddress:\t192.168.58.22#53\n\nName:\tdebian11.kifarunix-demo.com\n<strong>Address: 192.168.59.14<\/strong><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>nslookup 192.168.59.14 192.168.58.22<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>14.59.168.192.in-addr.arpa\tname = debian11.kifarunix-demo.com.<\/code><\/pre>\n\n\n\n<p>Using host command;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>host gitlab.kifarunix-demo.com 192.168.58.22<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Using domain server:\nName: 192.168.58.22\nAddress: 192.168.58.22#53\nAliases: \n\ngitlab.kifarunix-demo.com has address 192.168.60.11<\/code><\/pre>\n\n\n\n<p>Reverse Lookup of DNS Server hostname.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>host 192.168.60.11 192.168.58.22<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Using domain server:\nName: 192.168.58.22\nAddress: 192.168.58.22#53\nAliases: \n\n11.60.168.192.in-addr.arpa domain name pointer gitlab.kifarunix-demo.com.<\/code><\/pre>\n\n\n\n<p>Well, there you go. You have learnt how to Setup Bind DNS Using Webmin on Debian 11.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Related Tutorials<\/h3>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-and-setup-bind-dns-server-on-rocky-linux-8\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install and Setup BIND DNS server on Rocky Linux 8<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/setup-caching-only-dns-server-using-bind9-on-ubuntu-20-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">Setup Caching-Only DNS Server using BIND9 on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/configure-bind-dns-server-using-webmin-on-centos-8\/\" target=\"_blank\" rel=\"noreferrer noopener\">Configure BIND DNS Server using Webmin on CentOS 8<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to out tutorial on how to configure Bind DNS server using Webmin on Debian 11.&nbsp;Webmin&nbsp;is a web-based control panel that allows system administrators to<\/p>\n","protected":false},"author":1,"featured_media":9314,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,979,971],"tags":[980,4254,4252,3958,4253,4255,973,4251,268],"class_list":["post-10857","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","category-bind","category-dns","tag-bind-9","tag-configure-bind-dns-server-using-webmin-on-debian-11","tag-configure-dns-server-debian-11","tag-debian-11","tag-debian-11-bind-dns-server","tag-debian-11-webmin-dns-server","tag-dns","tag-install-dns-server-on-debian-11","tag-webmin","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/10857"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=10857"}],"version-history":[{"count":6,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/10857\/revisions"}],"predecessor-version":[{"id":21617,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/10857\/revisions\/21617"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/9314"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=10857"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=10857"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=10857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}