New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression after upgrading resolved from 252.5 to 253: slow reverse DNS lookups #26594
Comments
|
Possible dupe of #14735? Can you capture systemd-resolved log using SYSTEMD_LOG_LEVEL=debug? |
Note that this is a new regression after upgrading from 252.5 to 253, and that ticket is 3 years old.
I attached the logs for 252.5 (good) and 253 (bad). Note that I disabled IPv6 system-wide (to avoid leaking my addresses to the log), and tested |
|
Please try to disable MulticastDNS if you do not use it. |
|
Disabling MulticastDNS worked around the issue, but I see it's not a new option in 253, and older versions didn't suffer from this issue, even with MulticastDNS enabled. |
|
But the default value of it is changed:
https://github.com/systemd/systemd/blob/v253/NEWS#L88
Disabling MulticastDNS worked around the issue, but I see it's not a new
… option in 253, and older versions didn't suffer from this issue, even with
MulticastDNS enabled.
—
Reply to this email directly, view it on GitHub
<#26594 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG6E7V6INB3GJFO3GEMXG4LW2M23TANCNFSM6AAAAAAVIOVZVE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Yeah, (unfortunately?) the default value for Though, I am not familiar with the difference between mDNS and LLMNR, but LLMNR was enabled by default previously. Why LLMNR did not slow down querying DNS lookup?? |
No, not really, at least not on Arch Linux. I just installed systemd 252.5 again, and I see that resolved.conf has |
|
The commit e315401 changes the per-link default for mDNS, not the global default. |
|
I confirm that |
Can I have a complete instruction on how to apply this workaround on my system? I know nothing about systemd resolver functionality beyond vaguely sensing that it is very complex, and I am bitten by this issue - not just because I see the "communications error... timed out" message in nslookup output, but also because renewing certificates with certbot fails due to a DNS timeout, and I strongly suspect this is the same issue. |
|
Either set |
systemd version the issue has been seen with
253
Used distribution
Arch linux
Linux kernel version used
6.1.12-arch1-1
CPU architectures issue was seen on
x86_64
Component
systemd-resolved
Expected behaviour you didn't see
Reverse DNS lookup should be fast if the upstream DNS server returns NXDOMAIN:
This is a sample output from systemd-252.5.
Unexpected behaviour you saw
After upgrading systemd to 253, the above test takes 15 seconds before failing:
Also, instead of NXDOMAIN, it returns an I/O error with resolved itself, which suggests a bug in resolved.
Steps to reproduce the problem
systemctl restart systemd-resolved.service.time nslookup 128.1.1.1and measure time it takes to complete.Instead of 128.1.1.1, you can use any other valid and routable IPv4 or IPv6 that doesn't have a PTR record. 128.1.1.1 is an arbitrary address used for an example purpose.
Additional program output to the terminal or log subsystem illustrating the issue
The text was updated successfully, but these errors were encountered: