network: enable EDNS for DNS queries#10589
Conversation
|
Hi, |
Always set ARES_FLAG_EDNS to handle DNS responses >512 bytes. Fixes: fluent#10588 Signed-off-by: Viktor Oreshkin <[email protected]>
678c890 to
e61785b
Compare
|
@stek29 thanks for this PR. wondering what's the right path here and potential side-effects of this change. The biggest user of c-ares is Curl, however I cannot find a reference to this flag being used in Curl and wondering the reason about it: looking at c-ares options init functionality, the flag ARES_FLAG_EDNS is not enabled by default: removed.. "why do we really need this flag ? " (edited) looking at #10588 more in detail now |
|
@edsiper just to clarify: it is enabled by default in c-ares, but it's part of flags — so it's only enabled if ARES_OPT_FLAGS is unset: and most clients, including curl, just don’t set the ARES_OPT_FLAGS. Lines 1091 to 1100 in 9def01d |
Enable EDNS0 for all DNS queries to match c-ares defaults and support responses larger than 512 bytes.
Partially addresses #10588