diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-11-05 17:00:20 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-02-15 21:59:05 +0100 |
commit | 5e8bc852d538544a2285ced429e3a805f13ea260 (patch) | |
tree | 9a1035166393b2fa79fc4da3fad48ba3a394aba3 /src/resolve/resolved-link.h | |
parent | c78735eb795f1377d8d08bc57401efe742d9ec19 (diff) | |
download | systemd-5e8bc852d538544a2285ced429e3a805f13ea260.tar.gz |
resolved: don't redundantly switch DNS servers because of transaction failures
When a transaction fails and we decide to switch DNS servers, don#t do
so unconditionally. Check if the current DNS server is still the same as
when the transaction was initiated. And if not, do not do anything.
That should reduce the number of redundant DNS server switches if many
parallel transactions fail simultaneously (which is pretty likely if
DNSSEC is on).
Fixes: #17040
Diffstat (limited to 'src/resolve/resolved-link.h')
-rw-r--r-- | src/resolve/resolved-link.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-link.h b/src/resolve/resolved-link.h index 26b0d13127..2be724376e 100644 --- a/src/resolve/resolved-link.h +++ b/src/resolve/resolved-link.h @@ -91,7 +91,7 @@ void link_allocate_scopes(Link *l); DnsServer* link_set_dns_server(Link *l, DnsServer *s); DnsServer* link_get_dns_server(Link *l); -void link_next_dns_server(Link *l); +void link_next_dns_server(Link *l, DnsServer *if_current); DnssecMode link_get_dnssec_mode(Link *l); bool link_dnssec_supported(Link *l); |