diff --git a/src/core/nm-policy.c b/src/core/nm-policy.c index ec03616a1b..3d310b409a 100644 --- a/src/core/nm-policy.c +++ b/src/core/nm-policy.c @@ -738,6 +738,9 @@ build_device_hostname_infos(NMPolicy *self) if (!device) continue; + if (nm_device_sys_iface_state_is_external(device)) + continue; + only_from_default = device_get_hostname_property_boolean(device, NM_SETTING_HOSTNAME_ONLY_FROM_DEFAULT);