Forwarding BIND DNS Queries to Securd

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.

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:
  1. 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.
  1. 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:
  1. options {
  2.     forwarders {       
  3.       142.202.107.1;
  4.       142.202.107.2;
  5.     };
  6. };
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:
  1. sudo yum install bind
    Open the configuration file for Bind by running the command
  1. 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:
  1. options {
  2.     forwarders {       
  3.       142.202.107.1;
  4.       142.202.107.2;
  5.     };
  6. };
    Save the file and exit.
    Restart Bind by running the command
  1. 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.



    • Related Articles

    • Forward Windows DNS Server Queries to Securd

      Before Your Begin Forwarding DNS Queries You should have the DNS role installed. To install the DNS role, please see one of the following articles: https://docs.microsoft.com/en-us/windows-server/networking/dns/dns-top You should also have a Static ...
    • HTTP Log Forwarding DNS Logs

      Securd supports real-time log HTTP forwarding. Log forwarding is a real-time fork of your DNS log data to a target HTTP webhook endpoint. We do the hard work by enriching and annotating your logs with contextual information. DNS logs are known to ...
    • DNS Forwarding Amazon Route 53 with Resolver Rules

      Amazon Route 53 is a highly available and scalable DNS service offered by Amazon Web Services (AWS). One of the key features of Amazon Route 53 is the ability to forward DNS queries to specific IP addresses using Resolver Rules. In this article, we ...
    • Understanding your Securd usage metrics.

      In the Account -> Plan Usage section, you can see a real-time view of your Securd usage metrics. Viewing Aggregated Query Metrics This analytic shows the volume of DNS queries from all your companies based on your selected time frame. In this ...
    • Point Windows DNS to Securd

      Getting started with Windows (Agent and Agentless) Securd currently supports Windows 7, 8, 8.1, 10, Server 2008, Server 2012, Server 2016, and Server 2019 with .NET Framework 4.5+. Required Ports Securd endpoints will require access to connect to ...