User Tools

Site Tools


powerdns_centos7

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
powerdns_centos7 [2015/06/24 18:54] herwarthpowerdns_centos7 [2015/06/24 20:34] (current) herwarth
Line 1: Line 1:
 ======PowerDNS on CentOS 7====== ======PowerDNS on CentOS 7======
 +=====Prerequisites======
 +  * Download latest poweradmin [[https://sourceforge.net/projects/poweradmin/files/latest/download?source=directory]]
 =====Installation===== =====Installation=====
-  yum install pdns-backend-mysql pdns-recursor mariadb-server+  yum install pdns-backend-mysql pdns-recursor mariadb-server httpd php mod_ssl php-mcrypt php-pdo php-mysql
   systemctl enable mariadb   systemctl enable mariadb
   systemctl start mariadb   systemctl start mariadb
Line 51: Line 53:
 quiet=yes quiet=yes
 </code> </code>
 +  systemctl start pdns
 +  systemctl start pdns-recursor
 +  systemctl enable pdns
 +  systemctl enable pdns-recursor
 +  firewall-cmd --permanent --zone=management --add-service=dns
 +  firewall-cmd --permanent --zone=local --add-service=dns
 +=====PowerAdmin=====
 +  cd /usr/share
 +  tar -xzf /root/poweradmin-2.1.7.tgz
 +  ln -s poweradmin-2.1.7 poweradmin
 +
 +<code - /etc/httpd/conf.d/dns.mngt.bh.helux.nl.conf>
 +<VirtualHost dns.mngt.bh.helux.nl:80>
 +    ServerAdmin webmaster@dns.mngt.bh.helux.nl
 +    ServerName dns.mngt.bh.helux.nl
 +
 +    RewriteEngine on
 +    RewriteRule ^/(.*)$ https://dns.mngt.bh.helux.nl/$1 [R,L]
 +
 +    ErrorLog /var/log/httpd/dns-error.log
 +    CustomLog /var/log/httpd/dns-access.log common
 +</VirtualHost>
 +
 +<VirtualHost dns.mngt.bh.helux.nl:443>
 +    ServerAdmin webmaster@dns.mngt.bh.helux.nl
 +    ServerName dns.mngt.bh.helux.nl
 +
 +    DocumentRoot /usr/share/poweradmin/
 +    <Directory /usr/share/poweradmin>
 +      Require all granted
 +    </Directory>
 +
 +    SSLEngine On
 +    SSLCertificateFile    /etc/pki/tls/certs/localhost.crt
 +    SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
 +
 +    ErrorLog /var/log/httpd/dns-error.log
 +    CustomLog /var/log/httpd/dns-access.log common
 +</VirtualHost>
 +</code>
 +
 +  setsebool -P httpd_can_network_connect 1
 +  systemctl restart httpd
 +
 +Go to your URL: [[http://dns.mngt.bh.helux.nl/install]] and follow the instructions.
 +
 +=====Backup and restore=====
 +On the old server with older PowerDNS database:
 +  mysqldump -u powerdns -p powerdns > /var/tmp/backup_tables.sql
 +
 +On the new server:
 +  mysql -u powerdns -p powerdns < /var/tmp/backup_tables.sql
 +
 +Upgrade to new schema:
 +  mysql -u powerdns -p powerdns < /usr/share/doc/pdns-backend-mysql-3.4.4/nodnssec-3.x_to_3.4.0_schema.mysql.sql
 +{{tag>centos}}
powerdns_centos7.1435172067.txt.gz · Last modified: by herwarth