You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
systemd-resolved stops resolving after some time with "DNSSEC validation failed[...]: incompatible-server " #6490
In case of bug report: Expected behaviour you didn't see
systemd-resolved works for about 20 minutes without issues, after that time it stops resolving complaining in the journal about "incompatible-server". A restart of "systemd-resolved" solves the issue for another 20-30 minutes
systemd-resolved[903]: DNSSEC validation failed for question denic.de IN AAAA: incompatible-server
In case of bug report: Unexpected behaviour you saw
systemd-resolved[903]: DNSSEC validation failed for question denic.de IN AAAA: incompatible-server
In case of bug report: Steps to reproduce the problem
setup systemd-resolved as the system resolver with DNSSEC validation enabled
Reacted by Tom Matthews, Remy Adriaanse, Sven Gebauer, ott, Ory Band, ThomasCr, Piotr Kubowicz, Aminda Suomalainen ⚧, triatic, Tore Anderson and 4 more
it appears that resolved comes to the conclusion that your DNS server doesn't properly do DNSSEC. Please run systemd-resolved with the "SYSTEMD_LOG_LEVEL=debug" env var (by doing systemctl edit systemd-resolved, and then adding the two lines [Service] and Environment=SYSTEMD_LOG_LEVEL followed by systemctl restart systemd-resolved), to see the trace in the logs why it comes to that conclusion.
with debug logging enabled, the issue appears much less frequently, but I had two issues this morning
the journal shows
Using degraded feature set (UDP+EDNS0+DO) for DNS server 172.22.1.1.
[...]
DNSSEC validation failed for question detectportal.firefox.com IN A: incompatible-server
the systemd-resolved Unit contains
[Service]
Environment=SYSTEMD_LOG_LEVEL=debug
and the environment variable is active
$ sudo systemctl show systemd-resolved | grep debug
Environment=SYSTEMD_LOG_LEVEL=debug
but the journal does not contain a trace of the DNS resolution.
sure, here is a full session from a few days ago (with debug logging environment variable present as discussed above, but the journal log does not show any additional information):
Aug 04 14:32:52 thinkcentreM900.home.strotmann.de systemd[1]: Started Network Name Resolution.
Aug 04 14:32:54 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: Switching to system DNS server 172.22.1.1.
Aug 04 14:32:57 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: Using degraded feature set (UDP+EDNS0+DO) for DNS server 172.22.1.1.
Aug 04 14:33:04 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question www.dragonflybsd.org.home.strotmann.de IN AAAA: no-signature
Aug 04 14:33:04 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question www.dragonflybsd.org.home.strotmann.de IN A: no-signature
Aug 04 14:33:04 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question www.dragonflybsd.org.home.strotmann.de IN A: no-signature
Aug 04 14:33:04 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question www.dragonflybsd.org.home.strotmann.de IN AAAA: no-signature
Aug 04 14:33:08 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question www.dragonflybsd.org IN AAAA: incompatible-server
Aug 04 14:33:08 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question www.dragonflybsd.org IN A: incompatible-server
Aug 04 14:34:31 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question 123.1.42.172.in-addr.arpa IN PTR: incompatible-server
Aug 04 14:34:40 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question 1.122.168.192.in-addr.arpa IN PTR: incompatible-server
Aug 04 14:34:40 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: Got LLMNR TCP packet on unknown scope. Ignoring.
Aug 04 14:34:40 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question 226.128.15.51.in-addr.arpa IN PTR: incompatible-server
Aug 04 14:34:41 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: Got mDNS UDP packet on unknown scope. Ignoring.
Aug 04 14:34:43 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question 65.157.161.35.in-addr.arpa IN PTR: incompatible-server
Aug 04 14:34:43 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question 212.109.45.5.in-addr.arpa IN PTR: incompatible-server
Aug 04 14:34:44 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question pbs.twimg.com IN A: incompatible-server
Aug 04 14:34:44 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question pbs.twimg.com IN AAAA: incompatible-server
Aug 04 14:34:44 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question pbs.twimg.com IN AAAA: incompatible-server
Aug 04 14:34:47 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question pbs.twimg.com IN A: incompatible-server
Aug 04 14:34:47 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question pbs.twimg.com.home.strotmann.de IN A: incompatible-server
Aug 04 14:34:47 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question pbs.twimg.com.home.strotmann.de IN AAAA: incompatible-server
Aug 04 14:34:47 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question pbs.twimg.com.home.strotmann.de IN A: incompatible-server
Aug 04 14:34:47 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question pbs.twimg.com.home.strotmann.de IN AAAA: incompatible-server
Aug 04 14:34:53 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question 1.42.244.104.in-addr.arpa IN PTR: incompatible-server
Aug 04 14:34:53 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question 192.174.198.91.in-addr.arpa IN PTR: incompatible-server
Aug 04 14:34:53 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question 208.174.198.91.in-addr.arpa IN PTR: incompatible-server
Aug 04 14:34:53 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question 125.253.30.192.in-addr.arpa IN PTR: incompatible-server
Aug 04 14:34:54 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question 123.1.42.172.in-addr.arpa IN PTR: incompatible-server
Aug 04 14:35:30 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: Got mDNS UDP packet on unknown scope. Ignoring.
Aug 04 14:36:43 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question fedoraproject.org IN A: incompatible-server
Aug 04 14:36:43 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question fedoraproject.org IN AAAA: incompatible-server
Aug 04 14:36:43 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question fedoraproject.org IN A: incompatible-server
Aug 04 14:36:43 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question fedoraproject.org IN AAAA: incompatible-server
Aug 04 14:36:43 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question fedoraproject.org.home.strotmann.de IN A: incompatible-server
Aug 04 14:36:43 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question fedoraproject.org.home.strotmann.de IN AAAA: incompatible-server
Aug 04 14:36:43 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question fedoraproject.org.home.strotmann.de IN A: incompatible-server
Aug 04 14:36:43 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: DNSSEC validation failed for question fedoraproject.org.home.strotmann.de IN AAAA: incompatible-server
Aug 04 14:39:35 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: Got mDNS UDP packet on unknown scope. Ignoring.
Aug 04 14:39:35 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: Got mDNS UDP packet on unknown scope. Ignoring.
Aug 04 14:41:43 thinkcentreM900.home.strotmann.de systemd-resolved[3285]: Grace period over, resuming full feature set (UDP+EDNS0+DO+LARGE) for DNS server 172.22.1.1.
Aug 04 14:46:01 thinkcentreM900.home.strotmann.de systemd[1]: Stopping Network Name Resolution...
Aug 04 14:46:01 thinkcentreM900.home.strotmann.de systemd[1]: Stopped Network Name Resolution.
Aug 04 14:46:01 thinkcentreM900.home.strotmann.de systemd[1]: Starting Network Name Resolution...
Aug 04 14:46:01 thinkcentreM900.home.strotmann.de systemd-resolved[3436]: Positive Trust Anchors:
Aug 04 14:46:01 thinkcentreM900.home.strotmann.de systemd-resolved[3436]: . IN DS 19036 8 2 49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5
Aug 04 14:46:01 thinkcentreM900.home.strotmann.de systemd-resolved[3436]: . IN DS 20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
Aug 04 14:46:01 thinkcentreM900.home.strotmann.de systemd-resolved[3436]: Negative trust anchors: 10.in-addr.arpa 16.172.in-addr.arpa 17.172.in-addr.arpa 18.172.in-addr.arpa 19.172.in-addr.arpa 20.172.in-addr.arpa 21.172.in-addr.arpa 22.172.in-addr.arpa 2
Aug 04 14:46:01 thinkcentreM900.home.strotmann.de systemd-resolved[3436]: Using system hostname 'thinkcentreM900.home.strotmann.de'.
Aug 04 14:46:01 thinkcentreM900.home.strotmann.de systemd[1]: Started Network Name Resolution.
Aug 04 14:46:43 thinkcentreM900.home.strotmann.de systemd-resolved[3436]: Switching to system DNS server 172.22.1.1.
at 14:46:01 I've restarted systemd-resolved and the previous failing domains were starting to resolve without issues again.
Hmm, is this reproducible still with current systemd? If so, the logs shown already state that a degraded DNS feature level is used for the server. resolved initially uses the most powerful feature level, and then downgrades bit by bit, if it notices that its requests don't work. Now, given that you already are one level down something must have happened before making resolved think that the server is bad. Hence, if you can reproduce this with v235, any chance you can trigger this again and then look for messages earlier than the issue you are encountering that show when and why resolved decided to downgrade?
Yes, the problem is reproducible with current systemd:
Looking up RR for 0.debian.pool.ntp.org IN A.
Looking up RR for 0.debian.pool.ntp.org IN AAAA.
Sent message type=method_call sender=n/a destination=org.freedesktop.DBus object=/org/freedesktop/DBus interface=org.freedesktop.DBus member=AddMatch cookie=4 reply_cookie=0 error-name=n/a error-message=n/a
Got message type=method_return sender=org.freedesktop.DBus destination=:1.405 object=n/a interface=n/a member=n/a cookie=6 reply_cookie=4 error-name=n/a error-message=n/a
Sent message type=method_call sender=n/a destination=org.freedesktop.DBus object=/org/freedesktop/DBus interface=org.freedesktop.DBus member=GetNameOwner cookie=5 reply_cookie=0 error-name=n/a error-message=n/a
Got message type=method_return sender=org.freedesktop.DBus destination=:1.405 object=n/a interface=n/a member=n/a cookie=7 reply_cookie=5 error-name=n/a error-message=n/a
Cache miss for 0.debian.pool.ntp.org IN A
Transaction 62314 for <0.debian.pool.ntp.org IN A> scope dns on /.
Using feature level UDP+EDNS0+DO+LARGE for transaction 62314.
Using DNS server 192.0.2.1 for transaction 62314.
Sending query packet with id 62314.
Cache miss for 0.debian.pool.ntp.org IN AAAA
Transaction 46571 for <0.debian.pool.ntp.org IN AAAA> scope dns on /.
Using feature level UDP+EDNS0+DO+LARGE for transaction 46571.
Using DNS server 192.0.2.1 for transaction 46571.
Sending query packet with id 46571.
Processing incoming packet on transaction 46571. (rcode=SUCCESS)
Verified we get a response at feature level UDP+EDNS0+DO from DNS server 192.0.2.1.
Requesting SOA to validate transaction 46571 (0.debian.pool.ntp.org, unsigned empty non-SOA/NS/DS response).
Cache miss for 0.debian.pool.ntp.org IN SOA
Transaction 51946 for <0.debian.pool.ntp.org IN SOA> scope dns on /.
Using feature level UDP+EDNS0+DO+LARGE for transaction 51946.
Using DNS server 192.0.2.1 for transaction 51946.
Sending query packet with id 51946.
Processing incoming packet on transaction 62314. (rcode=SUCCESS)
Requesting SOA to validate transaction 62314 (0.debian.pool.ntp.org, unsigned non-SOA/NS RRset <0.debian.pool.ntp.org IN A 5.196.192.58>).
Requesting SOA to validate transaction 62314 (0.debian.pool.ntp.org, unsigned non-SOA/NS RRset <0.debian.pool.ntp.org IN A 148.251.154.36>).
Requesting SOA to validate transaction 62314 (0.debian.pool.ntp.org, unsigned non-SOA/NS RRset <0.debian.pool.ntp.org IN A 5.9.38.226>).
Requesting SOA to validate transaction 62314 (0.debian.pool.ntp.org, unsigned non-SOA/NS RRset <0.debian.pool.ntp.org IN A 212.18.3.19>).
Processing incoming packet on transaction 51946. (rcode=SUCCESS)
Requesting DS to validate transaction 51946 (pool.ntp.org, unsigned SOA/NS RRset).
Cache miss for pool.ntp.org IN DS
Transaction 51242 for <pool.ntp.org IN DS> scope dns on /.
Using feature level UDP+EDNS0+DO+LARGE for transaction 51242.
Using DNS server 192.0.2.1 for transaction 51242.
Sending query packet with id 51242.
Requesting DS to validate transaction 51946 (0.debian.pool.ntp.org, unsigned empty SOA/NS response).
Cache miss for 0.debian.pool.ntp.org IN DS
Transaction 40019 for <0.debian.pool.ntp.org IN DS> scope dns on /.
Using feature level UDP+EDNS0+DO+LARGE for transaction 40019.
Using DNS server 192.0.2.1 for transaction 40019.
Sending query packet with id 40019.
Processing incoming packet on transaction 51242. (rcode=SUCCESS)
Requesting DS to validate transaction 51242 (ntp.org, unsigned SOA/NS RRset).
Cache miss for ntp.org IN DS
Transaction 16040 for <ntp.org IN DS> scope dns on /.
Using feature level UDP+EDNS0+DO+LARGE for transaction 16040.
Using DNS server 192.0.2.1 for transaction 16040.
Sending query packet with id 16040.
Requesting parent SOA to validate transaction 51242 (pool.ntp.org, unsigned empty DS response).
Cache miss for ntp.org IN SOA
Transaction 30353 for <ntp.org IN SOA> scope dns on /.
Using feature level UDP+EDNS0+DO+LARGE for transaction 30353.
Using DNS server 192.0.2.1 for transaction 30353.
Sending query packet with id 30353.
Processing incoming packet on transaction 16040. (rcode=SUCCESS)
Requesting DNSKEY to validate transaction 16040 (org, RRSIG with key tag: 1862).
Cache miss for org IN DNSKEY
Transaction 24794 for scope dns on /.
Using feature level UDP+EDNS0+DO+LARGE for transaction 24794.
Using DNS server 192.0.2.1 for transaction 24794.
Sending query packet with id 24794.
Requesting DNSKEY to validate transaction 16040 (d7fdd278p5up3itk58hk4vor3le6df4s.org, RRSIG with key tag: 1862).
Requesting DNSKEY to validate transaction 16040 (h9p7u7tr2u91d0v0ljs9l1gidnp90u3h.org, RRSIG with key tag: 1862).
Processing incoming packet on transaction 30353. (rcode=SUCCESS)
Requesting DS to validate transaction 30353 (ntp.org, unsigned SOA/NS RRset).
Processing incoming packet on transaction 24794. (rcode=SUCCESS)
Requesting DS to validate transaction 24794 (org, DNSKEY with key tag: 9795).
Cache miss for org IN DS
Transaction 14213 for scope dns on /.
Using feature level UDP+EDNS0+DO+LARGE for transaction 14213.
Using DNS server 192.0.2.1 for transaction 14213.
Sending query packet with id 14213.
Requesting DS to validate transaction 24794 (org, DNSKEY with key tag: 1862).
Requesting DS to validate transaction 24794 (org, DNSKEY with key tag: 6368).
Requesting DS to validate transaction 24794 (org, DNSKEY with key tag: 17883).
Processing incoming packet on transaction 14213. (rcode=SUCCESS)
Requesting DNSKEY to validate transaction 14213 (org, RRSIG with key tag: 46809).
Cache miss for . IN DNSKEY
Transaction 17231 for <. IN DNSKEY> scope dns on /.
Using feature level UDP+EDNS0+DO+LARGE for transaction 17231.
Using DNS server 192.0.2.1 for transaction 17231.
Sending query packet with id 17231.
Processing incoming packet on transaction 17231. (rcode=SUCCESS)
Requesting DS to validate transaction 17231 (., DNSKEY with key tag: 20326).
Requesting DS to validate transaction 17231 (., DNSKEY with key tag: 19036).
Requesting DS to validate transaction 17231 (., DNSKEY with key tag: 46809).
Validating response from transaction 17231 (. IN DNSKEY).
Looking at . IN DNSKEY 257 3 RSASHA256 AwEAAaz/tAm8yTn4Mfeh5eyI96WSVexTBAvkMgJzkKTOiW1vkIbzxeF3+/4RgWOq7HrxRixHlFlEx
OLAJr5emLvN7SWXgnLh4+B5xQlNVz8Og8kvArMtNROxVQuCaSnIDdD5LKyWbRd2n9WGe2R8PzgCmr
3EgVLrjyBxWezF0jLHwVN8efS3rCj/EWgvIWgb9tarpVUDK/b58Da+sqqls3eNbuv7pr+eoZG+SrD
K6nWeL3c6H5Apxz7LjVc1uTIdsIXxuOLYA4/ilBmSVIzuDWfdRUfhHdY6+cn8HFRm+2hM8AnXGXws
9555KrUB5qihylGa8subX2Nn6UwNR1AkUTV74bU=
-- Flags: SEP ZONE_KEY
-- Key tag: 20326: validated
Found verdict for lookup . IN DNSKEY: secure
Added positive authenticated cache entry for . IN DNSKEY 5835s on */INET/192.0.2.1
Added positive authenticated cache entry for . IN DNSKEY 5835s on */INET/192.0.2.1
Added positive authenticated cache entry for . IN DNSKEY 5835s on */INET/192.0.2.1
Transaction 17231 for <. IN DNSKEY> on scope dns on / now complete with from network (authenticated).
Validating response from transaction 14213 (org IN DS).
Looking at org IN DS 9795 7 1 364dfab3daf254cab477b5675b10766ddaa24982: validated
Found verdict for lookup org IN DS: secure
Added positive authenticated cache entry for org IN DS 6331s on */INET/192.0.2.1
Added positive authenticated cache entry for org IN DS 6331s on */INET/192.0.2.1
Transaction 14213 for on scope dns on / now complete with from network (authenticated).
Validating response from transaction 24794 (org IN DNSKEY).
Looking at org IN DNSKEY 257 3 RSASHA1-NSEC3-SHA1 AwEAAZTjbIO5kIpxWUtyXc8avsKyHIIZ+LjC2Dv8naO+Tz6X2fqzDC1bdq7HlZwtka
qTkMVVJ+8gE9FIreGJ4c8G1GdbjQgbP1OyYIG7OHTc4hv5T2NlyWr6k6QFz98Q4zwF
IGTFVvwBhmrMDYsOTtXakK6QwHovA1+83BsUACxlidpwB0hQacbD6x+I2RCDzYuTzj
64Jv0/9XsX6AYV3ebcgn4hL1jIR2eJYyXlrAoWxdzxcW//5yeL5RVWuhRxejmnSVnC
uxkfS4AQ485KH2tpdbWcCopLJZs6tw8q3jWcpTGzdh/v3xdYfNpQNcPImFlxAun3Bt
ORPA2r8ti6MNoJEHU=
-- Flags: SEP ZONE_KEY
-- Key tag: 9795: validated
Found verdict for lookup org IN DNSKEY: secure
Added positive authenticated cache entry for org IN DNSKEY 900s on */INET/192.0.2.1
Added positive authenticated cache entry for org IN DNSKEY 900s on */INET/192.0.2.1
Added positive authenticated cache entry for org IN DNSKEY 900s on */INET/192.0.2.1
Added positive authenticated cache entry for org IN DNSKEY 900s on */INET/192.0.2.1
Transaction 24794 for on scope dns on / now complete with from network (authenticated).
Validating response from transaction 16040 (ntp.org IN DS).
Looking at d7fdd278p5up3itk58hk4vor3le6df4s.org IN NSEC3 1 1 1 d399eaab D7G4M04B3TRTAB4IVM3SEUCUT3FOTVPB ( ): validated
Found verdict for lookup d7fdd278p5up3itk58hk4vor3le6df4s.org IN NSEC3: secure
Looking at h9p7u7tr2u91d0v0ljs9l1gidnp90u3h.org IN NSEC3 1 1 1 d399eaab H9PARR669T6U8O1GSG9E1LMITK4DEM0T ( NS SOA RRSIG DNSKEY NSEC3PARAM ): validated
Found verdict for lookup h9p7u7tr2u91d0v0ljs9l1gidnp90u3h.org IN NSEC3: secure
Looking at org IN SOA a0.org.afilias-nst.info noc.afilias-nst.info 2012778125 1800 900 604800 86400: validated
Found verdict for lookup org IN SOA: secure
Data is NSEC3 opt-out via NSEC/NSEC3 for transaction 16040 (ntp.org IN DS)
Found verdict for lookup ntp.org IN DS: insecure
Added positive authenticated cache entry for d7fdd278p5up3itk58hk4vor3le6df4s.org IN NSEC3 31s on */INET/192.0.2.1
Added positive authenticated cache entry for h9p7u7tr2u91d0v0ljs9l1gidnp90u3h.org IN NSEC3 31s on */INET/192.0.2.1
Added positive authenticated cache entry for org IN SOA 31s on */INET/192.0.2.1
Added NODATA cache entry for ntp.org IN DS 31s
Transaction 16040 for <ntp.org IN DS> on scope dns on / now complete with from network (unsigned).
Validating response from transaction 30353 (ntp.org IN SOA).
Looking at ntp.org IN SOA ns1.everett.org postmaster.ntp.org 2017121100 1860 780 1209600 82800: no-signature
Found verdict for lookup ntp.org IN SOA: insecure
Looking at ntp.org IN NS ns4.p20.dynect.net: no-signature
Found verdict for lookup ntp.org IN NS: insecure
Looking at ns1.p20.dynect.net IN A 208.78.70.20: no-signature
Looking at ns1.p20.dynect.net IN AAAA 2001:500:90:1::20: no-signature
Looking at ns2.p20.dynect.net IN A 204.13.250.20: no-signature
Looking at ns3.p20.dynect.net IN A 208.78.71.20: no-signature
Looking at ns3.p20.dynect.net IN AAAA 2001:500:94:1::20: no-signature
Looking at ns4.p20.dynect.net IN A 204.13.251.20: no-signature
Looking at dns1.udel.edu IN A 128.175.13.16: no-signature
Looking at dns2.udel.edu IN A 128.175.13.17: no-signature
Looking at anyns.pch.net IN A 204.61.216.4: missing-key
Looking at anyns.pch.net IN AAAA 2001:500:14:6004:ad::1: missing-key
Added positive unauthenticated cache entry for ntp.org IN SOA 3486s on */INET/192.0.2.1
Transaction 30353 for <ntp.org IN SOA> on scope dns on / now complete with from network (unsigned).
Validating response from transaction 51242 (pool.ntp.org IN DS).
Looking at ntp.org IN SOA ns1.everett.org postmaster.ntp.org 2017121100 1860 780 1209600 82800: no-signature
Found verdict for lookup ntp.org IN SOA: insecure
Found verdict for lookup pool.ntp.org IN DS: insecure
Added NODATA cache entry for pool.ntp.org IN DS 3486s
Transaction 51242 for <pool.ntp.org IN DS> on scope dns on / now complete with from network (unsigned).
Timeout reached on transaction 40019.
Retrying transaction 40019.
Cache miss for 0.debian.pool.ntp.org IN DS
Transaction 40019 for <0.debian.pool.ntp.org IN DS> scope dns on /.
Using feature level UDP+EDNS0+DO+LARGE for transaction 40019.
Sending query packet with id 40019.
Timeout reached on transaction 40019.
Retrying transaction 40019.
Cache miss for 0.debian.pool.ntp.org IN DS
Transaction 40019 for <0.debian.pool.ntp.org IN DS> scope dns on /.
Using feature level UDP+EDNS0+DO+LARGE for transaction 40019.
Sending query packet with id 40019.
Timeout reached on transaction 40019.
Retrying transaction 40019.
Cache miss for 0.debian.pool.ntp.org IN DS
Transaction 40019 for <0.debian.pool.ntp.org IN DS> scope dns on /.
Lost too many UDP packets, downgrading feature level...
Using degraded feature set (UDP+EDNS0+DO) for DNS server 192.0.2.1.
Using feature level UDP+EDNS0+DO for transaction 40019.
Sending query packet with id 40019.
Processing incoming packet on transaction 40019. (rcode=SERVFAIL)
Server returned error SERVFAIL, retrying transaction with reduced feature level UDP+EDNS0.
Retrying transaction 40019.
Cache miss for 0.debian.pool.ntp.org IN DS
Transaction 40019 for <0.debian.pool.ntp.org IN DS> scope dns on /.
Using feature level UDP+EDNS0 for transaction 40019.
Sending query packet with id 40019.
Timeout reached on transaction 40019.
Retrying transaction 40019.
Cache miss for 0.debian.pool.ntp.org IN DS
Transaction 40019 for <0.debian.pool.ntp.org IN DS> scope dns on /.
Using feature level UDP+EDNS0 for transaction 40019.
Sending query packet with id 40019.
Timeout reached on transaction 40019.
Retrying transaction 40019.
Cache miss for 0.debian.pool.ntp.org IN DS
Transaction 40019 for <0.debian.pool.ntp.org IN DS> scope dns on /.
Using feature level UDP+EDNS0 for transaction 40019.
Sending query packet with id 40019.
Timeout reached on transaction 40019.
Retrying transaction 40019.
Cache miss for 0.debian.pool.ntp.org IN DS
Transaction 40019 for <0.debian.pool.ntp.org IN DS> scope dns on /.
Using feature level UDP+EDNS0 for transaction 40019.
Sending query packet with id 40019.
Timeout reached on transaction 40019.
Retrying transaction 40019.
Removing cache entry for d7fdd278p5up3itk58hk4vor3le6df4s.org IN NSEC3 (expired 0s ago)
Removing cache entry for h9p7u7tr2u91d0v0ljs9l1gidnp90u3h.org IN NSEC3 (expired 0s ago)
Removing cache entry for org IN SOA (expired 0s ago)
Removing cache entry for ntp.org IN DS (expired 0s ago)
Cache miss for 0.debian.pool.ntp.org IN DS
Transaction 40019 for <0.debian.pool.ntp.org IN DS> scope dns on /.
Using feature level UDP+EDNS0 for transaction 40019.
Sending query packet with id 40019.
Timeout reached on transaction 40019.
Retrying transaction 40019.
Cache miss for 0.debian.pool.ntp.org IN DS
Transaction 40019 for <0.debian.pool.ntp.org IN DS> scope dns on /.
Using feature level UDP+EDNS0 for transaction 40019.
Sending query packet with id 40019.
Timeout reached on transaction 40019.
Retrying transaction 40019.
Cache miss for 0.debian.pool.ntp.org IN DS
Transaction 40019 for <0.debian.pool.ntp.org IN DS> scope dns on /.
Using feature level UDP+EDNS0 for transaction 40019.
Sending query packet with id 40019.
Got message type=signal sender=org.freedesktop.DBus destination=n/a object=/org/freedesktop/DBus interface=org.freedesktop.DBus member=NameOwnerChanged cookie=8 reply_cookie=0 error-name=n/a error-message=n/a
Sent message type=method_call sender=n/a destination=org.freedesktop.DBus object=/org/freedesktop/DBus interface=org.freedesktop.DBus member=RemoveMatch cookie=6 reply_cookie=0 error-name=n/a error-message=n/a
Got message type=method_return sender=org.freedesktop.DBus destination=:1.405 object=n/a interface=n/a member=n/a cookie=9 reply_cookie=6 error-name=n/a error-message=n/a
Client of active query vanished, aborting query.
Freeing transaction 62314.
Freeing transaction 46571.
Freeing transaction 51946.
Freeing transaction 51242.
Freeing transaction 30353.
Freeing transaction 16040.
Freeing transaction 24794.
Freeing transaction 14213.
Freeing transaction 17231.
Freeing transaction 40019.
I tried to resolve 0.debian.pool.ntp.org manually. It seems that IPv6 does not work on a.ntpns.org. The recursive resolver that systemd-resolved forwards its queries to is dnsmasq and it seems to prefer IPv6 addresses and has a longer timeout than systemd-resolved. There are two problems here: BIND does not seem to try IPv6 and IPv4 in parallel and systemd-resolved has too short timeouts and therefore thinks that the resolver that it forwards its queries to is broken and therefore degrades the feature set. I will have a closer look at BIND but I think we should change systemd-resolved as well. In the area where I'm living 750 ms RTT is not uncommon with one of the mobile network operators and I think systemd-resolved's timeout values might be too low.
BIND seems to have default query timeout of 10 seconds, so systemd-resolved does not work well with it and often degrades the feature set. Unbound seems to work better with BIND. I will have a look at Unbound's infra cache module and will see whether we can adapt systemd-resolved's timeout and feature set algorithm to be more compatible with BIND and similar DNS resolver software.
I switched from Unbound to systemd-resolved a few days ago and DNS resolution often does not work anymore when I enable DNSSEC. For a user who doesn't know about all the details it will look like the Internet is broken.
Just wanted to add that I observed the same with v238. The issues are exactly the same, restart solves the problems (and the upstream servers queried are bind9s). systemd-resolved slowly degrades (but never attempts to upgrade after some time ?) with - what looks like - 5s timeouts. I'm not sure how bind9 itself works when resolving takes time (according to documentation, controlled by resolver-query-timeout, with default and possible minimum 10s, settable up to 30s), but that seems to be confusing systemd's resolver about losing / not receiving expected replies. Whether bind9 internally extends the delay up to 30s(?) for failed queries or not - I'm not sure (I read something somewhere that ancient bind8 behaved this way).
Some way to control systemd-resolved behaviour (in context of timeouts, or policy how to retry / how hard to try) would be nice to have. Otherwise any timeout for any reason is essentially a slow but one-way ticket with resolved degrading itself to unnecessarily limited functionality or - in case of dnssec=yes - non-workable state requiring restart.
I confirm this issue on Bionic, systemd 237-3ubuntu10.3.
Suddenly all DNS resolution stops working. I have to restart systemd-resolved service to restore sanity.
I'm also affected by this issue. Unfortunately, it seems some major changes in the way systemd-resolved determines the features that an upstream resolver supports. You are invited to help with #9384.
Seems to be a regression after a BIND/dnsutils update approx 2 weeks ago [BIND 1:9.16.1-0ubuntu2.16/9.18.18-0ubuntu0.22.04.1-Ubuntu (Extended Support Version)], effecting Ubuntu versions 20x/22x. I have had the issue since the update. The longer it allowed to persist the worse it gets to the point DNS errors and failures show in all logs, Nginx, domain, mail server, and even apt when running an update.
systemd 249 (249.11-0ubuntu3.11)
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question . IN SOA: incompatible-server
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question arpa IN DS: incompatible-server
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question arpa IN SOA: incompatible-server
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question in-addr.arpa IN DS: incompatible-server
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question in-addr.arpa IN SOA: incompatible-server
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question 94.in-addr.arpa IN DS: incompatible-server
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question 156.94.in-addr.arpa IN DS: incompatible-server
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question 156.94.in-addr.arpa IN SOA: incompatible-server
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question 69.156.94.in-addr.arpa IN DS: incompatible-server
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question 69.156.94.in-addr.arpa IN SOA: incompatible-server
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question 31.69.156.94.in-addr.arpa IN DS: incompatible-server
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question 31.69.156.94.in-addr.arpa IN SOA: incompatible-server
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question 31.69.156.94.in-addr.arpa IN PTR: incompatible-server
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question . IN SOA: incompatible-server
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question arpa IN DS: incompatible-server
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question arpa IN SOA: incompatible-server
Nov 14 09:21:15 thundercloud postfix/smtpd[78707]: connect from unknown[94.156.69.31]
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question in-addr.arpa IN DS: incompatible-server
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question in-addr.arpa IN SOA: incompatible-server
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question 94.in-addr.arpa IN DS: incompatible-server
Nov 14 09:21:15 thundercloud systemd-resolved[1495]: DNSSEC validation failed for question 31.69.156.94.in-addr.arpa IN PTR: incompatible-server
service systemd-resolved restart resets it but lasts less than an hour, so I run an hourly cron for now.
Activity
poettering commentedon Jul 31, 2017
it appears that resolved comes to the conclusion that your DNS server doesn't properly do DNSSEC. Please run systemd-resolved with the "SYSTEMD_LOG_LEVEL=debug" env var (by doing systemctl edit systemd-resolved, and then adding the two lines
[Service]andEnvironment=SYSTEMD_LOG_LEVELfollowed by systemctl restart systemd-resolved), to see the trace in the logs why it comes to that conclusion.cstrotm commentedon Jul 31, 2017
I'll add the debug log level and will report my findings. Thanks
cstrotm commentedon Aug 3, 2017
with debug logging enabled, the issue appears much less frequently, but I had two issues this morning
the journal shows
the systemd-resolved Unit contains
and the environment variable is active
but the journal does not contain a trace of the DNS resolution.
Anything I might be doing wrong?
poettering commentedon Aug 7, 2017
any chance you can provide a longer log excerpt around the lookup?
cstrotm commentedon Aug 7, 2017
Hello Lennart,
sure, here is a full session from a few days ago (with debug logging environment variable present as discussed above, but the journal log does not show any additional information):
at 14:46:01 I've restarted systemd-resolved and the previous failing domains were starting to resolve without issues again.
poettering commentedon Dec 8, 2017
Hmm, is this reproducible still with current systemd? If so, the logs shown already state that a degraded DNS feature level is used for the server. resolved initially uses the most powerful feature level, and then downgrades bit by bit, if it notices that its requests don't work. Now, given that you already are one level down something must have happened before making resolved think that the server is bad. Hence, if you can reproduce this with v235, any chance you can trigger this again and then look for messages earlier than the issue you are encountering that show when and why resolved decided to downgrade?
ott commentedon Dec 12, 2017
Yes, the problem is reproducible with current systemd:
I tried to resolve
0.debian.pool.ntp.orgmanually. It seems that IPv6 does not work ona.ntpns.org. The recursive resolver that systemd-resolved forwards its queries to is dnsmasq and it seems to prefer IPv6 addresses and has a longer timeout than systemd-resolved. There are two problems here: BIND does not seem to try IPv6 and IPv4 in parallel and systemd-resolved has too short timeouts and therefore thinks that the resolver that it forwards its queries to is broken and therefore degrades the feature set. I will have a closer look at BIND but I think we should change systemd-resolved as well. In the area where I'm living 750 ms RTT is not uncommon with one of the mobile network operators and I think systemd-resolved's timeout values might be too low.cstrotm commentedon Dec 13, 2017
@poettering I'm very busy this week but I will try v235 next week or over the holidays and report back
ott commentedon Dec 13, 2017
BIND seems to have default query timeout of 10 seconds, so systemd-resolved does not work well with it and often degrades the feature set. Unbound seems to work better with BIND. I will have a look at Unbound's infra cache module and will see whether we can adapt systemd-resolved's timeout and feature set algorithm to be more compatible with BIND and similar DNS resolver software.
I switched from Unbound to systemd-resolved a few days ago and DNS resolution often does not work anymore when I enable DNSSEC. For a user who doesn't know about all the details it will look like the Internet is broken.
msoltyspl commentedon Jul 3, 2018
Just wanted to add that I observed the same with v238. The issues are exactly the same, restart solves the problems (and the upstream servers queried are bind9s). systemd-resolved slowly degrades (but never attempts to upgrade after some time ?) with - what looks like - 5s timeouts. I'm not sure how bind9 itself works when resolving takes time (according to documentation, controlled by resolver-query-timeout, with default and possible minimum 10s, settable up to 30s), but that seems to be confusing systemd's resolver about losing / not receiving expected replies. Whether bind9 internally extends the delay up to 30s(?) for failed queries or not - I'm not sure (I read something somewhere that ancient bind8 behaved this way).
Some way to control systemd-resolved behaviour (in context of timeouts, or policy how to retry / how hard to try) would be nice to have. Otherwise any timeout for any reason is essentially a slow but one-way ticket with resolved degrading itself to unnecessarily limited functionality or - in case of dnssec=yes - non-workable state requiring restart.
Options such as (global + per-link):
MaxRetries=
ReplyTimeout=
NeverDowngrade=
etc.
EDIT: some clarifications
crosser commentedon Aug 11, 2018
I confirm this issue on Bionic, systemd 237-3ubuntu10.3.
Suddenly all DNS resolution stops working. I have to restart systemd-resolved service to restore sanity.
ott commentedon Aug 31, 2018
I'm also affected by this issue. Unfortunately, it seems some major changes in the way systemd-resolved determines the features that an upstream resolver supports. You are invited to help with #9384.
BryanQuigley commentedon Oct 19, 2018
I have not been able to reproduce since specifying FallbackDNS.
Does anyone have a reliable (with a specified time it will take) way to reproduce it?
26 remaining items
toreanderson commentedon Nov 20, 2020
poettering@ca8fe05 will in all likelihood fix this issue 🎉
MartinX3 commentedon Jan 18, 2021
Still an issue with 247.2
resolved: never go below DNSSEC feature level in DNSSEC strict mode
resolved: never go below DNSSEC feature level in DNSSEC strict mode
resolved: never go below DNSSEC feature level in DNSSEC strict mode
poettering commentedon Feb 17, 2021
Fixed by #18624
GaalexxC commentedon Nov 14, 2023
Seems to be a regression after a BIND/dnsutils update approx 2 weeks ago [BIND 1:9.16.1-0ubuntu2.16/9.18.18-0ubuntu0.22.04.1-Ubuntu (Extended Support Version)], effecting Ubuntu versions 20x/22x. I have had the issue since the update. The longer it allowed to persist the worse it gets to the point DNS errors and failures show in all logs, Nginx, domain, mail server, and even apt when running an update.
systemd 249 (249.11-0ubuntu3.11)service systemd-resolved restartresets it but lasts less than an hour, so I run an hourly cron for now.