Change DNS to PowerDNS in cPanel

DNS is a very important part because the speed and efficiency of the DNS server will decide how fast your site will open when a user tries to visit your site. As it is an important thing, you get dedicated DNS to improve the speed and reliability of your website. So, In this tutorial, we will see how to change DNS to PowerDNS in cPanel.

PowerDNS is an open-source DNS server. It is used as an alternative to traditional BIND DNS. It works with many supporting backends from simple zone files to complex database setups, as well as some of the SQL platforms like MySQL, MariaDB, Oracle, and PostgreSQL. Power DNS offers better performance and requires only minimal memory. The power DNS uses a separate program as the resolving DNS server, called PowerDNS Recursor.

PowerDNS Authoritative and Recursor DNS Server

The Authoritative Nameservers contain the DNS records for your domain, and it answers all the queries with information from its records directly.

The Recursor DNS Servers are DNS servers that function in between the end-user and the authoritative DNS server. It is commonly known as Recursive or Resolving DNS Server. When the end-user submits a query, it reaches the recursive DNS server first, then searches for the record in the cache. If the records are not available in the cache, then the Recursor server sends the query to the authoritative nameserver to resolve the requested record details.

PowerDNS Caching

PowerDNS use ‘Packet Cache’ by default. It identifies similar queries and provides related answers, respectively. The cache interval setting for PowerDNS works on the TTL (Time To Live) setting, and the default interval is 20 seconds. In PowerDNS, the individual queries and also an entire packet can be cached.

Advantages of PowerDNS

PowerDNS provides a robust set for features when compared to BIND DNS servers. It also adds the performance and load-balancer configuration. The PowerDNS adds an extra layer of security for your domains DNS by supporting DNSSEC ( DNS Security Extensions). It provides a centralized control panel called ‘Poweradmin’, which has a variety of helpful management tools like Zone management, Cache flushing, Error log searching, etc.

There are some things you need to learn before actually updating the configuration in your cPanel. The first thing is:

DNS Cluster

A DNS cluster is a group of nameservers that share records, which allows you to physically separate nameservers that handle the DNS requests. You need to meet the following minimum requirements to configure your DNS cluster.

  1. The cluster should contain at least two servers.
  2. You need to have at least one webserver with cPanel and WHM installed.
  3. All machines in the cluster should have cPanel&WHM, or cPAnel DNSONLY version 11, or higher installed.

In the cPanel DNS cluster interface, you can add, view, and delete servers from your DNS cluster. Under the DNS cluster table, you can view the hostname, IP address, username, server type, DNS role, etc, for the servers.

You can set the DNS role of a server to any of the three based on your requirement:

  1. Standalone: In this method, the server fetches DNS records from the remote server. But it does not write records from the local server to the remote server.
  2. Synchronize: In this method, the records between the local and remote servers get synchronized.
  3. Write-only: This method writes the records from the local server to the remote server, but it does not write the query from the remote server to the local server.

Now, Let’s see how to actually add a new server to the cluster.

Add a New Server to the Cluster

You can perform the following steps to add a cPanel & WHM or cPanel DNSONLY server to the DNS cluster.

  1. From the “Backend Type menu”, select the server type.
  2. Click “Configure” to open the “cPanel DNS Remote Configuration” interface.
  3. Enter the hostname or IP address of the nameserver in the ‘DNS host’ text box to link in the Remote cPanel & WHM.
  4. Enter the WHM username details for the nameserver in the ‘Remote Server username’ text box.
  5. Add the remote access key or the nameserver’s API token hash in the ‘Remote server access hash’ text box. After the token creation, save the API token hash to a safe location on your workstation.
  6. Select “Setup Reverse Trust Relationship” for WHM to automatically configure the DNS cluster on the remote server
  7. Select the “Debug mode” to record the DNS clustering transactions in the ‘/usr/local/cPanel/logs/error_log’ file.
  8. Specify the DNS role from the “DNS Role” menu.
  9. Click “Submit” to save your settings.
  10. Use the “WHM’s Synchronize DNS Records” interface under the “DNS Functions” tab to synchronize the new DNS server with the DNS cluster manually.

So, this is how you can add a new server to the DNS cluster in cPanel. Now, let’s see how to delete a server from the DNS cluster.

Delete a Server from a DNS Cluster

Follow the instructions given below to remove a cPanel & WHM or cPanel DNSONLY server from a DNS cluster.

  1. Log in to the server that needs to be removed and navigate to the “DNS Cluster” interface.
  2. Select the option “Disable DNS Clustering” in the “Modify Cluster Status” text box.
  3. Click “Change”.
  4. Select the “Return to the Cluster Status” option.
  5. Log in to the servers that remain in the cluster and navigate to the “DNS Cluster” interface.
  6. Locate the server which you need to remove from the list of servers.
  7. Click the ‘X’ icon under the “Actions” heading.

When you return to the DNS Cluster interface, the server will no longer appear in the list of servers in the DNS cluster. So, this is how you can delete a DNS server from the cluster.

Update Server in DNS Cluster to Use PowerDNS

The new version 84 release in cPanel & WHM has added new features to it. One of the new features added in cPanel & WHM version 84 is the ability to change a DNS nameserver software to PowerDNS. To update the DNS server’s nameserver software to PowerDNS, you can follow the below steps:

  1. Login to WHM as the root user and navigate to the “Clusters” section.
  2. Select the ‘DNS cluster’ option under the “Cluster” section.
  3. Click the “Upgrade link” in the Status column of the servers in your DNS cluster table.

 

So this is how you change DNS to PowerDNS in cPanel.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What virtualization software do you use?

We use Parallels Virtuozzo Containers (PVC).

Why is my VPS constantly crashing?

There are several causes to why you may not be able to access your VPS. Some users often mistake...

What kind of support do you offer?

We offer Fully Managed VPS packages. For a list of items that we support, please refer to the...

What kind of software can I install on my VPS?

As you have full root access, you may install any compatible software on your VPS. However, any...

What is Virtuozzo?

Virtuozzo is the VPS technology created by SWsoft which allow us to create isolated VPS servers...