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
Adrian Dewhurst bcaae3e074 net/dns/resolver: clamp EDNS size
This change (subject to some limitations) looks for the EDNS OPT record
in queries and responses, clamping the size field to fit within our DNS
receive buffer. If the size field is smaller than the DNS receive buffer
then it is left unchanged.

I think we will eventually need to transition to fully processing the
DNS queries to handle all situations, but this should cover the most
common case.

Mostly fixes #2066

Signed-off-by: Adrian Dewhurst <adrian@tailscale.com>
5 years ago
..
forwarder.go net/dns/resolver: clamp EDNS size 5 years ago
macios_ext.go net/dns{,/resolver}: refactor DNS forwarder, send out of right link on macOS/iOS 5 years ago
neterr_darwin.go net/dns/resolver: permit larger max responses, signal truncation 5 years ago
neterr_other.go net/dns/resolver: permit larger max responses, signal truncation 5 years ago
neterr_windows.go net/dns/resolver: permit larger max responses, signal truncation 5 years ago
tsdns.go net/dns{,/resolver}: refactor DNS forwarder, send out of right link on macOS/iOS 5 years ago
tsdns_server_test.go net/dns/resolver: clamp EDNS size 5 years ago
tsdns_test.go net/dns/resolver: clamp EDNS size 5 years ago