[Dnsmasq-discuss] [PATCH 0/2] Stop forwarding queries for names that only exist locally
iconoclast hero
iconoclasthero at gmail.com
Fri Nov 6 17:16:35 UTC 2026
On Thu Nov 5 20:05:13 UTC 2026 Joachim Lindenberg wrote:
> Did you try a local CNAME override instead of specific records? The use
cases I tried that worked perfectly. So I tried this and it seemed to work,
but I was hoping to obviate the need to maintain more than one record for
the same local DNS record/resolution.
I *added* intermediate Local DNS records for:
-
my-server → [local IPv4 of my-server]
-
my-server → [local IPv6 of my-server]
I *removed* Local DNS records for:
-
service.my-domain.com → [local IPv4 of my-server]
-
service.my-domain.com → [local IPv6 of my-server]
And *added* a Local CNAME record:
-
service.my-domain.com → my-server
And then *disabled* the Regex deny for
-
service.my-domain.com;querytype=HTTPS
This appears to work, but is this the workaround you intended? I was hoping
to avoid maintaining both the intermediate A/AAAA records and the CNAME
records for local DNS resolution.
My original issue is that Pi-hole retrieves the upstream HTTPS/SVCB record,
which contains Cloudflare's outer ECH key and causes the browser to return
an ECH mismatch error. Is there a way to prevent that upstream lookup using
the local DNS record itself, without requiring the additional CNAME
arrangement?
And this is why Dominik's proposed --local-hosts option seemed promising to
me. It would allow Pi-hole to treat locally defined names as locally
authoritative for other record types, rather than forwarding those queries
upstream. That would avoid retrieving Cloudflare's HTTPS/SVCB record and
the associated ECH problem, without requiring the additional intermediate
records.
Ultimately, Pi-hole provides a Local DNS resolution feature, but that
feature doesn't appear to account for browser behavior when ECH is enabled.
I get the impression this has become something of a hot potato between
Pi-hole and dnsmasq. I'm trying to understand what solutions are possible
so that users of the former can easily configure split DNS resolution
without having to worry about the behavior of the latter, and with as few
additional moving parts as possible.
None of this was even an issue until I upgraded my browser to deal with
GNOME 51 and ran into ECH errors. Now that I understand what Cloudflare
describes as the advantages of ECH, I want to retain the privacy it affords
without having to redesign my split-DNS configuration.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20261106/7d8bafd8/attachment.htm>
More information about the Dnsmasq-discuss
mailing list