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
David Anderson 320cc8fa21 net/dns: verify that systemd-resolved is actually in charge.
It's possible to install a configuration that passes our current checks
for systemd-resolved, without actually pointing to systemd-resolved. In
that case, we end up programming DNS in resolved, but that config never
applies to any name resolution requests on the system.

This is quite a far-out edge case, but there's a simple additional check
we can do: if the header comment names systemd-resolved, there should be
a single nameserver in resolv.conf pointing to 127.0.0.53. If not, the
configuration should be treated as an unmanaged resolv.conf.

Fixes #2136.

Signed-off-by: David Anderson <danderson@tailscale.com>
5 years ago
..
dns net/dns: verify that systemd-resolved is actually in charge. 5 years ago
dnscache control/controlclient, net/{dnscache,dnsfallback}: add DNS fallback mechanism 5 years ago
dnsfallback net/dnsfallback: fix infinite loop and limit number of candidates 5 years ago
flowtrack net/packet, wgengine/filter: support SCTP 5 years ago
interfaces net/{interfaces,netns}: change which build tag means mac/ios Network/System Extension 5 years ago
netcheck all: adapt to opaque netaddr types 5 years ago
netns net/{interfaces,netns}: change which build tag means mac/ios Network/System Extension 5 years ago
netstat all: adapt to opaque netaddr types 5 years ago
nettest net/nettest: make nettest.NewConn pass x/net/nettest.TestConn. 5 years ago
packet net/packet: use netaddr AppendTo methods 5 years ago
portmapper all: adapt to opaque netaddr types 5 years ago
socks5 cmd/tailscaled, wgengine: remove --fake, replace with netstack 5 years ago
stun tstest/integration: add testNode.AwaitListening, DERP+STUN, improve proxy trap 5 years ago
tlsdial net/tlsdial, derp/derphttp: finish DERPNode.CertName validation 6 years ago
tsaddr net/tsaddr: simplify TailscaleServiceIP 5 years ago
tshttpproxy net/tshttpproxy: call winhttp calls from a fixed OS thread 5 years ago
tstun net/tstun: add a debug envvar to override tun MTU. 5 years ago