summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-11-20 18:26:41 +0100
committerThomas Haller <thaller@redhat.com>2020-11-20 18:28:48 +0100
commit95017dccdd2aa390053d3d3a16273daf937535b0 (patch)
tree67cc1267c1ddcf1a0793cc5d2ea53dd2022547bc
parentfbf1683c1a75c6eee002b5ed2eaa81a3f7126c84 (diff)
downloadNetworkManager-95017dccdd2aa390053d3d3a16273daf937535b0.tar.gz
dns: set first Domains/DefaultRoute in systemd-resolved before DNS
-rw-r--r--src/dns/nm-dns-systemd-resolved.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dns/nm-dns-systemd-resolved.c b/src/dns/nm-dns-systemd-resolved.c
index 26e26d202d..4db7da4195 100644
--- a/src/dns/nm-dns-systemd-resolved.c
+++ b/src/dns/nm-dns-systemd-resolved.c
@@ -268,7 +268,6 @@ prepare_one_interface(NMDnsSystemdResolved *self, InterfaceConfig *ic)
if (!nm_str_is_empty(mdns_arg) || !nm_str_is_empty(llmnr_arg))
has_config = TRUE;
- _request_item_append(&priv->request_queue_lst_head, "SetLinkDNS", g_variant_builder_end(&dns));
_request_item_append(&priv->request_queue_lst_head,
"SetLinkDomains",
g_variant_builder_end(&domains));
@@ -281,6 +280,7 @@ prepare_one_interface(NMDnsSystemdResolved *self, InterfaceConfig *ic)
_request_item_append(&priv->request_queue_lst_head,
"SetLinkLLMNR",
g_variant_new("(is)", ic->ifindex, llmnr_arg ?: ""));
+ _request_item_append(&priv->request_queue_lst_head, "SetLinkDNS", g_variant_builder_end(&dns));
return has_config;
}