Skip to content

resolved: DNSSEC records still not passed to applications #18714

Closed

Description

@pemensik

systemd version the issue has been seen with

systemd 247 (247-1717-g2306d17)

Used distribution

Fedora 32

Linux kernel version used (uname -a)

Linux menpad 5.9.14-100.fc32.x86_64 #1 SMP Fri Dec 11 14:30:38 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

CPU architecture issue was seen on

…

Expected behaviour you didn't see

DNSSEC validation works for applications using resolved

$ delv @192.168.88.9
; fully validated
.			285366	IN	NS	i.root-servers.net.
.			285366	IN	NS	d.root-servers.net.
.			285366	IN	NS	a.root-servers.net.
.			285366	IN	NS	e.root-servers.net.
.			285366	IN	NS	g.root-servers.net.
.			285366	IN	NS	j.root-servers.net.
.			285366	IN	NS	k.root-servers.net.
.			285366	IN	NS	c.root-servers.net.
.			285366	IN	NS	h.root-servers.net.
.			285366	IN	NS	f.root-servers.net.
.			285366	IN	NS	m.root-servers.net.
.			285366	IN	NS	l.root-servers.net.
.			285366	IN	NS	b.root-servers.net.
.			285366	IN	RRSIG	NS 8 0 518400 20210304170000 20210219160000 42351 . KbajcGV+52CiEfcE4N6mvXINpK5lLcMHFyyPXxQX/FX29Q/08y+oatJP HjgOHoIWAqeynU6O36ZgrwcK7Q7z3VpqU2lQXUhVmGpotBxNG1xKECo7 OUVYFbLjvNXA0USMcljegTeywLeM1w9fTi9y9+4Xo27lbT8PlrFdimzy NbYtE1zaBZ7ijn7glh/KJ9moTLG85FXKpPa57xUe1iDLqpTfehTRGE57 nLlVOjgPbVMfANHrHyHTRi6G5ZZDheqcMhPU7eF2cgjEMNDOYYTQOCZa f/tb+itCiuIjQ7R4ubizcOt8ZkQztoxHebXCo7aYswQwh9ddOED1d64j 5LKzZQ==

Unexpected behaviour you saw

DNSSEC records are filtered out

$ delv @127.0.0.53
;; validating ./NS: got insecure response; parent indicates it should be secure
;; insecurity proof failed resolving './NS/IN': 127.0.0.53#53
;; resolution failed: insecurity proof failed

Steps to reproduce the problem

Have DNSSEC=yes in resolved.conf
delv @127.0.0.53

Additional program output to the terminal or log subsystem illustrating the issue

