The best way to install a DNS Server on any of the cloud platforms is to use our ready to deploy BIND9 DNS Server in the cloud marketplaces. Check the links below to deploy BIND9 DNS Server into your cloud environment. Also comes pre installed with Webmin, allowing you to manage the server via a web portal, making it easier to manage and configure the server via a GUI.
Once your DNS server has been deployed, the following links explain how to connect to a Linux VM:
- How to connect to a Linux VM on Azure
- How to connect to a Linux VM on AWS
- How to connect to a Linux VM on GCP
Once connected and logged in, the following section explains how to start using BIND9 DNS / Webmin.
The server has Webmin installed, allowing you to manage the server via a web portal.
First you need to update the miniserv.conf file
From your SSH terminal run the following command:
sudo nano /etc/webmin/miniserv.conf
Then scroll down to ‘SSL=1‘ and change it to ‘SSL=0‘
This is so you dont receive SSL errors when accessing the Webmin portal.
Press Ctrl+O to save and then Ctrl+X to exit the config file
Run the following command to restart the Webmin services
sudo /etc/init.d/webmin restart
Now access the following URLs to access the Webmin portal using the servers IP:
Login using the root user and password.
Using BIND9 DNS Server
You can manage the DNS server via Webmin or via your SSH terminal.
Manage DNS via Webmin
If you login via Webmin you can manage DNS as per the following screenshot:
Browse to the Servers tab – BIND DNS server.
Click on ‘Create Master Zone’ if you want to create your first DNS Zone
Under Domain name / Network add the name of this DNS zone you want to create. Add email address in the email address filed and then hit ‘Create’
When you return to the zone list you will see the different options on creating DNS entries. Under ‘Address’ is where you would normally add entries.
When you have finished, press the apply changes button on the top right.
DNS Firewall Ports
The following firewall ports are enabled in this solution and are required:
- TCP 53
- UDP 53
- TCP 10000
If you are using any of the cloud security groups and need to change / add ports refer to the following guides:
To setup AWS firewall rules refer to – AWS Security Groups
To setup Azure firewall rules refer to – Azure Network Security Groups
To setup Google GCP firewall rules refer to – Creating GCP Firewalls
Support / Documentation
If you are experiencing any issues with installing this DNS solution in your environment please contact us or leave a comment below.
Further documentation on using BIND9 DNS can be found on the following link: