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
Last revision Both sides next revision
network:powerdns [2013/10/09 10:12]
tschulz
network:powerdns [2018/12/13 11:53]
tschulz
Line 1: Line 1:
 ====== Power DNS ====== ====== Power DNS ======
  
 +===== Install Packages =====
 <​file>​ <​file>​
 apt-get install mysql-server mysql-client apt-get install mysql-server mysql-client
 apt-get install pdns-server pdns-backend-mysql pdns-recursor ​ apt-get install pdns-server pdns-backend-mysql pdns-recursor ​
 +</​file>​
 +
 +===== Create Database =====
 +
 +<​file>​
 +mysql -p < powerdns.sql
 </​file>​ </​file>​
  
Line 52: Line 59:
 </​file>​ </​file>​
  
-<file config pdns.conf>​ +===== Config Files ===== 
-[...] +<file config ​/​etc/​powerdns/​pdns.conf>​ 
-#################################​ +allow-recursion=10.1.0.0/​22,​127.0.0.1,​192.168.0.0/​16 
-# launch ​       Which backends to launch and order to query them in +config-dir=/​etc/​powerdns 
-# +daemon=yes 
-# launch=+guardian=yes
 launch=gmysql launch=gmysql
-[...]+gmysql-host=127.0.0.
 +gmysql-user=power_admin 
 +gmysql-password=power_admin_password 
 +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>​
  
 <file config /​etc/​powerdns/​recursor.conf>​ <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>​ forward-zones=<​WINDOWSDOMAIN>​=<​WINDOWS_DNS_SERVER>​
-hint-file=/​etc/​powerdns/​named.root 
-local-address=127.0.0.1 
 local-port=10053 local-port=10053
 quiet=yes quiet=yes
Line 71: Line 92:
 setuid=pdns setuid=pdns
 </​file>​ </​file>​
- +===== Start Daemons ===== 
-<​file ​config pdns.local+<​file>​ 
-# Here comes the local changes the user made, like configuration of +/etc/init.d/​pdns-recursor restart 
-# the several backends that exists+/etc/init.d/pdns restart
- +
-gmysql-host=127.0.0.1 +
-gmysql-user=power_admin +
-gmysql-password=power_admin_password +
-gmysql-dbname=powerdns+
 </​file>​ </​file>​
  
Line 100: 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**
 +
 +====== Refresh Save Zone ======
 +<​file>​
 +pdns_control retrieve <Zone Name>
 +</​file>​
 +
network/powerdns.txt · Last modified: 2018/12/13 11:56 by tschulz