summaryrefslogtreecommitdiffstats
path: root/src/resolve/resolved-dns-server.c
diff options
context:
space:
mode:
authorRonan Pigott <ronan@rjp.ie>2024-08-20 19:25:28 +0200
committerRonan Pigott <ronan@rjp.ie>2024-08-21 18:51:42 +0200
commit760fa203c2e335d437948355f1dc66b88b39b9f6 (patch)
treec07100791f58f3cb9e6e4dc88713a66958074058 /src/resolve/resolved-dns-server.c
parentresolved: introduce link_set_default_route (diff)
downloadsystemd-760fa203c2e335d437948355f1dc66b88b39b9f6.tar.xz
systemd-760fa203c2e335d437948355f1dc66b88b39b9f6.zip
resolved: use the fallback servers when no default dns is configured
This expands the role of fallback servers so they are applied not only when there are no dns servers configured, but when all the configured dns servers are configured only for non-default-route links.
Diffstat (limited to 'src/resolve/resolved-dns-server.c')
-rw-r--r--src/resolve/resolved-dns-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-server.c b/src/resolve/resolved-dns-server.c
index cfdcc6d9bc..b48d8e1417 100644
--- a/src/resolve/resolved-dns-server.c
+++ b/src/resolve/resolved-dns-server.c
@@ -907,7 +907,7 @@ DnsServer *manager_get_dns_server(Manager *m) {
* servers */
HASHMAP_FOREACH(l, m->links)
- if (l->dns_servers) {
+ if (l->dns_servers && l->default_route) {
found = true;
break;
}