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:13] 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 /etc/powerdns/pdns.conf> | <file config /etc/powerdns/pdns.conf> | ||
allow-recursion=10.1.0.0/22,127.0.0.1,192.168.0.0/16 | allow-recursion=10.1.0.0/22,127.0.0.1,192.168.0.0/16 | ||
Line 58: | Line 66: | ||
guardian=yes | guardian=yes | ||
launch=gmysql | launch=gmysql | ||
+ | gmysql-host=127.0.0.1 | ||
+ | gmysql-user=power_admin | ||
+ | gmysql-password=power_admin_password | ||
+ | gmysql-dbname=powerdns | ||
lazy-recursion=yes | lazy-recursion=yes | ||
local-address=0.0.0.0 | local-address=0.0.0.0 | ||
Line 73: | Line 85: | ||
<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 81: | 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 110: | 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> |