bind9/bin/tests/system/dispatch/ans4
Ondřej Surý 59c00a6f31
Force TCP after repeated UDP timeouts to the same authoritative
Make the decision in fctx_query() before the dispatch is bound so the
chosen transport and the DNS_FETCHOPT_TCP flag agree.  The previous
location in resquery_send() ran after the UDP dispatch had already been
attached, so the flag flip had no effect on the wire.

Moving the decision earlier also means FCTX_ADDRINFO_NOEDNS0 servers,
previously exempt, now escalate to TCP too.  TCP works regardless of
EDNS state, so this is the intended behaviour.

Assisted-by: Claude:claude-opus-4-7
2026-05-19 11:18:30 +02:00
..
ans.py Force TCP after repeated UDP timeouts to the same authoritative 2026-05-19 11:18:30 +02:00
tcp-only.db Temporarily remove TCP fallback after UDP timeouts 2026-05-19 11:18:16 +02:00