How to setup Linux DNS BIND9 Server on Azure/AWS/GCP

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.

Getting Started

 

Once your DNS server has been deployed, the following links explain how to connect to a Linux VM:

 

 

Once connected and logged in, the following section explains how to start using BIND9 DNS / Webmin. 

Access 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

sudo-nano-miniserv

 

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.

webmin-ssl-change

 

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:

 

http://PublicIP:10000

Or

http://PrivateIP:10000

 

Login using the root user and password.

 

Webmin-login

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.

BIND9-DNS

 

Click on ‘Create Master Zone’ if you want to create your first DNS Zone

BIND9-DNS-Master-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’

create-master-zone

 

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.  

create A dns record

 

When you have finished, press the apply changes button on the top right.

Master-DNS-Zone-Apply-Changes

 

 

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:

 

https://bind9.readthedocs.io/en/latest/

Andrew Fitzgerald

Cloud Solution Architect. Helping customers transform their business to the cloud. 20 years experience working in complex infrastructure environments and a Microsoft Certified Solutions Expert on everything Cloud

No Comments

Post a Comment

Comment
Name
Email
Website