[Dnsmasq-discuss] [PATCH 0/2] Stop forwarding queries for names that only exist locally

iconoclast hero iconoclasthero at gmail.com
Thu Nov 5 15:49:57 UTC 2026


Hi Dominik,

This addresses a problem I've been working around with Pi-hole and local
DNS overrides.

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.

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.

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.)

Your proposed --local-hosts 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.

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.

Thanks for working on this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20261105/dc57adce/attachment.htm>


More information about the Dnsmasq-discuss mailing list