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
David Crawshaw f414a9cc01 net/dns/resolver: EDNS OPT record off-by-one
I don't know how to get access to a real packet. Basing this commit
entirely off:

       +------------+--------------+------------------------------+
       | Field Name | Field Type   | Description                  |
       +------------+--------------+------------------------------+
       | NAME       | domain name  | MUST be 0 (root domain)      |
       | TYPE       | u_int16_t    | OPT (41)                     |
       | CLASS      | u_int16_t    | requestor's UDP payload size |
       | TTL        | u_int32_t    | extended RCODE and flags     |
       | RDLEN      | u_int16_t    | length of all RDATA          |
       | RDATA      | octet stream | {attribute,value} pairs      |
       +------------+--------------+------------------------------+

From https://datatracker.ietf.org/doc/html/rfc6891#section-6.1.2

Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
4 years ago
..
resolver net/dns/resolver: EDNS OPT record off-by-one 4 years ago
config.go net/dns{,/resolver}: quiet DNS output logging 4 years ago
debian_resolvconf.go net/dns: add GOOS build tags 5 years ago
direct.go net/dns: set WSL /etc/resolv.conf 5 years ago
direct_test.go net/dns: factor directManager out over an FS interface 5 years ago
flush_windows.go Move DNS flush logic to net/dns. 5 years ago
ini.go net/dns: don't build init*.go on non-windows 4 years ago
ini_test.go net/dns: don't build init*.go on non-windows 4 years ago
manager.go net/dns{,/resolver}: quiet DNS output logging 4 years ago
manager_default.go net/dns: return error from NewOSManager, use it to initialize NM. 5 years ago
manager_freebsd.go net/dns: factor directManager out over an FS interface 5 years ago
manager_linux.go net/dns: factor directManager out over an FS interface 5 years ago
manager_openbsd.go net/dns: factor directManager out over an FS interface 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: do not run wsl.exe as LocalSystem 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 net/dns: factor directManager out over an FS interface 5 years ago
wsl_windows.go net/dns: do not run wsl.exe as LocalSystem 5 years ago