resolver: ask again over TCP when a reply offers recursion (closes #300)
check / check (push) Canceled after 0s

dnswatcher never asks for recursion, so a reply marked recursion
available comes from a resolver on the network answering in the
server's place, as on a network that sends all DNS to one resolver.
Such a resolver answers only from its cache, or with SERVFAIL or
REFUSED, which made make check fail there.

A reply over UDP marked so is now asked again over TCP, which many such
networks leave alone, and the TCP reply is used. A reply from a root
server's address still marked so is not used, and when every root
server refuses or gives one, the error is the existing "this network
intercepts DNS queries".

Model: opus-5-5
This commit is contained in:
2026-10-16 07:44:24 +00:00
parent adc8131191
commit d1024b2b20
5 changed files with 128 additions and 15 deletions
+4
View File
@@ -19,6 +19,10 @@ milestone: https://git.eeqj.de/sneak/dnswatcher/milestone/7
# Completed Steps
- 2026-10-16: a reply over UDP marked "recursion available" is asked again over
TCP; such a reply from a root server's address is not used, and when every
root server refuses or gives one, the error is "this network intercepts DNS
queries" (closes #300).
- 2026-10-15: a query its caller's context ends before it is sent records no
reason about the nameserver, and a try the context's deadline cuts short is a
timeout, so a nameserver whose only failures were timeouts is `timeout`, not a