summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-11-20 17:08:44 +0100
committerThomas Haller <thaller@redhat.com>2020-11-20 17:15:12 +0100
commit87ac324c407139ddd763b4045d13ecdee6660ebc (patch)
treefe754a350703611b603e481e0fda6a799f864e07
parente757b35c6da03302746d5740ba835ab83e0324b1 (diff)
downloadNetworkManager-th/dns-resolved-fix-exclusive.tar.gz
dns: more debug logging for DNS settings in rebuild_domain_lists()th/dns-resolved-fix-exclusive
-rw-r--r--src/dns/nm-dns-manager.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/dns/nm-dns-manager.c b/src/dns/nm-dns-manager.c
index caf99fc36e..74b8a72648 100644
--- a/src/dns/nm-dns-manager.c
+++ b/src/dns/nm-dns-manager.c
@@ -1557,6 +1557,21 @@ rebuild_domain_lists(NMDnsManager *self)
has_default_route_explicit || (priority < 0 && has_default_route_auto);
ip_data->domains.has_default_route =
ip_data->domains.has_default_route_exclusive || has_default_route_auto;
+
+ {
+ gs_free char *str1 = NULL;
+ gs_free char *str2 = NULL;
+
+ _LOGT("plugin: settings: ifindex=%d, priority=%d, default-route=%d%s, search=%s, reverse=%s",
+ ip_data->data->ifindex,
+ priority,
+ ip_data->domains.has_default_route,
+ ip_data->domains.has_default_route_explicit
+ ? " (explicit)"
+ : (ip_data->domains.has_default_route_exclusive ? " (exclusive)" : ""),
+ (str1 = g_strjoinv(",", (char **) ip_data->domains.search)),
+ (str2 = g_strjoinv(",", ip_data->domains.reverse)));
+ }
}
}