Skip to content

resolved: don't redundantly switch DNS servers because of transaction… - #18602

Merged
poettering merged 1 commit into
systemd:mainfrom
poettering:reduce-server-switches
Feb 15, 2021
Merged

poettering merged 1 commit into
systemd:mainfrom
poettering:reduce-server-switches

Conversation

@poettering

Copy link
Copy Markdown
Member

… 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

… 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: systemd#17040
@poettering

Copy link
Copy Markdown
Member Author

Split out of #17535

@bluca bluca left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a DNS expert, but changes LGTM otherwise

@bluca bluca added the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Feb 15, 2021
@poettering
poettering merged commit 5e8bc85 into systemd:main Feb 15, 2021
@keszybz keszybz removed the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

No new DNS Server selected after currently selected DNS server does no longer respond and concurrent DNS requests

3 participants