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

Joachim Lindenberg dnsmasq at lindenberg.one
Thu Nov 5 20:05:13 UTC 2026


Did you try a local CNAME override instead of specific records? The use cases I tried that worked perfectly.

Regards,

Joachim

 

Von: Dnsmasq-discuss <dnsmasq-discuss-bounces at lists.thekelleys.org.uk> Im Auftrag von iconoclast hero
Gesendet: Donnerstag, 5. November 2026 16:50
An: dnsmasq-discuss at lists.thekelleys.org.uk
Betreff: Re: [Dnsmasq-discuss] [PATCH 0/2] Stop forwarding queries for names that only exist locally

 

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/1f5f41e5/attachment.htm>


More information about the Dnsmasq-discuss mailing list