You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/net/dns/resolver
Ryan Koski ef2e3c64aa net/dns/resolver: Truncate UDP DNS responses
Perform RFC-compliant truncation of DNS responses
which are to be delivered over UDP when they
exceed the maximum allowed size.

The maximum size is determined by the EDNS0
options in the DNS request, or defaults to
512 bytes if no EDNS0 options are present (or
the ENDS0 value in the request is less than 512).
Per DNS Flag Day 2010 recommendations, we cap
the maximum UDP DNS response size at 1232 bytes.

Fixes #13601 and #18107

Signed-off-by: Ryan Koski <ryan@koski.org>
1 month ago
..
debug.go syncs: add Mutex/RWMutex alias/wrappers for future mutex debugging 2 months ago
doh_test.go net/dns/resolver: remove maxDoHInFlight 3 years ago
forwarder.go net/dns/resolver: Truncate UDP DNS responses 1 month ago
forwarder_test.go net/dns/resolver: Truncate UDP DNS responses 1 month ago
macios_ext.go all: avoid repeated default interface lookups 3 years ago
tsdns.go net/dns/resolver: Truncate UDP DNS responses 1 month ago
tsdns_server_test.go net/dns/resolver: Truncate UDP DNS responses 1 month ago
tsdns_test.go net/dns/resolver: Truncate UDP DNS responses 1 month ago
udp_trunc.go net/dns/resolver: Truncate UDP DNS responses 1 month ago
udp_trunc_test.go net/dns/resolver: Truncate UDP DNS responses 1 month ago