$ sudo  SYSTEMD_LOG_LEVEL=debug build/systemd-resolved
SELinux enabled state cached to: enabled
Successfully loaded SELinux database in 2.317ms, size on heap is 340K.
Positive Trust Anchors:
. IN DS 20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
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 23.172.in-addr.arpa 24.172.in-addr.arpa 25.172.in-addr.arpa 26.172.in-addr.arpa 27.172.in-addr.arpa 28.172.in-addr.arpa 29.172.in-addr.arpa 30.172.in-addr.arpa 31.172.in-addr.arpa 168.192.in-addr.arpa d.f.ip6.arpa corp home internal intranet lan local private test
Using system hostname 'menpad'.
New scope on link *, protocol dns, family *
Found new link 32/vnet2
Found new link 31/vnet1
Found new link 30/vnet0
Found new link 8/virbr1-nic
Found new link 7/virbr1
Found new link 6/virbr0-nic
Found new link 5/virbr0
Found new link 4/vz-spawn
Found new link 3/wlp4s0
Found new link 2/enp0s31f6
Found new link 1/lo
New scope on link vnet2, protocol llmnr, family AF_INET6
Regular transaction 20398 for <menpad IN ANY> scope llmnr on vnet2/INET6 (validate=yes).
Delaying llmnr transaction for 83714us.
New scope on link vnet1, protocol llmnr, family AF_INET6
Regular transaction 65332 for <menpad IN ANY> scope llmnr on vnet1/INET6 (validate=yes).
Delaying llmnr transaction for 88440us.
New scope on link vnet0, protocol llmnr, family AF_INET6
Regular transaction 43795 for <menpad IN ANY> scope llmnr on vnet0/INET6 (validate=yes).
Delaying llmnr transaction for 84900us.
New scope on link virbr0, protocol llmnr, family AF_INET6
Regular transaction 44864 for <menpad IN ANY> scope llmnr on virbr0/INET6 (validate=yes).
Delaying llmnr transaction for 87648us.
New scope on link enp0s31f6, protocol llmnr, family AF_INET6
Regular transaction 16956 for <menpad IN ANY> scope llmnr on enp0s31f6/INET6 (validate=yes).
Delaying llmnr transaction for 93129us.
New scope on link virbr0, protocol llmnr, family AF_INET
Regular transaction 32245 for <menpad IN ANY> scope llmnr on virbr0/INET (validate=yes).
Delaying llmnr transaction for 5092us.
New scope on link enp0s31f6, protocol dns, family *
New scope on link enp0s31f6, protocol llmnr, family AF_INET
Regular transaction 31111 for <menpad IN ANY> scope llmnr on enp0s31f6/INET (validate=yes).
Delaying llmnr transaction for 98920us.
Bus bus-api-resolve: changing state UNSET → OPENING
sd-bus: starting bus bus-api-resolve by connecting to /run/dbus/system_bus_socket...
Bus bus-api-resolve: changing state OPENING → AUTHENTICATING
Registering bus object implementation for path=/org/freedesktop/resolve1 iface=org.freedesktop.resolve1.Manager
Registering bus object implementation for path=/org/freedesktop/resolve1/link iface=org.freedesktop.resolve1.Link
Registering bus object implementation for path=/org/freedesktop/resolve1/dnssd iface=org.freedesktop.resolve1.DnssdService
Registering bus object implementation for path=/org/freedesktop/LogControl1 iface=org.freedesktop.LogControl1
Creating stub listener using UDP/TCP.
/etc/resolv.conf:3: Ignoring resolv.conf line: options edns0 trust-ad
Switching to system DNS server 127.0.0.1.
Bus bus-api-resolve: changing state AUTHENTICATING → HELLO
Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=RequestName cookie=2 reply_cookie=0 signature=su error-name=n/a error-message=n/a
Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=AddMatch cookie=3 reply_cookie=0 signature=s error-name=n/a error-message=n/a
Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/resolve1 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=4 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Got message type=method_return sender=org.freedesktop.DBus destination=:1.45191 path=n/a interface=n/a member=n/a cookie=4294967295 reply_cookie=1 signature=s error-name=n/a error-message=n/a
Bus bus-api-resolve: changing state HELLO → RUNNING
Got message type=signal sender=org.freedesktop.DBus.Local destination=n/a path=/org/freedesktop/DBus/Local interface=org.freedesktop.DBus.Local member=Connected cookie=4294967295 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Got message type=signal sender=org.freedesktop.DBus destination=:1.45191 path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=NameAcquired cookie=4294967295 reply_cookie=0 signature=s error-name=n/a error-message=n/a
Got message type=signal sender=org.freedesktop.DBus destination=:1.45191 path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=NameAcquired cookie=4294967295 reply_cookie=0 signature=s error-name=n/a error-message=n/a
Got message type=method_return sender=org.freedesktop.DBus destination=:1.45191 path=n/a interface=n/a member=n/a cookie=4294967295 reply_cookie=2 signature=u error-name=n/a error-message=n/a
Successfully acquired requested service name.
Got message type=method_return sender=org.freedesktop.DBus destination=:1.45191 path=n/a interface=n/a member=n/a cookie=4294967295 reply_cookie=3 signature= error-name=n/a error-message=n/a
Match type='signal',sender='org.freedesktop.login1',path='/org/freedesktop/login1',interface='org.freedesktop.login1.Manager',member='PrepareForSleep' successfully installed.
Timeout reached on transaction 32245.
Retrying transaction 32245, after switching servers.
Regular transaction 32245 for <menpad IN ANY> scope llmnr on virbr0/INET (validate=yes).
Sending query packet with id 32245 on interface 5/AF_INET of size 24.
Timeout reached on transaction 31111.
Retrying transaction 31111, after switching servers.
Regular transaction 31111 for <menpad IN ANY> scope llmnr on enp0s31f6/INET (validate=yes).
Sending query packet with id 31111 on interface 2/AF_INET of size 24.
Timeout reached on transaction 16956.
Retrying transaction 16956, after switching servers.
Regular transaction 16956 for <menpad IN ANY> scope llmnr on enp0s31f6/INET6 (validate=yes).
Sending query packet with id 16956 on interface 2/AF_INET6 of size 24.
Timeout reached on transaction 20398.
Retrying transaction 20398, after switching servers.
Regular transaction 20398 for <menpad IN ANY> scope llmnr on vnet2/INET6 (validate=yes).
Sending query packet with id 20398 on interface 32/AF_INET6 of size 24.
Timeout reached on transaction 44864.
Retrying transaction 44864, after switching servers.
Regular transaction 44864 for <menpad IN ANY> scope llmnr on virbr0/INET6 (validate=yes).
Sending query packet with id 44864 on interface 5/AF_INET6 of size 24.
Timeout reached on transaction 65332.
Retrying transaction 65332, after switching servers.
Regular transaction 65332 for <menpad IN ANY> scope llmnr on vnet1/INET6 (validate=yes).
Sending query packet with id 65332 on interface 31/AF_INET6 of size 24.
Timeout reached on transaction 43795.
Retrying transaction 43795, after switching servers.
Regular transaction 43795 for <menpad IN ANY> scope llmnr on vnet0/INET6 (validate=yes).
Sending query packet with id 43795 on interface 30/AF_INET6 of size 24.
Received llmnr UDP packet of size 24, ifindex=2, ttl=255, fragsize=0
Received llmnr UDP packet of size 24, ifindex=2, ttl=255, fragsize=0
Received llmnr UDP packet of size 24, ifindex=32, ttl=255, fragsize=0
Received llmnr UDP packet of size 24, ifindex=31, ttl=255, fragsize=0
Received llmnr UDP packet of size 24, ifindex=30, ttl=255, fragsize=0
Timeout reached on transaction 32245.
Retrying transaction 32245, after switching servers.
Regular transaction 32245 for <menpad IN ANY> scope llmnr on virbr0/INET (validate=yes).
Sending query packet with id 32245 on interface 5/AF_INET of size 24.
Timeout reached on transaction 43795.
Retrying transaction 43795, after switching servers.
Regular transaction 43795 for <menpad IN ANY> scope llmnr on vnet0/INET6 (validate=yes).
Sending query packet with id 43795 on interface 30/AF_INET6 of size 24.
Timeout reached on transaction 65332.
Retrying transaction 65332, after switching servers.
Regular transaction 65332 for <menpad IN ANY> scope llmnr on vnet1/INET6 (validate=yes).
Sending query packet with id 65332 on interface 31/AF_INET6 of size 24.
Timeout reached on transaction 31111.
Retrying transaction 31111, after switching servers.
Regular transaction 31111 for <menpad IN ANY> scope llmnr on enp0s31f6/INET (validate=yes).
Sending query packet with id 31111 on interface 2/AF_INET of size 24.
Timeout reached on transaction 44864.
Retrying transaction 44864, after switching servers.
Regular transaction 44864 for <menpad IN ANY> scope llmnr on virbr0/INET6 (validate=yes).
Sending query packet with id 44864 on interface 5/AF_INET6 of size 24.
Timeout reached on transaction 20398.
Retrying transaction 20398, after switching servers.
Regular transaction 20398 for <menpad IN ANY> scope llmnr on vnet2/INET6 (validate=yes).
Sending query packet with id 20398 on interface 32/AF_INET6 of size 24.
Timeout reached on transaction 16956.
Retrying transaction 16956, after switching servers.
Regular transaction 16956 for <menpad IN ANY> scope llmnr on enp0s31f6/INET6 (validate=yes).
Sending query packet with id 16956 on interface 2/AF_INET6 of size 24.
Received llmnr UDP packet of size 24, ifindex=30, ttl=255, fragsize=0
Received llmnr UDP packet of size 24, ifindex=2, ttl=255, fragsize=0
Received llmnr UDP packet of size 24, ifindex=31, ttl=255, fragsize=0
Received llmnr UDP packet of size 24, ifindex=32, ttl=255, fragsize=0
Received llmnr UDP packet of size 24, ifindex=2, ttl=255, fragsize=0
Timeout reached on transaction 32245.
Retrying transaction 32245, after switching servers.
Regular transaction 32245 for <menpad IN ANY> scope llmnr on virbr0/INET (validate=yes).
Sending query packet with id 32245 on interface 5/AF_INET of size 24.
Timeout reached on transaction 16956.
Retrying transaction 16956, after switching servers.
Regular transaction 16956 for <menpad IN ANY> scope llmnr on enp0s31f6/INET6 (validate=yes).
Sending query packet with id 16956 on interface 2/AF_INET6 of size 24.
Timeout reached on transaction 20398.
Retrying transaction 20398, after switching servers.
Regular transaction 20398 for <menpad IN ANY> scope llmnr on vnet2/INET6 (validate=yes).
Sending query packet with id 20398 on interface 32/AF_INET6 of size 24.
Timeout reached on transaction 43795.
Retrying transaction 43795, after switching servers.
Regular transaction 43795 for <menpad IN ANY> scope llmnr on vnet0/INET6 (validate=yes).
Sending query packet with id 43795 on interface 30/AF_INET6 of size 24.
Timeout reached on transaction 44864.
Retrying transaction 44864, after switching servers.
Regular transaction 44864 for <menpad IN ANY> scope llmnr on virbr0/INET6 (validate=yes).
Sending query packet with id 44864 on interface 5/AF_INET6 of size 24.
Timeout reached on transaction 31111.
Retrying transaction 31111, after switching servers.
Regular transaction 31111 for <menpad IN ANY> scope llmnr on enp0s31f6/INET (validate=yes).
Sending query packet with id 31111 on interface 2/AF_INET of size 24.
Timeout reached on transaction 65332.
Retrying transaction 65332, after switching servers.
Regular transaction 65332 for <menpad IN ANY> scope llmnr on vnet1/INET6 (validate=yes).
Sending query packet with id 65332 on interface 31/AF_INET6 of size 24.
Received llmnr UDP packet of size 24, ifindex=2, ttl=255, fragsize=0
Received llmnr UDP packet of size 24, ifindex=2, ttl=255, fragsize=0
Received llmnr UDP packet of size 24, ifindex=32, ttl=255, fragsize=0
Received llmnr UDP packet of size 24, ifindex=30, ttl=255, fragsize=0
Received llmnr UDP packet of size 24, ifindex=31, ttl=255, fragsize=0
Timeout reached on transaction 32245.
Retrying transaction 32245, after switching servers.
Regular transaction 32245 for <menpad IN ANY> on scope llmnr on virbr0/INET now complete with <not-found> from none (unsigned; non-confidential).
Record menpad IN A 192.168.122.1 successfully probed.
Record menpad IN A 192.168.122.2 successfully probed.
Freeing transaction 32245.
Timeout reached on transaction 65332.
Retrying transaction 65332, after switching servers.
Regular transaction 65332 for <menpad IN ANY> on scope llmnr on vnet1/INET6 now complete with <not-found> from none (unsigned; non-confidential).
Record menpad IN AAAA fe80::fc54:ff:fe1c:995 successfully probed.
Freeing transaction 65332.
Timeout reached on transaction 31111.
Retrying transaction 31111, after switching servers.
Regular transaction 31111 for <menpad IN ANY> on scope llmnr on enp0s31f6/INET now complete with <not-found> from none (unsigned; non-confidential).
Record menpad IN A 192.168.88.164 successfully probed.
Freeing transaction 31111.
Timeout reached on transaction 44864.
Retrying transaction 44864, after switching servers.
Regular transaction 44864 for <menpad IN ANY> on scope llmnr on virbr0/INET6 now complete with <not-found> from none (unsigned; non-confidential).
Record menpad IN AAAA fc30:e1c:64cf:2b0a::1 successfully probed.
Record menpad IN AAAA fe80::5054:ff:fe2b:eed3 successfully probed.
Freeing transaction 44864.
Timeout reached on transaction 43795.
Retrying transaction 43795, after switching servers.
Regular transaction 43795 for <menpad IN ANY> on scope llmnr on vnet0/INET6 now complete with <not-found> from none (unsigned; non-confidential).
Record menpad IN AAAA fe80::fc54:ff:fea3:a9d1 successfully probed.
Freeing transaction 43795.
Timeout reached on transaction 20398.
Retrying transaction 20398, after switching servers.
Regular transaction 20398 for <menpad IN ANY> on scope llmnr on vnet2/INET6 now complete with <not-found> from none (unsigned; non-confidential).
Record menpad IN AAAA fe80::fc54:ff:fe2b:ad3b successfully probed.
Freeing transaction 20398.
Timeout reached on transaction 16956.
Retrying transaction 16956, after switching servers.
Regular transaction 16956 for <menpad IN ANY> on scope llmnr on enp0s31f6/INET6 now complete with <not-found> from none (unsigned; non-confidential).
Record menpad IN AAAA fe80::ca5b:76ff:fe03:3a87 successfully probed.
Freeing transaction 16956.

