NM working by overriding other interfaces

Former-commit-id: 174b7fb2f8
This commit is contained in:
Owen
2025-11-26 11:58:21 -05:00
parent 91e44e112e
commit a18b367e60
3 changed files with 151 additions and 18 deletions

View File

@@ -108,6 +108,13 @@ func DetectDNSManager(interfaceName string) DNSManagerType {
case NetworkManagerManager:
// Verify NetworkManager is actually running
if IsNetworkManagerAvailable() {
// Check if NetworkManager is delegating to systemd-resolved
if !IsNetworkManagerDNSModeSupported() {
logger.Info("NetworkManager is delegating DNS to systemd-resolved, using systemd-resolved configurator")
if IsSystemdResolvedAvailable() {
return SystemdResolvedManager
}
}
return NetworkManagerManager
}
logger.Warn("dns platform: Found network manager but it is not running. Falling back to file...")