Repository navigation
Open
Labels
Description
Submission type
- Bug report
systemd version the issue has been seen with
238
Used distribution
Linux From Scratch
In case of bug report: Unexpected behaviour you saw
# systemd-resolve www.freedesktop.org
www.freedesktop.org: resolve call failed: DNSSEC validation failed: incompatible-server
# systemd-resolve --status
Global
DNS Servers: 141.14.16.1
DNS Domain: molgen.mpg.de
In case of bug report: Steps to reproduce the problem
The error began with the lines below in the log.
systemd-resolved[227]: DNSSEC validation failed for question hiroshima-8246.herokussl.com IN AAAA: no-signature
systemd-resolved[227]: DNSSEC validation failed for question herokussl.com IN DS: no-signature
systemd-resolved[227]: DNSSEC validation failed for question herokussl.com IN SOA: no-signature
systemd-resolved[227]: DNSSEC validation failed for question hiroshima-8246.herokussl.com IN DS: no-signature
systemd-resolved[227]: DNSSEC validation failed for question hiroshima-8246.herokussl.com IN SOA: no-signature
systemd-resolved[227]: DNSSEC validation failed for question hiroshima-8246.herokussl.com IN AAAA: no-signature
systemd-resolved[227]: DNSSEC validation failed for question hiroshima-8246.herokussl.com IN A: no-signature
systemd-resolved[227]: DNSSEC validation failed for question herokussl.com IN DS: no-signature
systemd-resolved[227]: DNSSEC validation failed for question herokussl.com IN SOA: no-signature
systemd-resolved[227]: DNSSEC validation failed for question hiroshima-8246.herokussl.com IN DS: no-signature
systemd-resolved[227]: DNSSEC validation failed for question hiroshima-8246.herokussl.com IN SOA: no-signature
systemd-resolved[227]: DNSSEC validation failed for question hiroshima-8246.herokussl.com IN A: no-signature
systemd-resolved[227]: DNSSEC validation failed for question hiroshima-8246.herokussl.com IN AAAA: no-signature
Activity
paulmenzel commentedon Mar 14, 2018
Oh, and the DNS server works, when queried directly, so no idea, what problem systemd-resolved has.
paulmenzel commentedon Mar 14, 2018
To me it sounds a little bit like issue #7040 is still not fixed.
paulmenzel commentedon Mar 14, 2018
After restarting systemd-resolved (to enable debugging), the issues is gone for now.
paulmenzel commentedon Mar 14, 2018
With debug enabled, the messages below are show right before the failed look up.
buczek commentedon Mar 15, 2018
(Talking about the same failure event as my colleague Paul)
[ EDIT: Not necessarily herokussl.com to blame for the bad dns replies, it looks like some "Intrusion Prevention System" messed with it ]
I think the problem is, that systemd-resolved blames/downgrades the configured forwarding server (here: 141.14.16.1) for failures of third-party servers. It looks like some servers of herokussl.com were seriously broken and return invalid answers (swapping TYPE and CLASS). I've seen this directly from these servers but only have a typescript of such a reply from the cache of a Google server:
In our systemd-resolved log you see, that 141.14.16.1 is 'downgraded' as a result of failures to resolve these specific names. Lines from the log which I think are relevant to this issue with some blank lines added for visibility:
Additionally (minor), the forwarding server lost the "LARGE" feature before due to failures of the third-party servers. Maybe the timeouts are incompatible, because the forwarder is returning the first "SERVFAIL" after 10 seconds, when systemd-resolved has taken action long before. Maybe the external servers do answer, but with bogus data which is not forwarded:
poettering commentedon Mar 21, 2018
Hmm, @paulmenzel and @buczek you are using the same DNS server?
So it appears your DNS servers are flaky, and can't do DNSSEC reliably, hence the behaviour you are seeing is expected, no?
buczek commentedon Mar 21, 2018
Yes, we are using the same DNS server. We are talking about the same failure on the same system. The configured nameserver 141.14.16.1 is assumed to be stable by itself. However, as 141.14.16.1 has to query external servers, an individual query might take long.
In the logs above you see 141.14.16.1 return a SERVFAIL after 10 seconds, because of some external nameserver failure (while at the same time promptly replying to other queries, which were omitted from the quoted log). I suspect, that because of the delay, it was "downgraded" by systemd-resolved, maybe up the point when it was no longer considered for DNSSEC and all further name resolutions failed.
buczek commentedon Apr 7, 2018
Related to #7974 ( 10s timeout of the bind server ).
ott commentedon May 22, 2018
@bubeck I agree.
ott commentedon Aug 31, 2018
@bubeck @paulmenzel I provided a patch that addressed #7974 and it was integrated into v239. Perhaps this version lessens the problem for you.
buczek commentedon Jun 20, 2019
Sorry for not replying for so long.
We are on v242 now and the general problem is still there.
I've delegated a zone to a non-answering ip-address. Our configuration for systemd-resolved includes "FallbackDNS=141.14.16.1" and "DNSSEC=yes".
Querying for a name in the invalid zone will downgrade 141.14.16.1 , although this server behaves perfectly well and replies with SERVFAIL after the usual 10 second timeout.
now everything repeats for the SOA query...
letoams commentedon Nov 2, 2020
This bug could partially be caused by the mixed cache bug.
try this:
success when using:
systemctl restart systemd-resolved
dig +dnssec freebsd.org
[shows dnssec records]
failure using:
systemctl restart systemd-resolved
dig freebsd.org
[shows no dnssec records as expected]
dig +dnssec freebsd.org
[mistakenly also shows no dnssec records]
molgen-edv commentedon Nov 2, 2020
@letoams: Thanks. But the problem you describe can't be reproduced on our site:
letoams commentedon Nov 2, 2020