<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I do not think this is good approach. One thing is any queries
      need to be handled by upstream resolver somehow. Whatever it is,
      dnsmasq will reply whatever upstream resolvers chosen to do that.
      The only exception is local data, for example authoritative
      services.</p>
    <p>I would prefer sending just A or AAAA queries, whatever from them
      comes first. Or maybe excluding other types and using just A and
      AAAA records, if they are in cache. Reference <span class="h3"><a
          class="selflink" id="section-4.3"
          href="https://www.rfc-editor.org/rfc/rfc8482#section-4.3">4.3</a>.
        Alternatively do what unbound does, return NOTIMPL error.<br>
      </span></p>
    <p>Shown localhost example:</p>
    <p>; <<>> DiG 9.18.21 <<>> @localhost -p
      2053 -t any localhost<br>
      ; (2 servers found)<br>
      ;; global options: +cmd<br>
      ;; Got answer:<br>
      ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id:
      60904<br>
      ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0,
      ADDITIONAL: 1<br>
      <br>
      ;; OPT PSEUDOSECTION:<br>
      ; EDNS: version: 0, flags:; udp: 1232<br>
      ;; QUESTION SECTION:<br>
      ;localhost.            IN    ANY<br>
      <br>
      ;; ANSWER SECTION:<br>
      localhost.        0    IN    A    127.0.0.1<br>
      localhost.        0    IN    AAAA    ::1<br>
    </p>
    <p>With --no-ANY, it returns empty response. I have changed
      continue; to return 0; That gives incorrect results and should not
      be used. But your patch did not apply to my master, on top of
      commit 762a3f243099d26b1e87aad2b1b4b696cd8c33ac.<br>
    </p>
    <p>; <<>> DiG 9.18.21 <<>> @localhost -p
      2053 -t any localhost<br>
      ; (2 servers found)<br>
      ;; global options: +cmd<br>
      ;; Got answer:<br>
      ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id:
      48980<br>
      ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1,
      ADDITIONAL: 1<br>
      <br>
      ;; OPT PSEUDOSECTION:<br>
      ; EDNS: version: 0, flags:; udp: 1232<br>
      ;; QUESTION SECTION:<br>
      ;localhost.            IN    ANY<br>
      <br>
      ;; AUTHORITY SECTION:<br>
      localhost.        10800    IN    SOA    localhost. nobody.invalid.
      1 3600 1200 604800 10800<br>
    </p>
    <p>I think we can modify ANY type query to provide just single type
      or synthetized answer, but empty response seems wrong. I think ||
      qtype == T_ANY should be removed from most of types, to make
      answer smaller. Unlike mDNS ANY is not specified in DNS to provide
      all answers known. If anyone relies on it, that would be wrong
      too.</p>
    <p>I disagree with current proposal.<br>
    </p>
    <div class="moz-cite-prefix">On 06. 02. 24 18:00, Dominik Derigs via
      Dnsmasq-discuss wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:93d5af83-093f-4a10-93ef-ebdc8f076e6c@dl6er.de"> RFC 8482</blockquote>
    <pre class="moz-signature" cols="72">-- 
Petr Menšík
Software Engineer, RHEL
Red Hat, <a class="moz-txt-link-freetext" href="http://www.redhat.com/">http://www.redhat.com/</a>
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB</pre>
  </body>
</html>