PowerDNS Recursor (Ubuntu): Unterschied zwischen den Versionen
Zeile 81: | Zeile 81: | ||
<pre> | <pre> | ||
sudo vi /etc/dnsdist/dnsdist.conf | sudo vi /etc/dnsdist/dnsdist.conf | ||
</pre> | |||
<pre> | |||
setLocal('127.0.0.1:53') | |||
addLocal('10.0.0.157:53') | |||
setACL({'0.0.0.0/0', '::/0'}) -- Allow all IPs access | |||
newServer({address='127.0.0.1:5300', pool='auth'}) | |||
newServer({address='127.0.0.1:5301', pool='recursor'}) | |||
recursive_ips = newNMG() | |||
recursive_ips:addMask('NETWORKMASK1') -- These network masks are the ones from allow-recursion in the Authoritative Server | |||
recursive_ips:addMask('NETWORKMASK2') | |||
addAction(NetmaskGroupRule(recursive_ips), PoolAction('recursor')) | |||
addAction(AllRule(), PoolAction('auth')) | |||
</pre> | </pre> | ||
Version vom 24. Januar 2020, 00:20 Uhr
Noch in Bearbeitung
Allgemein
https://www.powerdns.com/recursor.html
Installation
Zuerst den PowerDNS Authoritive Server stoppen, da es sonst zu einer Fehlermeldung beim Starten des Recurser kommt, da bei den beide den Port 53 benutzen:
sudo systemctl stop pdns
Danach den Recurser installieren:
sudo apt-get install pdns-recursor
Im Anschluss daran diesen auch gleich wieder stoppen
sudo systemctl stop pdns-recursor.service
und den LoadBalancer dnsdist installieren:
sudo apt-get install -y dnsdist
Um mit der Konfiguration fortfahren zu können, den Service ebenfalls gleich wieder stoppen:
sudo systemctl stop dnsdist.service
Links
https://doc.powerdns.com/recursor/getting-started.html#installation
https://dnsdist.org/install.html
Konfiguration
/etc/powerdns/pdns.conf
sudo vi /etc/powerdns/pdns.conf
local-address=127.0.0.1 local-port=5300
/etc/powerdns/recursor.conf
sudo vi /etc/powerdns/recursor.conf
local-address=127.0.0.1 local-port=5301 forward-zones=example1.com=127.0.0.1:5300 forward-zones+=example2.com=127.0.0.1:5300
Links
https://doc.powerdns.com/recursor/getting-started.html#configuring-the-recursor
https://doc.powerdns.com/recursor/settings.html#forward-zones
/etc/dnsdist/dnsdist.conf
sudo vi /etc/dnsdist/dnsdist.conf
setLocal('127.0.0.1:53') addLocal('10.0.0.157:53') setACL({'0.0.0.0/0', '::/0'}) -- Allow all IPs access newServer({address='127.0.0.1:5300', pool='auth'}) newServer({address='127.0.0.1:5301', pool='recursor'}) recursive_ips = newNMG() recursive_ips:addMask('NETWORKMASK1') -- These network masks are the ones from allow-recursion in the Authoritative Server recursive_ips:addMask('NETWORKMASK2') addAction(NetmaskGroupRule(recursive_ips), PoolAction('recursor')) addAction(AllRule(), PoolAction('auth'))
Links
https://dnsdist.org/dnsdist.pdf
Links
https://doc.powerdns.com/authoritative/guides/recursion.html
Zurück zu Domain selbst verwalten