How to: Install PowerDNS

Post Reply
User avatar
Daniel
Support
Posts: 198
Joined: 02 Aug 2013, 17:50

15 Sep 2013, 15:33

Login to SSH on the server you want to install PowerDNS on.

Get the link of the latest PowerDNS release here:
https://www.powerdns.com/downloads.html

For CentOS use the RPM packages. In this ‘How to’ we are using CentOS.

Installing

Do:

Code: Select all

cd /tmp
wget <link to download>
rpm -ivh <package name>


If you already done this and want to upgrade use:

Code: Select all

rpm -Uvh <package name> 


Example:

Code: Select all

cd /tmp
wget http://downloads.powerdns.com/releases/rpm/pdns-static-3.3-1.x86_64.rpm
rpm -ivh pdns-static-3.3-1.x86_64.rpm


Now set PowerDNS as a service:

Code: Select all

chkconfig --levels 235 pdns on


Configuring

You can now start configuring PowerDNS

Code: Select all

vi /etc/pdns/pdns.conf


Add the MySQL database back-end:

Code: Select all

launch=gmysql
gmysql-host=<127.0.0.1>
gmysql-user=<database_user>
gmysql-password=<database_user_password>
gmysql-dbname=<database_name>


Make sure the database is ready before starting PowerDNS. You can run the database on the same servers as the PowerDNS service however to improve performance you could also do this on the same server as your WHMCS installation.

If your database is ready you can start PowerDNS:

Code: Select all

/etc/init.d/pdns start
Post Reply