http://www.thatfleminggent.com/2009/08/09/getting-a-powerdns-recursor-up-and-going-fast
http://www.tecmint.com/install-powerdns-poweradmin-mariadb-in-centos-rhel/
https://www.howtoforge.com/installing-powerdns-with-mysql-backend-and-poweradmin-on-debian-squeeze
PowerDNS is a popular free DNS server that usually uses MySQL as the back-end and PowerAdmin as a web front-end.
There is a package for the PowerAdmin web front-end, but don't use it.
Add filewall rules for:
Ingress | HTTP | TCP | 80 |
Ingress | SSH | TCP | 22 |
Ingress & Egress | DNS | TCP & UDP | 53 |
On CentOS, insert or modify:
vi /etc/sysconfig/iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT -A INPUT -m state --state NEW -p udp --dport 53 -j ACCEPT -A INPUT -m state --state NEW -p tcp --dport 53 -j ACCEPT -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT service iptables restart
vi /etc/pdns/pdns.conf allow-recursion=10.0.0.0/24 recursor=8.8.8.8
PowerAdmin is the web interface for PowerDNS.
vi /var/www/html/inc/config.inc.php <?php $db_host = 'localhost'; $db_user = 'poweradmin'; $db_pass = 'yourpassword'; $db_name = 'powerdns'; $db_port = '3306'; $db_type = 'mysql'; $db_layer = 'MDB2'; $session_key = '6!WnDt(xp#GO]2dLSeVRYp8Fv]7jvV3me&KQ^RpF^W(wrW'; $iface_lang = 'en_EN'; $dns_hostmaster = 'hostmaster.yourdomain.com'; $dns_ns1 = 'pdns-01.yourdomain.com'; $dns_ns2 = 'pdns-02.yourdomain.com'; $dns_ttl = '3600' ?>