How To Install PowerDNS on CentOS 6

Install PowerDNS on CentOS 6

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 set up 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. I will show you through the step by step installation PowerDNS on CentOS 6.

Install PowerDNS on CentOS 6

Step 1. First, you need to enable the EPEL repository on your system.

Step 2. Install MySQL.

Enable MySQL on boot and start MySQL server:

Step 3. Configuring MySQL.

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

Step 4. Create a PowerDNS Database and User in MySQL.

Log in as a MySQL root and create a new database and tables:

Step 5. Install PowerDNS.

Enable PowerDNS on boot and start PowerDNS server:

Step 6. Configure PowerDNS.

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

Finally, restart the Power DNS service:

Congratulations! You have successfully installed PowerDNS. Thanks for using this tutorial for installing PowerDNS on CentOS 6 system. For additional help or useful information, we recommend you to check the official PowerDNS website.

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 the best deal!