How To Install PowerDNS on CentOS 7

Install PowerDNS on CentOS 7

In this tutorial we will show you how to install and configuration of PowerDNS on CentOS 7 server. For those of you who didn’t know, PowerDNS is a MySQL-based DNS server, written in C++ and licensed under the GPL. PowerDNS can be managed through a web interface (PowerAdmin). Unlike Bind, PowerDNS can be setup using a multitude of backends such as Bind Zone Files, or various Databases.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation PowerDNS on a CentOS 7 server.

Install PowerDNS on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing PowerDNS and backend.

First, you need to enable EPEL repository and all required packages on your system:

Enable PowerDNS on boot and start PowerDNS server:

Step 3. Configuring MariaDB.

By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB.

Step 4. Create PowerDNS Database and User in MariaDB.

Login as a MariaDB root and create a new database and tables:

Step 5. Configure PowerDNS.

Open the /etc/pdns/pdns.conf file and add the following lines:

Finally, restart the Power DNS service:

Step 6. Configure Recursor.

Open the /etc/pdns-recursor/recursor.conf file and add the following lines:

Start the Recursor service:

Test Recursor:

Congratulation’s! You have successfully installed PowerDNS. Thanks for using this tutorial for installing PowerDNS on CentOS 7 system. For additional help or useful information, we recommend you to check the official PowerDNS web site.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!