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
Tom 24bdcbe5c7
net/dns, net/dns/resolver, wgengine: refactor DNS request path (#4364)
* net/dns, net/dns/resolver, wgengine: refactor DNS request path

Previously, method calls into the DNS manager/resolver types handled DNS
requests rather than DNS packets. This is fine for UDP as one packet
corresponds to one request or response, however will not suit an
implementation that supports DNS over TCP.

To support PRs implementing this in the future, wgengine delegates
all handling/construction of packets to the magic DNS endpoint, to
the DNS types themselves. Handling IP packets at this level enables
future support for both UDP and TCP.

Signed-off-by: Tom DNetto <tom@tailscale.com>
3 years ago
..
debug.go net/dns/resolver: add debug HTML handler to see what DNS traffic was forwarded 3 years ago
doh_test.go net/dns: replace resolver IPs with type for DoH 3 years ago
forwarder.go all: use strings.Cut even more 3 years ago
forwarder_test.go all: use strings.Cut even more 3 years ago
macios_ext.go all: simplify ts_macext build tags 3 years ago
tsdns.go net/dns, net/dns/resolver, wgengine: refactor DNS request path (#4364) 3 years ago
tsdns_server_test.go all: use any instead of interface{} 3 years ago
tsdns_test.go net/dns, net/dns/resolver, wgengine: refactor DNS request path (#4364) 3 years ago