Hostwinds Tutorials

Search results for:

Table of Contents

How to configure BIND

Configure BIND Server

Tags: Cloud Servers,  Bind 

How to configure BIND

BIND is fully open-source DNS software originally developed at the University of California at Berkeley in the 1980s and is widely used on various Unix-based operating systems. Its primary function is to facilitate the domain name to IP address conversion, making a domain name resolvable. Previously we have discussed how to install BIND on both CentOS 6 and  CentOS 7.

How to configure BIND

To configure BIND you'll need to login to your server via SSH. If you're not certain how to access your server via SSH, please review our guide, which covers connecting to your server via SSH: Connecting to Your Server via SSH. By default, BIND is set up only to listen locally. However, we can change this behavior using the BIND configuration file /etc/named.conf. Using your favorite text editor, comment out the following lines to enable BIND to listen across all IPs on the server.

Change to:

#listen-on port 53 {; };
#listen-on-v6 port 53 { :!! };

You should also add your own network to the allow-query field. In the example below, we will add, which will allow anyone utilizing that range to query the DNS associated with this server:

allow-query     { localhost;; };

Alternatively, you can allow anyone to query by making the following change:

allow-query     { any; };

If you are using a slave server and transfer all zones to the slave server, you can add the following line. However, if you'll not be using a slave server, you do not need to do this. Please ensure that you replace the text SLAVE_SERVER_IP_HERE with the IP address of the slave server.

allow-transfer { SLAVE_SERVER_IP_HERE; };

You should also turn off recursion to ensure that your server cannot be used to perform a reflection DDoS attack.

recursion no;

Written by Michael Brower  /  June 22, 2017