tailscale/net
Brad Fitzpatrick 39ffa16853 net/dnscache, net/tsdial: add DNS caching to tsdial UserDial
This is enough to handle the DNS queries as generated by Go's
net package (which our HTTP/SOCKS client uses), and the responses
generated by the ExitDNS DoH server.

This isn't yet suitable for putting on 100.100.100.100 where a number
of different DNS clients would hit it, as this doesn't yet do
EDNS0. It might work, but it's untested and likely incomplete.

Likewise, this doesn't handle anything about truncation, as the
exchanges are entirely in memory between Go or DoH. That would also
need to be handled later, if/when it's hooked up to 100.100.100.100.

Updates #3507

Change-Id: I1736b0ad31eea85ea853b310c52c5e6bf65c6e2a
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-12-09 11:34:21 -08:00
..
dns net/tsdial: move more weirdo dialing into new tsdial package, plumb 2021-12-01 10:36:55 -08:00
dnscache net/dnscache, net/tsdial: add DNS caching to tsdial UserDial 2021-12-09 11:34:21 -08:00
dnsfallback net/netns: thread logf into control functions 2021-11-18 15:09:51 -08:00
flowtrack all: use testingutil.MinAllocsPerRun 2021-10-28 12:48:37 -07:00
interfaces wgengine/monitor: ignore adding/removing uninteresting IPs 2021-11-22 16:33:15 -08:00
netcheck net/netns: thread logf into control functions 2021-11-18 15:09:51 -08:00
netknob all: disable TCP keep-alives on iOS/Android 2021-09-28 12:03:18 -07:00
netns net/netns: thread logf into control functions 2021-11-18 15:09:51 -08:00
netstat all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
nettest net/nettest: deflake TestPipeTimeout 2021-11-30 12:21:59 -08:00
packet net/packet: add ICMP6Header, like ICMP4Header 2021-12-09 09:30:10 -08:00
portmapper net/portmapper: deflake TestPCPIntegration 2021-12-01 10:13:27 -08:00
proxymux net/proxymux: add a listener mux that can run SOCKS and HTTP on a single socket. 2021-11-29 16:49:48 -08:00
socks5 net/tsdial: start of new package to unify all outbound dialing complexity 2021-11-30 17:21:49 -08:00
speedtest all: fix spelling mistakes 2021-10-12 21:23:14 -07:00
stun all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
tlsdial net/tlsdial: add forgotten test file for go mod tidy 2021-10-01 10:30:01 -07:00
tsaddr ipn/ipnlocal: for IPv6-only nodes, publish IPv6 MagicDNS records of peers 2021-10-04 08:54:23 -07:00
tsdial net/dnscache, net/tsdial: add DNS caching to tsdial UserDial 2021-12-09 11:34:21 -08:00
tshttpproxy net/tshttpproxy: use correct size for Windows BOOL argument 2021-11-22 12:24:24 -08:00
tstun net/tstun: rate limit "self disco out packet" logging 2021-11-23 12:52:52 -08:00