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>
2021-06-25 08:56:34 -04:00
..
resolver net/dns/resolver: clamp EDNS size 2021-06-25 08:56:34 -04:00
config.go net/dns: replace AuthoritativeSuffixes with nil Route entries. 2021-05-18 14:15:17 -07:00
debian_resolvconf.go net/dns: add GOOS build tags 2021-04-29 21:34:55 -07:00
direct.go net/dns: add GOOS build tags 2021-04-29 21:34:55 -07:00
flush_windows.go Move DNS flush logic to net/dns. 2021-03-25 17:40:52 -07:00
manager.go net/dns{,/resolver}: refactor DNS forwarder, send out of right link on macOS/iOS 2021-06-23 16:04:10 -07:00
manager_default.go net/dns: return error from NewOSManager, use it to initialize NM. 2021-04-12 15:51:37 -07:00
manager_freebsd.go net/dns: fix freebsd DNS manager selection. 2021-04-14 15:34:59 -07:00
manager_linux.go net/dns: fix inverted test for NetworkManager version. 2021-06-15 20:53:03 -07:00
manager_openbsd.go net/dns: return error from NewOSManager, use it to initialize NM. 2021-04-12 15:51:37 -07:00
manager_test.go net/dns{,/resolver}: refactor DNS forwarder, send out of right link on macOS/iOS 2021-06-23 16:04:10 -07:00
manager_windows.go net/dns: always proxy through quad-100 on windows 8.1. 2021-06-23 17:50:19 -07:00
nm.go staticcheck.conf: turn off noisy lint errors 2021-06-18 15:48:20 -07:00
noop.go net/dns: return error from NewOSManager, use it to initialize NM. 2021-04-12 15:51:37 -07:00
openresolv.go net/dns: add GOOS build tags 2021-04-29 21:34:55 -07:00
osconfig.go net/dns: make debian_resolvconf correctly clear DNS configs. 2021-04-20 15:51:14 -07:00
registry_windows.go wgengine/router/dns: move to net/dns. 2021-03-25 16:25:30 -07:00
resolvconf-workaround.sh net/dns: also include 'tail' and 'base' files when fixing up resolv.conf. 2021-04-10 23:01:11 -07:00
resolvconf.go net/dns: add GOOS build tags 2021-04-29 21:34:55 -07:00
resolved.go staticcheck.conf: turn off noisy lint errors 2021-06-18 15:48:20 -07:00