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
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
..
resolver net/dns/resolver: clamp EDNS size 5 years ago
config.go net/dns: replace AuthoritativeSuffixes with nil Route entries. 5 years ago
debian_resolvconf.go net/dns: add GOOS build tags 5 years ago
direct.go net/dns: add GOOS build tags 5 years ago
flush_windows.go Move DNS flush logic to net/dns. 5 years ago
manager.go net/dns{,/resolver}: refactor DNS forwarder, send out of right link on macOS/iOS 5 years ago
manager_default.go net/dns: return error from NewOSManager, use it to initialize NM. 5 years ago
manager_freebsd.go net/dns: fix freebsd DNS manager selection. 5 years ago
manager_linux.go net/dns: fix inverted test for NetworkManager version. 5 years ago
manager_openbsd.go net/dns: return error from NewOSManager, use it to initialize NM. 5 years ago
manager_test.go net/dns{,/resolver}: refactor DNS forwarder, send out of right link on macOS/iOS 5 years ago
manager_windows.go net/dns: always proxy through quad-100 on windows 8.1. 5 years ago
nm.go staticcheck.conf: turn off noisy lint errors 5 years ago
noop.go net/dns: return error from NewOSManager, use it to initialize NM. 5 years ago
openresolv.go net/dns: add GOOS build tags 5 years ago
osconfig.go net/dns: make debian_resolvconf correctly clear DNS configs. 5 years ago
registry_windows.go wgengine/router/dns: move to net/dns. 5 years ago
resolvconf-workaround.sh net/dns: also include 'tail' and 'base' files when fixing up resolv.conf. 5 years ago
resolvconf.go net/dns: add GOOS build tags 5 years ago
resolved.go staticcheck.conf: turn off noisy lint errors 5 years ago