<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 23/03/2020 13:28, Giovanni Vecchi
      via Pdns-users wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CADkrqGBnq2oY-4u+G2okby_8kmPWXkF6xGsYMwtA+tOKh9in7A@mail.gmail.com">
      <div class="gmail_default" style="font-family:monospace,monospace"><i>sudo
          rec_control get-parameter forward-zones<br>
          forward-zones=""</i><br>
      </div>
      <div class="gmail_default" style="font-family:monospace,monospace"><br>
      </div>
      <div class="gmail_default" style="font-family:monospace,monospace">From
        rec logs:</div>
      <div class="gmail_default" style="font-family:monospace,monospace"><br>
      </div>
      <div class="gmail_default" style="font-family:monospace,monospace"><i>Mar
          23 13:21:05 server pdns_recursor[9349]: Reading zone
          forwarding information from
          '/etc/powerdns/recursor.d/zones.conf'<br>
          Mar 23 13:21:05 server pdns_recursor[9349]: Done parsing 3
          forwarding instructions from file
          '/etc/powerdns/recursor.d/zones.conf'</i><br>
      </div>
      <div class="gmail_default" style="font-family:monospace,monospace"><br>
      </div>
      <div class="gmail_default" style="font-family:monospace,monospace">Is
        this a known behaviour?</div>
    </blockquote>
    <p>It looks like the expected behaviour to me.  Try "rec_control
      get-parameter forward-zones-file" instead.<br>
    </p>
    <p>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:<br>
    </p>
    <p>include-dir=/etc/powerdns/recursor.d<br>
    </p>
    <p>Therefore, put them in another directory.  I just use one level
      up:</p>
    <p># rec_control get-parameter forward-zones-file<br>
      forward-zones-file="/etc/powerdns/forward.zones"<br>
      # <br>
    </p>
    <p>Regards,</p>
    <p>Brian.<br>
    </p>
  </body>
</html>