Received dns UDP packet of size 40, ifindex=0, ttl=64, fragsize=0
Got DNS stub UDP query packet for id 58081
Looking up RR for . IN NS.
Switching to DNS server 192.168.88.9 for interface enp0s31f6.
Cache miss for . IN NS
Regular transaction 21125 for <. IN NS> scope dns on enp0s31f6/* (validate=yes).
Using feature level TLS+EDNS0+D0 for transaction 21125.
Using DNS server 192.168.88.9 for transaction 21125.
Sending query via TCP since UDP isn't supported or DNS-over-TLS is selected.
Using feature level TLS+EDNS0+D0 for transaction 21125.
Announcing packet size 512 in egress EDNS(0) packet.
Processing query...
Failed to invoke gnutls_handshake: Error in the push function.
Connection failure for DNS TCP stream: Connection refused
Retrying transaction 21125, after switching servers.
Switching to DNS server 10.129.26.35 for interface enp0s31f6.
Cache miss for . IN NS
Regular transaction 21125 for <. IN NS> scope dns on enp0s31f6/* (validate=yes).
Using feature level TLS+EDNS0+D0 for transaction 21125.
Using DNS server 10.129.26.35 for transaction 21125.
Sending query via TCP since UDP isn't supported or DNS-over-TLS is selected.
Using feature level TLS+EDNS0+D0 for transaction 21125.
Announcing packet size 512 in egress EDNS(0) packet.
Failed to invoke gnutls_handshake: Error in the push function.
Connection failure for DNS TCP stream: Connection refused
Retrying transaction 21125, after switching servers.
Switching to DNS server 46.149.125.37 for interface enp0s31f6.
Cache miss for . IN NS
Regular transaction 21125 for <. IN NS> scope dns on enp0s31f6/* (validate=yes).
Using feature level TLS+EDNS0+D0 for transaction 21125.
Using DNS server 46.149.125.37 for transaction 21125.
Sending query via TCP since UDP isn't supported or DNS-over-TLS is selected.
Using feature level TLS+EDNS0+D0 for transaction 21125.
Announcing packet size 512 in egress EDNS(0) packet.
Failed to invoke gnutls_handshake: Error in the push function.
Connection failure for DNS TCP stream: Connection refused
Retrying transaction 21125, after switching servers.
Switching to DNS server 192.168.88.9 for interface enp0s31f6.
Cache miss for . IN NS
Regular transaction 21125 for <. IN NS> scope dns on enp0s31f6/* (validate=yes).
Server doesn't support DNS-over-TLS, downgrading protocol...
Using degraded feature set UDP+EDNS0+DO+LARGE instead of TLS+EDNS0+D0 for DNS server 192.168.88.9.
Using feature level UDP+EDNS0+DO+LARGE for transaction 21125.
Using DNS server 192.168.88.9 for transaction 21125.
Announcing packet size 1472 in egress EDNS(0) packet.
Emitting UDP, link MTU is 1500, socket MTU is 0, minimal MTU is 40
Sending query packet with id 21125 of size 51.
Received dns UDP packet of size 1097, ifindex=2, ttl=0, fragsize=0
Processing incoming packet of size 1097 on transaction 21125 (rcode=SUCCESS).
Verified we get a response at feature level UDP+EDNS0+DO from DNS server 192.168.88.9.
Requesting DNSKEY to validate transaction 21125 (., RRSIG with key tag: 42351).
Cache miss for . IN DNSKEY
Regular transaction 55627 for <. IN DNSKEY> scope dns on enp0s31f6/* (validate=yes).
Using feature level UDP+EDNS0+DO+LARGE for transaction 55627.
Using DNS server 192.168.88.9 for transaction 55627.
Announcing packet size 1472 in egress EDNS(0) packet.
Emitting UDP, link MTU is 1500, socket MTU is 0, minimal MTU is 40
Sending query packet with id 55627 of size 51.
Received dns UDP packet of size 864, ifindex=2, ttl=0, fragsize=0
Processing incoming packet of size 864 on transaction 55627 (rcode=SUCCESS).
Requesting DS to validate transaction 55627 (., DNSKEY with key tag: 20326).
Requesting DS to validate transaction 55627 (., DNSKEY with key tag: 42351).
Validating response from transaction 55627 (. IN DNSKEY).
Looking at . IN DNSKEY 257 3 RSASHA256 AwEAAaz/tAm8yTn4Mfeh5eyI96WSVexTBAvkMgJzkKTOiW1vkIbzxeF3+/4RgWOq7HrxRixHlFlExOLAJr5emLvN7SWXgnLh4+B5xQlNVz8Og8kvArMtNROxVQuCaSnIDdD5
                            LKyWbRd2n9WGe2R8PzgCmr3EgVLrjyBxWezF0jLHwVN8efS3rCj/EWgvIWgb9tarpVUDK/b58Da+sqqls3eNbuv7pr+eoZG+SrDK6nWeL3c6H5Apxz7LjVc1uTIdsIXxuOLY
                            A4/ilBmSVIzuDWfdRUfhHdY6+cn8HFRm+2hM8AnXGXws9555KrUB5qihylGa8subX2Nn6UwNR1AkUTV74bU=
        -- Flags: SEP ZONE_KEY
        -- Key tag: 20326: validated
Found verdict for lookup . IN DNSKEY: secure
Added positive authenticated non-confidential cache entry for . IN DNSKEY 7200s on enp0s31f6/INET/192.168.88.9
Added positive authenticated non-confidential cache entry for . IN DNSKEY 7200s on enp0s31f6/INET/192.168.88.9
Regular transaction 55627 for <. IN DNSKEY> on scope dns on enp0s31f6/* now complete with <success> from network (authenticated; non-confidential).
Validating response from transaction 21125 (. IN NS).
Looking at . IN NS j.root-servers.net: validated
Found verdict for lookup . IN NS: secure
Looking at a.root-servers.net IN A 198.41.0.4: no-signature
Looking at b.root-servers.net IN A 199.9.14.201: no-signature
Looking at c.root-servers.net IN A 192.33.4.12: no-signature
Looking at d.root-servers.net IN A 199.7.91.13: no-signature
Looking at e.root-servers.net IN A 192.203.230.10: no-signature
Looking at f.root-servers.net IN A 192.5.5.241: no-signature
Looking at g.root-servers.net IN A 192.112.36.4: no-signature
Looking at h.root-servers.net IN A 198.97.190.53: no-signature
Looking at i.root-servers.net IN A 192.36.148.17: no-signature
Looking at j.root-servers.net IN A 192.58.128.30: no-signature
Looking at k.root-servers.net IN A 193.0.14.129: no-signature
Looking at l.root-servers.net IN A 199.7.83.42: no-signature
Looking at m.root-servers.net IN A 202.12.27.33: no-signature
Looking at a.root-servers.net IN AAAA 2001:503:ba3e::2:30: no-signature
Looking at b.root-servers.net IN AAAA 2001:500:200::b: no-signature
Looking at c.root-servers.net IN AAAA 2001:500:2::c: no-signature
Looking at d.root-servers.net IN AAAA 2001:500:2d::d: no-signature
Looking at e.root-servers.net IN AAAA 2001:500:a8::e: no-signature
Looking at f.root-servers.net IN AAAA 2001:500:2f::f: no-signature
Looking at g.root-servers.net IN AAAA 2001:500:12::d0d: no-signature
Looking at h.root-servers.net IN AAAA 2001:500:1::53: no-signature
Looking at i.root-servers.net IN AAAA 2001:7fe::53: no-signature
Looking at j.root-servers.net IN AAAA 2001:503:c27::2:30: no-signature
Looking at k.root-servers.net IN AAAA 2001:7fd::1: no-signature
Looking at l.root-servers.net IN AAAA 2001:500:9f::42: no-signature
Looking at m.root-servers.net IN AAAA 2001:dc3::35: no-signature
Added positive authenticated non-confidential cache entry for . IN NS 7200s on enp0s31f6/INET/192.168.88.9
Added positive authenticated non-confidential cache entry for . IN NS 7200s on enp0s31f6/INET/192.168.88.9
Added positive authenticated non-confidential cache entry for . IN NS 7200s on enp0s31f6/INET/192.168.88.9
Added positive authenticated non-confidential cache entry for . IN NS 7200s on enp0s31f6/INET/192.168.88.9
Added positive authenticated non-confidential cache entry for . IN NS 7200s on enp0s31f6/INET/192.168.88.9
Added positive authenticated non-confidential cache entry for . IN NS 7200s on enp0s31f6/INET/192.168.88.9
Added positive authenticated non-confidential cache entry for . IN NS 7200s on enp0s31f6/INET/192.168.88.9
Added positive authenticated non-confidential cache entry for . IN NS 7200s on enp0s31f6/INET/192.168.88.9
Added positive authenticated non-confidential cache entry for . IN NS 7200s on enp0s31f6/INET/192.168.88.9
Added positive authenticated non-confidential cache entry for . IN NS 7200s on enp0s31f6/INET/192.168.88.9
Added positive authenticated non-confidential cache entry for . IN NS 7200s on enp0s31f6/INET/192.168.88.9
Added positive authenticated non-confidential cache entry for . IN NS 7200s on enp0s31f6/INET/192.168.88.9
Added positive authenticated non-confidential cache entry for . IN NS 7200s on enp0s31f6/INET/192.168.88.9
Regular transaction 21125 for <. IN NS> on scope dns on enp0s31f6/* now complete with <success> from network (authenticated; non-confidential).
Sending response packet with id 58081 on interface 1/AF_INET of size 239.
Freeing transaction 21125.
Freeing transaction 55627.
;; validating ./NS: got insecure response; parent indicates it should be secure
;; insecurity proof failed resolving './NS/IN': 127.0.0.53#53
;; resolution failed: insecurity proof failed

For unknown reason to me, this was already reported on issue #4621, but that was closed without real fix in place. If you need help with testing, I would help to prepare its test, even automated one.

Note, validation in resolved passed, so all needed records were received from server. AD flag is present. But RRSIG is still missing.

$ dig +dnssec @127.0.0.53
Received dns UDP packet of size 40, ifindex=0, ttl=64, fragsize=0
Got DNS stub UDP query packet for id 29594
Looking up RR for . IN NS.
Removing cache entry for fedoraproject.org IN A (expired 86s ago)
Positive cache hit for . IN NS
Regular transaction 58353 for <. IN NS> on scope dns on enp0s31f6/* now complete with <success> from cache (authenticated; non-confidential).
Freeing transaction 58353.
Sending response packet with id 29594 on interface 1/AF_INET of size 239.
Processing query...

; <<>> DiG 9.16.11-RedHat-9.16.11-2.fc32 <<>> +dnssec @127.0.0.53
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39539
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 65494
;; QUESTION SECTION:
;.				IN	NS

;; ANSWER SECTION:
.			6912	IN	NS	i.root-servers.net.
.			6912	IN	NS	g.root-servers.net.
.			6912	IN	NS	c.root-servers.net.
.			6912	IN	NS	l.root-servers.net.
.			6912	IN	NS	h.root-servers.net.
.			6912	IN	NS	b.root-servers.net.
.			6912	IN	NS	a.root-servers.net.
.			6912	IN	NS	m.root-servers.net.
.			6912	IN	NS	d.root-servers.net.
.			6912	IN	NS	f.root-servers.net.
.			6912	IN	NS	k.root-servers.net.
.			6912	IN	NS	j.root-servers.net.
.			6912	IN	NS	e.root-servers.net.

;; Query time: 1 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: So úno 20 15:28:30 CET 2021
;; MSG SIZE  rcvd: 239

Activity

  1. pemensik commented on Feb 20, 2021

    @pemensik
    ContributorAuthor

    It is still the old issue #4621, which in my opinion were not fixed.

  2. poettering commented on Feb 22, 2021

    @poettering
    Member

    delv works for me with #18747. Not sure where propagation of the RRSIG data got lost in the middle...

  3. added a commit that references this issue on Feb 23, 2021
    048e043
  4. pemensik commented on Feb 24, 2021

    @pemensik
    ContributorAuthor

    Confirmed, thank you. This time client validation works both for positive and negative answers. Thank you for the hard work.

    $ build/systemd-resolved --version
    systemd 248 (248-rc2-1-g64297c8)
    +PAM +AUDIT +SELINUX -APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified
    
    $ delv apps.fedoraproject.org @127.0.0.53
    ; fully validated
    apps.fedoraproject.org.	299	IN	CNAME	wildcard.fedoraproject.org.
    apps.fedoraproject.org.	299	IN	RRSIG	CNAME 5 3 300 20210325140553 20210223140553 7725 fedoraproject.org. h7+bGxFAgDixfN1oPNjW3J037n+Ki0wM0hCoN8Al5OO29TaNOG+WcZ7c 0F+l4Og/RiG3DXZS/iP/LAuRL+hn20fMiaL1ROu2JWd/neY0c1PndiQX lmeZDSFFtwSmdaZJzzSqf/CQTSXKLDfaHLoAy1Vth862pAASbh6sDKe0 894=
    wildcard.fedoraproject.org. 60	IN	A	18.185.136.17
    wildcard.fedoraproject.org. 60	IN	A	209.132.190.2
    wildcard.fedoraproject.org. 60	IN	A	152.19.134.142
    wildcard.fedoraproject.org. 60	IN	A	38.145.60.21
    wildcard.fedoraproject.org. 60	IN	A	8.43.85.67
    wildcard.fedoraproject.org. 60	IN	A	85.236.55.6
    wildcard.fedoraproject.org. 60	IN	A	185.141.165.254
    wildcard.fedoraproject.org. 60	IN	A	38.145.60.20
    wildcard.fedoraproject.org. 60	IN	A	140.211.169.206
    wildcard.fedoraproject.org. 60	IN	A	18.133.140.134
    wildcard.fedoraproject.org. 60	IN	A	67.219.144.68
    wildcard.fedoraproject.org. 60	IN	A	152.19.134.198
    wildcard.fedoraproject.org. 60	IN	A	18.159.254.57
    wildcard.fedoraproject.org. 60	IN	RRSIG	A 5 3 60 20210325140553 20210223140553 7725 fedoraproject.org. g0awfuC48WWTzow8jV+t+/n9IFTm1XBr4QLhrVvHpbvXWvCWd+BWvaTE ioydMVhazOEbj6bqr36gVPyvqdBF+GoyVu9ajwxT9IGeXfCwmuX3QqI0 7F0g+NG+FSEms/x2pG0lgQX7fKxknD6faWnPhAHXdS0pmqGXi8uDfpjl XCU=
    
  5. rathann commented on Feb 24, 2021

    @rathann

    Will this be backported to F33?

  6. keszybz commented on Feb 24, 2021

    @keszybz
    Member

    Will this be backported to F33?

    It's is a lot of new code. Maybe if everything works fine in F34, we could do a massive backport. It seems to early to say.

  7. Tachi107 commented on Dec 23, 2021

    @Tachi107
    Contributor

    @pemensik is delv still working for you? It seems that mine doesn't (anymore?)

    $ delv apps.fedoraproject.org
    ;; broken trust chain resolving 'fedoraproject.org/DS/IN': 127.0.0.53#53
    ;; broken trust chain resolving 'fedoraproject.org/DNSKEY/IN': 127.0.0.53#53
    ;; broken trust chain resolving 'apps.fedoraproject.org/A/IN': 127.0.0.53#53
    ;; resolution failed: broken trust chain
    
    $ delv -v
    delv 9.17.21-1-Debian
    
    $ resolvectl --version
    systemd 249 (249.7-1)
    +PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS -OPENSSL +ACL +BLKID +CURL +ELFUTILS -FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP -LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified
    

    /etc/resolv.conf symlinked to /run/systemd/resolve/stub-resolv.conf, and /etc/nsswitch.conf configured to use resolve (via the libnss-resolve package)

  8. pemensik commented on Jan 4, 2022

    @pemensik
    ContributorAuthor

    @Tachi107 It seems reliable with most recent systemd.

    # rpm -q systemd bind-utils
    systemd-250-3.fc36.x86_64
    bind-utils-9.16.24-2.fc36.x86_64
    
    # delv apps.fedoraproject.org
    ;; broken trust chain resolving 'apps.fedoraproject.org/A/IN': 127.0.0.53#53
    ;; resolution failed: broken trust chain
    
    # dig +dnssec apps.fedoraproject.org | grep -i RRSIG || echo broken again
    broken again
    

    I admit I use dnssec-trigger+unbound on my machine, so I failed to notice this. Seems like a regression to me.

  9. pemensik commented on Jan 4, 2022

    @pemensik
    ContributorAuthor

    It works if I enable DNSSEC=yes in resolved.conf. I guess that were considered adequate by systemd developers (not by me). It should allow verification from client side, but not without manual intervention. I guess that is not a new issue.

    But still, there is something terribly wrong.

    # dig +dnssec apps.fedoraproject.org
    
    ; <<>> DiG 9.16.24-RH <<>> +dnssec apps.fedoraproject.org
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 65079
    ;; flags: qr rd ra ad; QUERY: 1, ANSWER: 12, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags: do; udp: 65494
    ;; QUESTION SECTION:
    ;apps.fedoraproject.org.		IN	A
    
    ;; ANSWER SECTION:
    apps.fedoraproject.org.	40	IN	CNAME	wildcard.fedoraproject.org.
    apps.fedoraproject.org.	40	IN	RRSIG	CNAME 14 3 300 20220121183733 20211222183733 60624 fedoraproject.org. c8OYvW39KQSwg7udDnpeG7gzhaBSFh0ERaWf859C1m/Lu+KbTHYojU0i A+EsB8pyCq1PpO6CvG1hFkVNDkSwTojakr6FJ0XV78I0rmKPzAw7f8er qUhs5flojoFeZYCD
    wildcard.fedoraproject.org. 40	IN	A	140.211.169.206
    wildcard.fedoraproject.org. 40	IN	RRSIG	A 14 3 60 20220121183733 20211222183733 60624 fedoraproject.org. 4tpyWQKq7bFgaIhVQXKUNT4+HE6FnEAlcW/A/LGRwDuEg6aOavpDtxA4 1ZRVRmaQhT0TqkjZAdVZd5bn407/LkEZSUVmHVBtG5h4mtZVM4Oklpm/ MiUi4+mlBWNFQmaO
    wildcard.fedoraproject.org. 40	IN	A	67.219.144.68
    wildcard.fedoraproject.org. 40	IN	A	152.19.134.142
    wildcard.fedoraproject.org. 40	IN	A	8.43.85.73
    wildcard.fedoraproject.org. 40	IN	A	38.145.60.20
    wildcard.fedoraproject.org. 40	IN	A	140.211.169.196
    wildcard.fedoraproject.org. 40	IN	A	152.19.134.198
    wildcard.fedoraproject.org. 40	IN	A	38.145.60.21
    wildcard.fedoraproject.org. 40	IN	A	209.132.190.2
    
    ;; Query time: 1 msec
    ;; SERVER: 127.0.0.53#53(127.0.0.53)
    ;; WHEN: Tue Jan 04 17:16:57 EST 2022
    ;; MSG SIZE  rcvd: 508
    

    Notice the second RRSIG is not after all A records as it is supposed to be, but after just first record. Of course this confuses validator and it does not validate.

    # delv apps.fedoraproject.org
    ;; broken trust chain resolving 'fedoraproject.org/DS/IN': 127.0.0.53#53
    ;; broken trust chain resolving 'fedoraproject.org/DNSKEY/IN': 127.0.0.53#53
    ;; broken trust chain resolving 'apps.fedoraproject.org/A/IN': 127.0.0.53#53
    ;; resolution failed: broken trust chain
    

    I think this is worth a new ticket.

  10. Tachi107 commented on Jan 4, 2022

    @Tachi107
    Contributor

    @pemensik yep, I get your same issue (with DNSSEC=yes in resolved.conf). You know a lot more about DNS than me, so feel free to submit the new issue instead of me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions