tailscale/ipn
James Tucker c7ce4e07e5 ipn/ipnlocal: allow Split-DNS and default resolvers with WireGuard nodes
The initial implementation directly mirrored the behavior of Tailscale
exit nodes, where the WireGuard exit node DNS took precedence over other
configuration.

This adjusted implementation treats the WireGuard DNS
resolvers as a lower precedence default resolver than the tailnet
default resolver, and allows split DNS configuration as well.

This also adds test coverage to the existing DNS selection behavior with
respect to default resolvers and split DNS routes for Tailscale exit
nodes above cap 25. There may be some refinement to do in the logic in
those cases, as split DNS may not be working as we intend, though that
would be a pre-existing and separate issue.

Updates #9377
Signed-off-by: James Tucker <james@tailscale.com>
2023-09-19 16:29:57 -07:00
..
ipnauth all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ipnlocal ipn/ipnlocal: allow Split-DNS and default resolvers with WireGuard nodes 2023-09-19 16:29:57 -07:00
ipnserver logpolicy, various: allow overriding log function 2023-07-10 18:08:50 -04:00
ipnstate tailcfg: add NodeCapMap 2023-09-18 12:00:34 -07:00
localapi ipn/ipnlocal: fix missing controlknobs.Knobs plumbing 2023-09-12 06:17:14 -07:00
policy ipn: prefer allow/denylist terminology 2023-04-04 08:02:50 -07:00
store cmd/k8s-operator,ipn/store/kubestore: patch secrets instead of updating 2023-08-29 13:24:05 -07:00
backend.go ipn, ipn/ipnlocal: add session identifier for WatchIPNBus 2023-09-05 13:30:04 -04:00
doc.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
fake_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ipn_clone.go cmd/tailscale/cli: use optimistic concurrency control on SetServeConfig 2023-09-13 15:08:41 -05:00
ipn_view.go cmd/tailscale/cli: use optimistic concurrency control on SetServeConfig 2023-09-13 15:08:41 -05:00
prefs.go ipn/ipnlocal: add tailnet MagicDNS name to ipn.LoginProfile 2023-09-18 13:58:32 -04:00
prefs_test.go cmd/tailscale,ipn: add auto-update flags and prefs (#8861) 2023-09-01 13:45:12 -07:00
serve.go tailcfg: define a type for NodeCapability 2023-09-17 13:16:29 -07:00
serve_test.go tailcfg: define a type for NodeCapability 2023-09-17 13:16:29 -07:00
store.go ipn: avoid useless no-op WriteState calls 2023-08-07 08:44:24 -07:00
store_test.go ipn: avoid useless no-op WriteState calls 2023-08-07 08:44:24 -07:00