<div dir="ltr"><div class="gmail_quote gmail_quote_container"><div dir="ltr"><p><span style="background-color:transparent">Hi Dominik,</span></p><p>This addresses a problem I've been working around with Pi-hole and local DNS overrides.</p><p>I have several hostnames that exist both in public DNS (Cloudflare) and in my local DNS configuration. Their local A records correctly resolve to my reverse proxy, but HTTPS queries are still forwarded upstream and return the public HTTPS records, including Cloudflare's ECH configuration.</p><p>With ECH enabled in the browser (chromium fork, encrypted-client-hello: enabled), this causes connections to my local services to fail because my local reverse proxy doesn't have the corresponding ECH configuration.</p><p>My current workaround is to maintain a separate Pi-hole regex denylist entry for every local hostname, matching only HTTPS queries. That works when it works, but it means maintaining two separate lists of local hostnames. (However, it does not consistently work.)</p><p>Your proposed <code>--local-hosts</code> option sounds like exactly the behavior needed here: return an empty NOERROR response for record types that aren't locally configured, rather than forwarding those queries upstream.</p><p>I would very much welcome this change. It would solve the problem without requiring per-host filtering rules and would preserve normal upstream resolution for other names in the same public domain.</p><p>Thanks for working on this.</p><p><br></p></div>
</div></div>