Files
KKRainbow a08903362b fix(dns): isolate upstream queries and stop PTR loops (#2854)
Run DNS lookups in bounded, cancellable tasks so slow upstream queries
do not stall the TUN packet loop. Keep local DNS available when the
upstream limit is reached, and enqueue replies without blocking.

Answer unconfigured IPv4 PTR queries inside local TUN prefixes with
authoritative NODATA and an SOA. Preserve configured authorities and
forward other queries. Cancel pending lookups when the resolver closes.

Install Linux BPF before enabling packet reception, and synchronize
the listener recovery tests with accepted socket handling.

Fixes #2849.
2026-11-19 01:54:42 +08:00
..