<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I have already reported it, but might got lost in different
      thread.<br>
    </p>
    <p><a class="moz-txt-link-freetext" href="https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2021q3/015723.html">https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2021q3/015723.html</a></p>
    <p>I took a look at the change, it seems it was intentional. Your
      proposed change would break something else Simon tried to fix in
      commit 26bbf5a3 I think.</p>
    <p>I think --address=/#/1.2.3.4 got broken. Which should be roughly
      equivalent to --address=/./1.2.3.4, now that just . is accepted
      itself. It got threated as --address=//1.2.3.4 in previous
      versions by mistake. Your fix would restore --local=/test/1.1.1.1,
      but would break this part again. That is why I had not attached
      patch to it, because correct fix it more demanding. And
      address+server parsing is complicated enough now. I think --local
      should emit warning if used with an address. I think its intention
      was to be used just with domains like --local=/invalid/, entries
      containing server also should use --server instead.<br>
    </p>
    <p>Cheers,<br>
      Petr<br>
    </p>
    <div class="moz-cite-prefix">On 10/5/21 20:52, Dominik Derigs wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:110437d56120d5367692ed6ff86972f5db1f267e.camel@dl6er.de">
      <pre class="moz-quote-pre" wrap="">Hey Simon,

Since commit "Fix --address=/#/...... which was lost in 2.86"
(26bbf5a314d833beaf0f147d24409969f05f3dba) --local being a
synonym for --server is broken as --local became a synonym for --
address.

The attached patch fixes this.

This was reported on the Pi-hole forums:

</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">I have local=/fritz.box/192.168.0.1 in my /etc/dnsmasq.d/02-
localdns.conf config file. This worked fine until upgrading
pihole last night. Now all queries to FQDNs such as google.com
get responded with google.com.fritz.box and ip address
192.186.0.1.

Changing the line to server=/fritz.box/192.168.0.1 restores the
previous handling. However, according to the dnsmasq manpage "-
-local is a synonym for --server to make configuration files
clearer in this case."
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
Best,
Dominik
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Dnsmasq-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a>
<a class="moz-txt-link-freetext" href="https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss">https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Petr Menšík
Software Engineer
Red Hat, <a class="moz-txt-link-freetext" href="http://www.redhat.com/">http://www.redhat.com/</a>
email: <a class="moz-txt-link-abbreviated" href="mailto:pemensik@redhat.com">pemensik@redhat.com</a>
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB</pre>
  </body>
</html>