<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Hi Brian,</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">thanks for your tip: forward-zone-file is great.</div><div class="gmail_default" style="font-family:monospace,monospace">I only noticed that configuring forward-zone-file will broke the get-parameter command for rec_control:</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><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><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">Thanks</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 20 Mar 2020 at 18:37, Brian Candler <<a href="mailto:b.candler@pobox.com">b.candler@pobox.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <div>On 20/03/2020 17:18, Giovanni Vecchi
      via Pdns-users wrote:<br>
    </div>
    <blockquote type="cite">I
      think the problem was that following zone forwarding need to be
      configured with "forwarding-zone<b>+</b>=" directive, but if I
      didn't find any feedback in the documentation (<a href="https://doc.powerdns.com/recursor/settings.html#forward-zones" target="_blank">https://doc.powerdns.com/recursor/settings.html#forward-zones</a>):
      may I open a github issue?</blockquote>
    <p>I suggest you use <a href="https://doc.powerdns.com/recursor/settings.html#forward-zones-file" target="_blank">forward-zones-file</a>
      and put all your rules in that file.  Or use forward-zones with
      all your rules on one line separated by commas.<br>
    </p>
    <p>The += syntax is rather obscure; I only found it mentioned in
      passing here:</p>
    <p><a href="https://doc.powerdns.com/authoritative/guides/recursion.html" target="_blank">https://doc.powerdns.com/authoritative/guides/recursion.html</a></p>
    <p>Powerdns lets you silently override a setting.  A quick test with<br>
    </p>
    <p>forward-zones=<a href="http://foo.com" target="_blank">foo.com</a>=<a href="http://127.0.0.1:5300" target="_blank">127.0.0.1:5300</a><br>
      forward-zones=<a href="http://bar.com" target="_blank">bar.com</a>=<a href="http://127.0.0.1:5300" target="_blank">127.0.0.1:5300</a></p>
    <p>and the only log message I get is:<br>
    </p>
    <p>Mar 20 17:30:05 cache1 pdns_recursor[18387]: Redirecting queries
      for zone '<a href="http://bar.com" target="_blank">bar.com</a>' to: <a href="http://127.0.0.1:5300" target="_blank">127.0.0.1:5300</a></p>
    <p>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.<br>
    </p>
    Regards,
    <p>Brian.<br>
    </p>
  </div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><pre style="font-family:"Courier New",Courier,monospace,arial,sans-serif;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;color:rgb(0,0,0);font-size:14px"><table border="0" cellspacing="0" cellpadding="0" style="font-family:"Times New Roman";width:420px"><tbody><tr valign="top"><td><table border="0" cellspacing="0" cellpadding="0"><tbody><tr valign="top"><td style="text-align:initial;vertical-align:top;padding:0px 8px"><a href="http://www.certego.net/" target="_blank"><img width="96" height="96" src="http://www.certego.net/email/certego.png" alt="" style="border-radius: 0px;"></a></td><td style="text-align:initial;vertical-align:top;padding:4px 0px"><div style="padding-top:2px;color:rgb(0,172,237);font-weight:bold;font-stretch:normal;font-size:18px;line-height:normal;font-family:sans-serif;letter-spacing:1px">Giovanni Vecchi</div><div style="padding-top:2px;color:rgb(32,32,32);font-weight:bold;font-stretch:normal;line-height:normal;font-family:sans-serif">Infrastructure Lead Engineer, Certego</div><div style="padding-top:4px"><a href="tel:+39-059-7353333" style="color:rgb(84,84,84);font-stretch:normal;font-size:12px;line-height:normal;font-family:sans-serif" target="_blank">+39-059-7353333</a><span style="color:rgb(0,172,237);font-stretch:normal;font-size:12px;line-height:normal;font-family:sans-serif"></span></div><div style="padding-top:6px"><a href="http://www.linkedin.com/company/certego" target="_blank"><img width="24" height="24" src="http://www.certego.net/email/linkedin.png" style="border-radius: 0px; border: 0px; width: 24px; min-height: 24px;"></a> <a href="http://twitter.com/Certego_IRT" target="_blank"><img width="24" height="24" src="http://www.certego.net/email/twitter.png" style="border-radius: 0px; border: 0px; width: 24px; min-height: 24px;"></a> <a href="http://github.com/certego" target="_blank"><img width="24" height="24" src="http://www.certego.net/email/github.png" style="border-radius: 0px; border: 0px; width: 24px; min-height: 24px;"></a> <a href="http://www.youtube.com/CERTEGOsrl" target="_blank"><img width="24" height="24" src="http://www.certego.net/email/youtube.png" style="border-radius: 0px; border: 0px; width: 24px; min-height: 24px;"></a> <a href="http://plus.google.com/117641917176532015312" target="_blank"><img width="24" height="24" src="http://www.certego.net/email/googleplus.png" style="border-radius: 0px; border: 0px; width: 24px; min-height: 24px;"></a></div></td></tr></tbody></table></td></tr></tbody></table><div style="font-stretch:normal;font-size:8px;line-height:normal;font-family:sans-serif;white-space:normal;width:420px;text-align:justify;vertical-align:top;padding:8px 0px;color:rgb(224,224,224)">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.</div></pre></div></div></div></div>