How to install and configure Bind DNS on Webmin
To install and configure Bind DNS on Webmin
Webmin is a Control panel application similar to CPanel which is available for open source, and it can be installed on Unix-Linux like operating systems. Webmin has many features for managing a linux server via Web browser, we can also configure a Bind DNS server through webmin for running a DNS server.
Installing Webmin
You can install Webmin on your server after that you can follow the below steps to configure Bind DNS. Once Webmin is installed you can access it through web browser using the URL for example https://192.168.7.223:10000. You can login with your server credentials.
You will be taken to your Webmin Dashboard and it looks lile the one displayed in the following image.
In that dashboard, you need to go to Un-used Modules in the left panel and choose BIND DNS Server.
You need to install Bind DNS Server. The link to install it is given in that page. Click on it.
The installation procedure has started. Once it is done, click on Return to BIND DNS server.
Now Bind is installed, now let’ s configure master zone for the domain webmin.example.com.
For that, you need to edit your zone details.
After that, you should configure A (Address) record.
Then create an Address Record. Type your hostname and ip address for your domain in that.
Once it is done, click on the Return to record types.
After that, you need to create Name Server Entry. So choose that icon from your Master Zone.
You need to fill the details respective with your domain. Give them all and click on the Create button.
Go back to your Master Zone and to your Zone list.
Now we need to edit Bind DNS Configuration, for that you can use terminal or just choose Edit config with this.
In Bind configuration you need to type the ip address of the DNS server on listen-on-port tag and also you need to type allow-query entry for any particular ip address or particular network.
For example
listen-on-port 53 { 127.0.0.1 192.168.7.223 }
allow-query { localhost 192.168.7.0/24 }
Now type the above entry in your configuration and save the file.
Now restart the Bind Service from command line or from browser by using the control buttons on top right side corner as shown in following image.
Now, make firewall settings. So, go to Networking in the left panel and choose FirewallD.
You should now add the allowed service.
Choose DNS service in drop down menu and click Create button to create an allowed service.
Also, you need to apply changes. So, click on the Apply Configuration button.
Now BIND DNS is configured and running you, can check it by adding the DNS IP address to your network interface, and then you can check if internet service is working or not. You can query for the respective domain that you have created in bind dns webmin.example.com via nslookup command.
Now you can see the nslookup command give the answer (IP address) for the query (webmin.example.com) domain. With this, the configuration on BIND DNS comes to an end.
1. When a visitor enters a URL in a browser, the computer queries the nameserver for the IP address that corresponds to the domain name that the visitor specified.
2. After the visitor's computer has this information, the browser can access the website that you requested.