This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
network:powerdns [2013/10/09 10:08] 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> | ||
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> | ||
- | + | ===== 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 91: | 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> |