Files
ctrld/vpn_dns_config.go
2026-03-10 17:18:23 +07:00

12 lines
561 B
Go

package ctrld
// VPNDNSConfig represents DNS configuration discovered from a VPN interface.
// Used by the dns-intercept mode to detect VPN split DNS settings and
// route matching queries to VPN DNS servers automatically.
type VPNDNSConfig struct {
InterfaceName string // VPN adapter name (e.g., "F5 Networks VPN")
Servers []string // DNS server IPs (e.g., ["10.50.10.77"])
Domains []string // Search/match domains (e.g., ["provisur.local"])
IsExitMode bool // True if this VPN is also the system default resolver (exit node mode)
}