<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Am 15.03.2019 um 03:52 schrieb Mark E.
      Jeftovic:<br>
    </div>
    <blockquote type="cite"
      cite="mid:75e5e98b-e182-aa0e-6aee-4acb08ba876c@easydns.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <p>You can do what you want with PowerDNS.</p>
      <p>You would specify your backend first, then the normal backend
        (i.e. bind). Any query that doesn't garner a response from your
        backend will fall through to the next one.</p>
    </blockquote>
    <p>Almost. PowerDNS will query every backend first to find the one
      with the best matching zone.</p>
    <p>E.g. first backend has example.com zone. Second backend not, and
      also no more-specific. Then there is an incoming query for
      <a class="moz-txt-link-abbreviated" href="http://www.example.com">www.example.com</a>.</p>
    <p>PDNS will ask the first backend for <a class="moz-txt-link-abbreviated" href="http://www.example.com">www.example.com</a>. It will
      receive "no zone". Then it will ask for "example.com" --> The
      backend returns "match"(*)</p>
    <p>Now PDNS will ask the second backend for <a class="moz-txt-link-abbreviated" href="http://www.example.com">www.example.com</a>. It will
      receive "no zone". Here PowerDNS will break and use the first
      backend as "best match".</p>
    <p>regards</p>
    <p>Klaus<br>
    </p>
    <p>* if the backend is smart it could return "example.com" on the
      first query for "<a class="moz-txt-link-abbreviated" href="http://www.example.com">www.example.com</a>" as best match.<br>
    </p>
    <blockquote type="cite"
      cite="mid:75e5e98b-e182-aa0e-6aee-4acb08ba876c@easydns.com">
      <p><a class="moz-txt-link-freetext"
          href="https://doc.powerdns.com/authoritative/backends/pipe.html"
          moz-do-not-send="true">https://doc.powerdns.com/authoritative/backends/pipe.html</a></p>
      <p>or more recent</p>
      <p><a class="moz-txt-link-freetext"
          href="https://doc.powerdns.com/authoritative/backends/remote.html"
          moz-do-not-send="true">https://doc.powerdns.com/authoritative/backends/remote.html</a></p>
      <p>- mark<br>
      </p>
      <div class="moz-cite-prefix">On 2019-03-14 9:41 PM, Casey Deccio
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:8336F091-80B9-46CD-A59F-F6C3E83BABAA@deccio.net">
        <meta http-equiv="Content-Type" content="text/html;
          charset=windows-1252">
        <br class="">
        <div>
          <blockquote type="cite" class="">
            <div class="">On Mar 14, 2019, at 6:15 PM, Mark E. Jeftovic
              <<a href="mailto:markjr@easydns.com" class=""
                moz-do-not-send="true">markjr@easydns.com</a>> wrote:</div>
            <br class="Apple-interchange-newline">
            <div class=""><span style="caret-color: rgb(0, 0, 0);
                font-family: Helvetica; font-size: 12px; font-style:
                normal; font-variant-caps: normal; font-weight: normal;
                letter-spacing: normal; text-align: start; text-indent:
                0px; text-transform: none; white-space: normal;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;
                text-decoration: none; float: none; display: inline
                !important;" class="">Off the top of my head, put it
                behind dnsdist or make it a Powerdns backend<span
                  class="Apple-converted-space"> </span></span><br
                style="caret-color: rgb(0, 0, 0); font-family:
                Helvetica; font-size: 12px; font-style: normal;
                font-variant-caps: normal; font-weight: normal;
                letter-spacing: normal; text-align: start; text-indent:
                0px; text-transform: none; white-space: normal;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;
                text-decoration: none;" class="">
              <br style="caret-color: rgb(0, 0, 0); font-family:
                Helvetica; font-size: 12px; font-style: normal;
                font-variant-caps: normal; font-weight: normal;
                letter-spacing: normal; text-align: start; text-indent:
                0px; text-transform: none; white-space: normal;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;
                text-decoration: none;" class="">
            </div>
          </blockquote>
        </div>
        <br class="">
        <div class="">Thanks for the ideas.  Earlier today I glanced
          through the dnsdist docs and saw some rules for balancing
          based on IP addresses.  It wasn't immediately clear how I
          might determine backend IP (and port?) based on query name,
          but someone else suggested off-list that it was possible.  I
          suppose I might need to spend some time looking through the
          docs and finding some solid examples.</div>
        <div class=""><br class="">
        </div>
        <div class="">I also looked have looked at PowerDNS for
          specifying a DNS server backend, but again it wasn't clear to
          me from reading through the docs if that was possible.  The
          BIND backend, for example, seems to use a BIND configuration
          file, but doesn't actually query a BIND (or other server)
          backend.</div>
        <div class=""><br class="">
        </div>
        <div class="">I also looked at using LUA records, but I'm
          generating TXT records based on the query name, and I also
          wasn't sure if that was possible with the PowerDNS/LUA, at
          least it wasn't clear from the examples.</div>
        <div class=""><br class="">
        </div>
        <div class="">Thanks,</div>
        <div class="">Casey</div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
dns-operations mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dns-operations@lists.dns-oarc.net" moz-do-not-send="true">dns-operations@lists.dns-oarc.net</a>
<a class="moz-txt-link-freetext" href="https://lists.dns-oarc.net/mailman/listinfo/dns-operations" moz-do-not-send="true">https://lists.dns-oarc.net/mailman/listinfo/dns-operations</a>
dns-operations mailing list
<a class="moz-txt-link-freetext" href="https://lists.dns-oarc.net/mailman/listinfo/dns-operations" moz-do-not-send="true">https://lists.dns-oarc.net/mailman/listinfo/dns-operations</a>
</pre>
      </blockquote>
      <div class="moz-signature">-- <br>
        Mark E. Jeftovic <a class="moz-txt-link-rfc2396E"
          href="mailto:markjr@easydns.com" moz-do-not-send="true"><markjr@easydns.com></a><br>
        Co-founder & CEO, easyDNS Technologies Inc.<br>
        <i>Author of <a
href="https://easydns.com/blog/2018/07/18/new-book-managing-mission-critical-domains-dns/"
            moz-do-not-send="true">Managing Mission Critical Domains
            & DNS: The Book</a></i><br>
        <i>Personal Blog: <a href="https://guerrilla-capitalism.com"
            moz-do-not-send="true">Guerrilla-Capitalism.com</a></i></div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
dns-operations mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dns-operations@lists.dns-oarc.net">dns-operations@lists.dns-oarc.net</a>
<a class="moz-txt-link-freetext" href="https://lists.dns-oarc.net/mailman/listinfo/dns-operations">https://lists.dns-oarc.net/mailman/listinfo/dns-operations</a>
dns-operations mailing list
<a class="moz-txt-link-freetext" href="https://lists.dns-oarc.net/mailman/listinfo/dns-operations">https://lists.dns-oarc.net/mailman/listinfo/dns-operations</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>