[Dnsmasq-discuss] [RFC PATCH] Add a no-auto-edns compatibility option
Dmitry Kuleshov
dmitry_kuleshov at ukr.net
Wed Sep 9 09:16:32 UTC 2026
Hi Simon,
I would like to propose an optional --no-auto-edns setting for compatibility with upstream DNS servers or intervening network devices which fail to handle queries carrying EDNS0.
Since dnsmasq 2.91, a plain upstream UDP query is automatically given an OPT record. Reducing --edns-packet-max still leaves that record present; this proposal allows administrators to suppress its automatic creation.
The attached patch changes only that default insertion step when the option is enabled. Existing OPT records are retained, including those supplied by clients or created by configured EDNS features or DNSSEC. The usual UDP-size adjustment still applies to an existing record. Default behaviour and TCP forwarding are unchanged. The patch includes help text and a manual entry.
Base: upstream master a9880c595f052d63859d6ed8aa86a3a6b007bf20.
The patch applies independently, without OpenWrt patches.
After rebasing, the default build, option/configuration checks and manual formatting were checked. Live upstream-query and DNSSEC protocol testing were not performed in this environment, so I am submitting this as an RFC.
I used AI assistance in preparing the change and its review. Would an opt-in compatibility setting with this scope be acceptable?
Best regards,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20260909/623a71ec/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 900-no-auto-edns-upstream.patch
Type: application/x-patch
Size: 5391 bytes
Desc: not available
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20260909/623a71ec/attachment.bin>
More information about the Dnsmasq-discuss
mailing list