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
Andrea Gottardo dd77111462
xcode/iOS: set MatchDomains when no route requires a custom DNS resolver (#10576)
Updates https://github.com/tailscale/corp/issues/15802.

On iOS exclusively, this PR adds logic to use a split DNS configuration in more cases, with the goal of improving battery life. Acting as the global DNS resolver on iOS should be avoided, as it leads to frequent wakes of IPNExtension.

We try to determine if we can have Tailscale only handle DNS queries for resources inside the tailnet, that is, all routes in the DNS configuration do not require a custom resolver (this is the case for app connectors, for instance).

If so, we set all Routes as MatchDomains. This enables a split DNS configuration which will help preserve battery life. Effectively, for the average Tailscale user who only relies on MagicDNS to resolve *.ts.net domains, this means that Tailscale DNS will only be used for those domains.

This PR doesn't affect users with Override Local DNS enabled. For these users, there should be no difference and Tailscale will continue acting as a global DNS resolver.

Signed-off-by: Andrea Gottardo <andrea@tailscale.com>
1 month ago
..
art all: use Go 1.22 range-over-int 2 months ago
connstats all: use Go 1.22 range-over-int 2 months ago
dns xcode/iOS: set MatchDomains when no route requires a custom DNS resolver (#10576) 1 month ago
dnscache net/netns, net/dns/resolver, etc: make netmon required in most places 2 months ago
dnsfallback tsd, ipnlocal, etc: add tsd.System.HealthTracker, start some plumbing 2 months ago
flowtrack all: update copyright and license headers 1 year ago
ktimeout net/ktimeout: add a package to set TCP user timeout 4 months ago
memnet net/memnet: export the network name (#9111) 10 months ago
netaddr all: update copyright and license headers 1 year ago
netcheck net/netcheck: apply some polish suggested from #12161 1 month ago
neterror net/neterror, wgengine/magicsock: use UDP GSO and GRO on Linux (#7791) 1 year ago
netkernelconf client/tailscale,ipn/{ipnlocal,localapi}: check UDP GRO config (#10071) 8 months ago
netknob all: update copyright and license headers 1 year ago
netmon net/netmon: remove spammy log statements (#11953) 2 months ago
netns net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 2 months ago
netstat net/{netns,netstat}: use new x/sys/cpu.IsBigEndian 1 year ago
netutil net/netmon, add: add netmon.State type alias of interfaces.State 2 months ago
packet all: use Go 1.22 range-over-int 2 months ago
ping net/ping: fix ICMP echo code field to 0 10 months ago
portmapper net/portmapper: add envknob to disable portmapper in localhost integration tests 2 months ago
proxymux all: cleanup unused code, part 1 (#10661) 6 months ago
routetable net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 2 months ago
socks5 net/socks5: add password auth support 1 year ago
sockstats net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 2 months ago
speedtest all: update copyright and license headers 1 year ago
stun all: make more tests pass/skip in airplane mode 2 months ago
stunserver all: use Go 1.22 range-over-int 2 months ago
tcpinfo all: use Go 1.22 range-over-int 2 months ago
tlsdial tsd, ipnlocal, etc: add tsd.System.HealthTracker, start some plumbing 2 months ago
tsaddr types/views: remove duplicate SliceContainsFunc 2 months ago
tsdial ipn/ipnlocal, net/tsdial: plumb routes into tsdial and use them in UserDial 2 months ago
tshttpproxy all: use Go 1.22 range-over-int 2 months ago
tstun net/tstun: do SNAT after filterPacketOutboundToWireGuard 2 months ago
wsconn net/wsconn: accept a remote addr string and plumb it through 10 months ago