This is an old revision of the document!

Again, please make sure you install from within Webmin (Unused Modules) then Refresh Modules to move the BIND link under Servers. This is the default screen. The newly installed Webmin BIND module

In the upper left corner the icon that looks like a gear is the Module Config. In the upper right corner the icon looks like a play button starts the service. Before we start, however, lets look at the home of bind9. The location and content of BIND's home

Those which are going to be our concern are discussed below. The db.root file is a special case, where the change from the InterNIC TLDs to the OpenNIC TLDS actually happen. For the record, the content of the db.root file, at the time of writing this, is listed here. On OpenNIC Tier-1 servers the file should read something like below:

;       This file holds the information ... 
.                      3600000      NS    NS2.OPENNIC.GLUE.
NS2.OPENNIC.GLUE.      3600000      A
NS2.OPENNIC.GLUE.      3600000      AAAA  2001:470:4212:10:0:100:53:10
.                      3600000      NS    NS4.OPENNIC.GLUE.
NS4.OPENNIC.GLUE.      3600000      A
.                      3600000      NS    NS5.OPENNIC.GLUE.
NS5.OPENNIC.GLUE.      3600000      A
NS5.OPENNIC.GLUE.      3600000      AAAA  2a02:990:219:1:ba:1337:cafe:3
.                      3600000      NS    NS6.OPENNIC.GLUE.
NS6.OPENNIC.GLUE.      3600000      A
.                      3600000      NS    NS8.OPENNIC.GLUE.
NS8.OPENNIC.GLUE.      3600000      A
NS8.OPENNIC.GLUE.      3600000      AAAA  2a01:4f8:141:4281::999
.                      3600000      NS    NS9.OPENNIC.GLUE.
NS9.OPENNIC.GLUE.      3600000      A
.                       3600000      NS    NS10.OPENNIC.GLUE.
NS10.OPENNIC.GLUE.      3600000      A
NS10.OPENNIC.GLUE.      3600000      AAAA  2001:470:1f04:ebf::2
.                       3600000      NS    NS11.OPENNIC.GLUE.
NS11.OPENNIC.GLUE.      3600000      A
.                       3600000      NS    NS12.OPENNIC.GLUE.
NS12.OPENNIC.GLUE.      3600000      A
.                       3600000      NS    NS13.OPENNIC.GLUE.
NS13.OPENNIC.GLUE.      3600000      A
NS13.OPENNIC.GLUE.      3600000      AAAA  2a01:4f8:192:43a5::2

The content of this file not supposed to be changed by hand, and a new BIND instance has it as:

// prime the server with knowledge of the root servers
zone "." {
	type hint;
	file "/etc/bind/db.root";

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
	type master;
	file "/etc/bind/db.local";

zone "" {
	type master;
	file "/etc/bind/db.127";

zone "" {
	type master;
	file "/etc/bind/db.0";

zone "" {
	type master;
	file "/etc/bind/db.255";

As you see, the db.root file is included here, and the rest of the file content has to do with proper networking setup on the host. Later while adding / removing name servers the two most common directives added by Webmin going to be “also-notify” and “allow-transfer”.

This file should not be edited by hand, and it is not edited by Webmin:

// This is the primary configuration file for the BIND DNS server named.
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the 
// structure of BIND configuration files in Debian, *BEFORE* you customize 
// this configuration file.
// If you are just adding zones, please do that in /etc/bind/named.conf.local

include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";

The file named.conf.default-zones includes db.root, and the file named.conf.options holds the BIND daemon's operating parameters.

The file named.conf.local going to hold our master and slave zones (called domains). Before we start up lets archive /etc/bind to save the original configuration.

The difference between backup and archive is the location where they are stored - one is on-line, but going to be lost when the host is lost. The other is off-line, but remains available. Linode provides a manual snapshot and three automated backups which are rotated - for the entire VPS. Webmin provides manual and scheduled backup on select part of the file system, which you may also download / push off-line. The screenshot shows the Webmin tar and cron interface. Webmin Filesystem Backup with scheduling

DNS is all about redundancy, so configuring email notification about backup - or any other status - is rather pointless. If your instance goes down for any reason it may stay down until you come around to visit and check on it (once a week, maybe).

Once you create and RESTORE the backup, and manage to download the tar file, replace the content in db.root as shown above. Then hit “play” on the upper right to start BIND.

Setup RNDC

This is going to fail if, for any reason, the loop-back interface ( is blocked by the provider. There might be other reasons, but in most cases you are going to see a success message if you visit the same screen the second time. On the DNS Keys screen you should see the rndc-key as well.

Zone Defaults

This configures the default options for master zones, and the defaults should be set as shown:

  • /wiki/data/attic/opennic/setup/webminbind/debian9u0webmin1u9base.1584556264.txt.gz
  • Last modified: 2 years ago
  • by fouroh-llc