mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 21:27:31 +00:00
tailcfg,net/dns: add controlknob to disable battery split DNS on iOS (#12346)
Updates corp#15802. Adds the ability for control to disable the recently added change that uses split DNS in more cases on iOS. This will allow us to disable the feature if it leads to regression in production. We plan to remove this knob once we've verified that the feature works properly. Signed-off-by: Andrea Gottardo <andrea@gottardo.me>
This commit is contained in:
@@ -2286,6 +2286,17 @@ const (
|
||||
// NodeAttrSSHBehaviorV1 forces SSH to use the V1 behavior (no su, run SFTP in-process)
|
||||
// Added 2024-05-29 in Tailscale version 1.68.
|
||||
NodeAttrSSHBehaviorV1 NodeCapability = "ssh-behavior-v1"
|
||||
|
||||
// NodeAttrDisableSplitDNSWhenNoCustomResolvers indicates that the node's
|
||||
// DNS manager should not adopt a split DNS configuration even though the
|
||||
// Config of the resolver only contains routes that do not specify custom
|
||||
// resolver(s), hence all DNS queries can be safely sent to the upstream
|
||||
// DNS resolver and the node's DNS forwarder doesn't need to handle all
|
||||
// DNS traffic.
|
||||
// This is for now (2024-06-06) an iOS-specific battery life optimization,
|
||||
// and this node attribute allows us to disable the optimization remotely
|
||||
// if needed.
|
||||
NodeAttrDisableSplitDNSWhenNoCustomResolvers NodeCapability = "disable-split-dns-when-no-custom-resolvers"
|
||||
)
|
||||
|
||||
// SetDNSRequest is a request to add a DNS record.
|
||||
|
Reference in New Issue
Block a user