User Tools

Site Tools


networking:linux:powerdns

This is an old revision of the document!


PowerDNS

PowerDNS is a popular free DNS server that usually uses MySQL as the back-end and PowerAdmin as a web front-end.

http://docs.solusvm.com/powerdns

http://plone.lucidsolutions.co.nz/linux/dns/viridian-a-centos-based-power-dns-pdns-dns-server-with-poweradmin-web-frontend

:!: There is a package for the PowerAdmin web front-end, but don't use it.

Firewall Rules

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

Recursion

vi /etc/pdns/pdns.conf

allow-recursion=10.0.1.0/24

recursor=8.8.8.8

PowerAdmin

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' 
?>
networking/linux/powerdns.1450411558.txt.gz · Last modified: 2015/12/17 21:05 by gcooper