mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 21:27:31 +00:00
net/dns/resolver, control/controlknobs, tailcfg: use UserDial instead of SystemDial to dial DNS servers
Now that tsdial.Dialer.UserDial has been updated to honor the configured routes and dial external network addresses without going through Tailscale, while also being able to dial a node/subnet router on the tailnet, we can start using UserDial to forward DNS requests. This is primarily needed for DNS over TCP when forwarding requests to internal DNS servers, but we also update getKnownDoHClientForProvider to use it. Updates tailscale/corp#18725 Signed-off-by: Nick Khyl <nickk@tailscale.com>
This commit is contained in:
@@ -2263,7 +2263,8 @@ const (
|
||||
NodeAttrSuggestExitNodeUI NodeCapability = "suggest-exit-node-ui"
|
||||
|
||||
// NodeAttrUserDialUseRoutes makes UserDial use either the peer dialer or the system dialer,
|
||||
// depending on the destination address and the configured routes.
|
||||
// depending on the destination address and the configured routes. When present, it also makes
|
||||
// the DNS forwarder use UserDial instead of SystemDial when dialing resolvers.
|
||||
NodeAttrUserDialUseRoutes NodeCapability = "user-dial-routes"
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user