On 23/03/2020 13:28, Giovanni Vecchi via Pdns-users wrote:
/sudo rec_control get-parameter forward-zones
forward-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?

It looks like the expected behaviour to me.  Try "rec_control get-parameter forward-zones-file" instead.

However, you should not put your forward zones file under /etc/powerdns/recursor.d/.  That's because powerdns tries to read all the files in that directory as powerdns configuration directives.  You'll see the following in the default config:

include-dir=/etc/powerdns/recursor.d

Therefore, put them in another directory.  I just use one level up:

# rec_control get-parameter forward-zones-file
forward-zones-file="/etc/powerdns/forward.zones"
#

Regards,

Brian.

_______________________________________________
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users

Reply via email to