Forwarding BIND DNS Queries to Securd

DNS forwarding is a useful technique for distributing the workload of handling DNS queries across multiple servers and improving the efficiency of the overall system. In this article, we will look at how to configure DNS forwarding on Bind in Ubuntu and CentOS.

📘

Configure a Static IP Site to use Securd first. Once you have performed this function, continue.

Configuring DNS Forwarding on Bind in Ubuntu

First, make sure that you have the Bind DNS server package installed on your Ubuntu system. You can install it by running the following command:

sudo apt-get install bind9

Next, open the Bind configuration file using your preferred text editor. The file is typically located at /etc/bind/named.conf.options.

sudo nano /etc/bind/named.conf.options

Within the file, you will need to add the forwarders option to the options block. This option specifies the IP addresses of the DNS servers that you want to forward queries to. For example:

options {
    forwarders {       
      142.202.107.1;
      142.202.107.2;
    };
};

Save the file and exit the text editor.
Restart the Bind service to apply the changes:

Configuring DNS Forwarding on Bind in CentOS

Install Bind by running the command:

sudo yum install bind

Open the configuration file for Bind by running the command

sudo nano /etc/named.conf

In the file, locate the "options" section and add the IP addresses of the DNS servers that you want to forward queries to, separated by a semicolon. For example:

options { forwarders { 142.202.107.1; 142.202.107.2; }; };

Save the file and exit.

Restart Bind by running the command

sudo systemctl restart named

That's it! You have successfully configured DNS forwarding to Securd on Bind in Ubuntu and CentOS. Remember to keep your DNS server up to date by regularly updating your package manager's repository list. This will ensure that you have the latest security updates and features for Bind.


Other DNS Servers: Configure DNS Forwarding for the Top 10 DNS Servers