How to: Install PowerDNS
Posted: 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:
If you already done this and want to upgrade use:
Example:
Now set PowerDNS as a service:
Configuring
You can now start configuring PowerDNS
Add the MySQL database back-end:
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:
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>
Code: Select all
rpm -Uvh <package name>
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
Code: Select all
chkconfig --levels 235 pdns on
You can now start configuring PowerDNS
Code: Select all
vi /etc/pdns/pdns.conf
Code: Select all
launch=gmysql
gmysql-host=<127.0.0.1>
gmysql-user=<database_user>
gmysql-password=<database_user_password>
gmysql-dbname=<database_name>
If your database is ready you can start PowerDNS:
Code: Select all
/etc/init.d/pdns start