tailscale/net/dns/resolver
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>
2021-07-27 16:39:27 -07:00
..
doh_test.go net/dns/resolver: fall back to IPv6 for well-known DoH servers if v4 fails 2021-07-21 12:45:25 -07:00
forwarder.go net/dns/resolver: EDNS OPT record off-by-one 2021-07-27 16:39:27 -07:00
macios_ext.go net/dns{,/resolver}: refactor DNS forwarder, send out of right link on macOS/iOS 2021-06-23 16:04:10 -07:00
neterr_darwin.go net/dns/resolver: permit larger max responses, signal truncation 2021-06-08 19:29:12 -04:00
neterr_other.go net/dns/resolver: fmt item 2021-06-27 23:57:55 -07:00
neterr_windows.go net/dns/resolver: permit larger max responses, signal truncation 2021-06-08 19:29:12 -04:00
tsdns_server_test.go net/dns/resolver: clamp EDNS size 2021-06-25 08:56:34 -04:00
tsdns_test.go net/dns/resolver: clamp EDNS size 2021-06-25 08:56:34 -04:00
tsdns.go net/dns/resolver: race well-known resolvers less aggressively 2021-07-25 20:45:47 -07:00