<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><font face="Helvetica, Arial, sans-serif">Hi Petr,</font></p>
    <p><font face="Helvetica, Arial, sans-serif">as you have seen in the
        original email, it is dnsmasq that refuses to use the lo0
        interface to communicate with the IP 127.0.0.20:</font></p>
    <p><font face="Helvetica, Arial, sans-serif">Jul 20 13:33:23 ksol
        dnsmasq[99396]: ignoring nameserver 127.0.0.20 - local interface</font></p>
    <p><font face="Helvetica, Arial, sans-serif">When querying manually
        from the host env to the jailed unbound, I get proper DNS
        responses. This was something I did pay extra attention to get
        it working </font><font face="Helvetica, Arial, sans-serif"><font
          face="Helvetica, Arial, sans-serif">from the get-go</font>.
        See:</font></p>
    <p><img src="cid:part1.E313F28C.ECF5FF76@karolyi.hu" alt=""></p>
    <p>Citing my configs here makes no sense as you can see it's working
      already.<br>
    </p>
    <pre class="moz-signature" cols="72">Cheers,
--
László Károlyi
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/karolyi">http://linkedin.com/in/karolyi</a>
</pre>
    <div class="moz-cite-prefix">On 2020-07-20 16:12, Petr Menšík wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:b55c4fde-ae3a-ffd9-5f85-3119aa1b7516@redhat.com">
      <pre class="moz-quote-pre" wrap="">Hi László,

are you sure it is dnsmasq, who is rejecting the communication?
Unbound has by default disabled commuinication on localhost. If you have
any other servers running along it, you have to use:

do-not-query-localhost: no

to override defaults. But that has to be done on unbound side. AFAIK
dnsmasq does not have any such limitation. It does limit only
per-interface, all required is to configure interface=lo, which is
enabled by default.

How many interface= statements do you have in configuration? Is
localhost included?
</pre>
    </blockquote>
  </body>
</html>