User Tools

Site Tools


network:powerdns

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
network:powerdns [2013/09/23 06:00]
tschulz
network:powerdns [2018/12/13 11:56] (current)
tschulz [Refresh Save Zone]
Line 1: Line 1:
 ====== Power DNS ====== ====== Power DNS ======
  
 +===== Install Packages =====
 <​file>​ <​file>​
-aptitude ​install mysql-server mysql-client +apt-get ​install mysql-server mysql-client 
-aptitude ​install pdns-server pdns-backend-mysql+apt-get ​install pdns-server pdns-backend-mysql ​pdns-recursor  
 +</​file>​
  
 +===== Create Database =====
 +
 +<​file>​
 +mysql -p < powerdns.sql
 </​file>​ </​file>​
  
Line 53: Line 59:
 </​file>​ </​file>​
  
- +===== Config Files ===== 
-<file config pdns.conf>​ +<file config ​/​etc/​powerdns/​pdns.conf>​ 
-[...] +allow-recursion=10.1.0.0/​22,​127.0.0.1,​192.168.0.0/​16 
-#################################​ +config-dir=/​etc/​powerdns 
-# launch ​       Which backends to launch and order to query them in +daemon=yes 
-# +guardian=yes
-# launch=+
 launch=gmysql launch=gmysql
-[...] 
-</​file>​ 
- 
-<file config pdns.local>​ 
-# Here comes the local changes the user made, like configuration of 
-# the several backends that exists. 
- 
 gmysql-host=127.0.0.1 gmysql-host=127.0.0.1
 gmysql-user=power_admin gmysql-user=power_admin
 gmysql-password=power_admin_password gmysql-password=power_admin_password
 gmysql-dbname=powerdns gmysql-dbname=powerdns
 +lazy-recursion=yes
 +local-address=0.0.0.0
 +local-port=53
 +module-dir=/​usr/​lib/​powerdns
 +recursor=127.0.0.1:​10053
 +setgid=pdns
 +setuid=pdns
 +slave=yes
 +slave-cycle-interval=60
 +socket-dir=/​var/​run
 +version-string=powerdns
 +include=/​etc/​powerdns/​pdns.d
 +</​file>​
 +
 +<file config /​etc/​powerdns/​recursor.conf>​
 +allow-from=127.0.0.0/​8,​ 10.0.0.0/8, 100.64.0.0/​10,​ 169.254.0.0/​16,​ 192.168.0.0/​16,​ 172.16.0.0/​12,​ ::1/128, fe80::/10
 +forward-zones=<​WINDOWSDOMAIN>​=<​WINDOWS_DNS_SERVER>​
 +local-port=10053
 +quiet=yes
 +setgid=pdns
 +setuid=pdns
 +</​file>​
 +===== Start Daemons =====
 +<​file>​
 +/​etc/​init.d/​pdns-recursor restart
 +/​etc/​init.d/​pdns restart
 </​file>​ </​file>​
  
Line 92: Line 116:
  
 With a web browser navigate to: **http://​localhost/​poweradmin/​install/​index.php** With a web browser navigate to: **http://​localhost/​poweradmin/​install/​index.php**
 +
 +====== Tips ======
 +===== Refresh Save Zone =====
 +<​file>​
 +pdns_control retrieve <Zone Name>
 +</​file>​
network/powerdns.1379934023.txt.gz · Last modified: 2013/09/23 06:00 by tschulz