PowerDNS / pdns

PowerDNS Authoritative, PowerDNS Recursor, dnsdist
https://www.powerdns.com/
GNU General Public License v2.0
3.7k stars 908 forks source link

update the rpz records for recursor by API #13868

Closed oyJouokong closed 8 months ago

oyJouokong commented 8 months ago

why

Since we are using different dns components, we now need to integrate them for easy unified management. We have docked the api interfaces of authoritative resolution servers and recursive resolvers, and these apis can be used to easily manipulate dns resources. But we also use rpz file, rpz record parsing, but I can not find the relevant api interface, may I ask if there is a relevant api interface? Or is there a better solution or suggestion for dynamically modifying rpz records remotely? Looking forward to your reply!

Environment

Expected behaviour

Hope to be able to provide api or related suggestions for dynamically modifying rpz records

omoerbeek commented 8 months ago

RPZs can be retrieved from an authoritative server using IXFR. See https://docs.powerdns.com/recursor/lua-config/rpz.html#rpzPrimary. You can use the API on that authoritative server to manipulate the records in the RPZ. There are no plans to allow RPZ modification via the recursor API.

omoerbeek commented 8 months ago

Moving this to discussions