summary refs log tree commit diff
path: root/src/nm-policy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nm-policy.c')
-rw-r--r--src/nm-policy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nm-policy.c b/src/nm-policy.c
index 60f5fb02..038b89cf 100644
--- a/src/nm-policy.c
+++ b/src/nm-policy.c
@@ -143,6 +143,11 @@ _dns_manager_set_ip_config(NMDnsManager *    dns_manager,
                            NMDnsIPConfigType ip_config_type,
                            NMDevice *        device)
 {
+    if (device && nm_device_sys_iface_state_is_external(device)) {
+        nm_dns_manager_set_ip_config(dns_manager, ip_config, NM_DNS_IP_CONFIG_TYPE_REMOVED);
+        return;
+    }
+
     if (NM_IN_SET(ip_config_type, NM_DNS_IP_CONFIG_TYPE_DEFAULT, NM_DNS_IP_CONFIG_TYPE_BEST_DEVICE)
         && device
         && nm_device_get_route_metric_default(nm_device_get_device_type(device))