<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi<br>
    </p>
    <div class="moz-cite-prefix">On 12/05/2019 21.38, Oga Ajima wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJJimPzaTkPVmac+XvMRFfxuntmPNFRQjcF6fqvBvJW6A3Ws7A@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">I have pdns authoritative server configured
                on three servers and pdns recursor configured on two
                other servers. dnsdist is configure on a sixth server
                with the following configuration:<br>
                <br>
                <b>setLocal("<a href="http://10.240.70.91:53"
                    moz-do-not-send="true">10.240.70.91:53</a>")<br>
                  newServer({address="<a href="http://10.240.70.81:53"
                    moz-do-not-send="true">10.240.70.81:53</a>",pool="auth"})<br>
                  newServer({address="<a href="http://10.240.70.82:53"
                    moz-do-not-send="true">10.240.70.82:53</a>",pool="auth"})<br>
                  newServer({address="<a href="http://10.240.70.83:53"
                    moz-do-not-send="true">10.240.70.83:53</a>",pool="auth"})<br>
                  newServer({address="<a href="http://10.240.70.84:53"
                    moz-do-not-send="true">10.240.70.84:53</a>",pool="rec"})<br>
                  newServer({address="<a href="http://10.240.70.85:53"
                    moz-do-not-send="true">10.240.70.85:53</a>",pool="rec"})<br>
                  addAction("homelab.test.", PoolAction("auth"))<br>
                  addAction(RDRule(), PoolAction("rec"))</b><br>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <p>This matches queries that have the RD (recursion desired) flag
      set and sends them to the "rec" pool.<br>
    </p>
    <blockquote type="cite"
cite="mid:CAJJimPzaTkPVmac+XvMRFfxuntmPNFRQjcF6fqvBvJW6A3Ws7A@mail.gmail.com">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div>I get the following result when querying dnsdist
                  server:</div>
                <div><br>
                </div>
                <div><b>dig powerdns-1.homelab.test @<a
                      href="http://10.240.70.91" moz-do-not-send="true">10.240.70.91</a><br>
                  </b></div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <p>This sends a query with the RD flag set.</p>
    <p>Try:</p>
    <p>$ dig +norec powerdns-1.homelab.test @10.240.70.91</p>
    <p>Best regards,</p>
    <p>Jacob<br>
    </p>
  </body>
</html>