[Pdns-users] Recursor and subdomain forward

Giovanni Vecchi g.vecchi at certego.net
Mon Mar 23 13:28:40 UTC 2020

Hi Brian,

thanks for your tip: forward-zone-file is great.
I only noticed that configuring forward-zone-file will broke the
get-parameter command for rec_control:

*sudo rec_control get-parameter forward-zonesforward-zones=""*

>From rec logs:

*Mar 23 13:21:05 server pdns_recursor[9349]: Reading zone forwarding
information from '/etc/powerdns/recursor.d/zones.conf'Mar 23 13:21:05
server pdns_recursor[9349]: Done parsing 3 forwarding instructions from
file '/etc/powerdns/recursor.d/zones.conf'*

Is this a known behaviour?


On Fri, 20 Mar 2020 at 18:37, Brian Candler <b.candler at pobox.com> wrote:

> On 20/03/2020 17:18, Giovanni Vecchi via Pdns-users wrote:
> I think the problem was that following zone forwarding need to be
> configured with "forwarding-zone*+*=" directive, but if I didn't find any
> feedback in the documentation (
> https://doc.powerdns.com/recursor/settings.html#forward-zones): may I
> open a github issue?
> I suggest you use forward-zones-file
> <https://doc.powerdns.com/recursor/settings.html#forward-zones-file> and
> put all your rules in that file.  Or use forward-zones with all your rules
> on one line separated by commas.
> The += syntax is rather obscure; I only found it mentioned in passing here:
> https://doc.powerdns.com/authoritative/guides/recursion.html
> Powerdns lets you silently override a setting.  A quick test with
> forward-zones=foo.com=
> forward-zones=bar.com=
> and the only log message I get is:
> Mar 20 17:30:05 cache1 pdns_recursor[18387]: Redirecting queries for zone '
> bar.com' to:
> But I believe this is intentional, so that configs in the top-level config
> file can be overridden in included config files ("include-dir").  Perhaps
> it would be helpful to generate a warning if a setting is overridden by
> another setting in the same file though.
> Regards,
> Brian.


Giovanni Vecchi
Infrastructure Lead Engineer, Certego
<http://twitter.com/Certego_IRT>  <http://github.com/certego>
Use of the information within this document constitutes acceptance for
use in an "as is" condition. There are no warranties with regard to
this information; Certego has verified the data as thoroughly as
possible. Any use of this information lies within the user's
responsibility. In no event shall Certego be liable for any
consequences or damages, including direct, indirect, incidental,
consequential, loss of business profits or special damages, arising
out of or in connection with the use or spread of this information.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20200323/2bbaa4d6/attachment.htm>

More information about the Pdns-users mailing list