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
Jonathan Nobels 02e3c046aa
net/dns: re-query system resolvers on no-upstream resolver failure on apple platforms (#12398)
Fixes tailscale/corp#20677

On macOS sleep/wake, we're encountering a condition where reconfigure the network
a little bit too quickly - before apple has set the nameservers for our interface.
This results in a persistent condition where we have no upstream resolver and
fail all forwarded DNS queries.

No upstream nameservers is a legitimate configuration, and we have no  (good) way
of determining when Apple is ready - but if we need to forward a query, and we
have no nameservers, then something has gone badly wrong and the network is
very broken.

A simple fix here is to simply inject a netMon event, which will go through the
configuration dance again when we hit the SERVFAIL condition.

Tested by artificially/randomly returning [] for the list of nameservers in the bespoke
ipn-bridge code responsible for getting the nameservers.

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
5 months ago
..
art all: use Go 1.22 range-over-int 7 months ago
connstats all: use Go 1.22 range-over-int 7 months ago
dns net/dns: re-query system resolvers on no-upstream resolver failure on apple platforms (#12398) 5 months ago
dnscache net/dnscache: use parent context to perform lookup 5 months ago
dnsfallback tsd, ipnlocal, etc: add tsd.System.HealthTracker, start some plumbing 7 months ago
flowtrack
ktimeout net/ktimeout: add a package to set TCP user timeout 9 months ago
memnet
netaddr
netcheck net/netcheck: fix probeProto.String result for IPv6 probes 5 months ago
neterror
netkernelconf ipn/{ipnlocal,localapi},net/netkernelconf,client/tailscale,cmd/containerboot: optionally enable UDP GRO forwarding for containers (#12410) 5 months ago
netknob
netmon net/netmon: remove spammy log statements (#11953) 7 months ago
netns net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 7 months ago
netstat
netutil net/netmon, add: add netmon.State type alias of interfaces.State 7 months ago
packet all: use Go 1.22 range-over-int 7 months ago
ping
portmapper all: use math/rand/v2 more 5 months ago
proxymux all: cleanup unused code, part 1 (#10661) 11 months ago
routetable net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 7 months ago
socks5
sockstats net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 7 months ago
speedtest
stun all: make more tests pass/skip in airplane mode 6 months ago
stunserver all: use Go 1.22 range-over-int 7 months ago
tcpinfo all: use Go 1.22 range-over-int 7 months ago
tlsdial tsd, ipnlocal, etc: add tsd.System.HealthTracker, start some plumbing 7 months ago
tsaddr types/views: remove duplicate SliceContainsFunc 6 months ago
tsdial tsnet,wgengine/netstack: add ListenPacket and tests 5 months ago
tshttpproxy all: use Go 1.22 range-over-int 7 months ago
tstun net/tstun: do SNAT after filterPacketOutboundToWireGuard 6 months ago
wsconn