Skip to content

all dnssec gets downgraded when local fritz box gets involved #10570

Closed

Description

@mabod

systemd version the issue has been seen with

239

Used distribution

Manjaro Testing

Expected behaviour you didn't see

keep dnssec active for all external dns servers even after a local non-dnssec capable dns server has been contacted

Unexpected behaviour you saw

all dnssec gets deactivated once a local hostname has been resolved

Steps to reproduce the problem

I have configure systemd-resolved to use dnssec:

[Resolve]
#DNS.WATCH w/ dnssec:
#https://dns.watch/
DNS=84.200.69.80 84.200.70.40
# fallback from CCC
FallbackDNS=194.150.168.168
#Domains=
#LLMNR=yes
#MulticastDNS=yes
DNSSEC=allow-downgrade
#DNSOverTLS=no
#Cache=yes
#DNSStubListener=udp

Local, private, hostnames are resolved via my Fritzbox DSL router (192.168.32.1). So that the status after systemd-resolved is started looks like this:

Global
       LLMNR setting: yes
MulticastDNS setting: yes
  DNSOverTLS setting: no
      DNSSEC setting: allow-downgrade
    DNSSEC supported: yes
  Current DNS Server: 84.200.69.80
         DNS Servers: 84.200.69.80
                      84.200.70.40
Fallback DNS Servers: 194.150.168.168
          DNSSEC NTA: 10.in-addr.arpa
                      16.172.in-addr.arpa
                      168.192.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
                      corp
                      d.f.ip6.arpa
                      home
                      internal
                      intranet
                      lan
                      local
                      private
                      test

Link 2 (enp0s31f6)
      Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
       LLMNR setting: yes
MulticastDNS setting: no
  DNSOverTLS setting: no
      DNSSEC setting: allow-downgrade
    DNSSEC supported: yes
  Current DNS Server: 192.168.132.1
         DNS Servers: 192.168.132.1

Even the Fritzbox is showing as supporting dnssec. But that is not true.

At the beginning resolving external hostnames is working just fine with dnssec. But as soon as the first local hostname is resolved, all dnssec is downgraded. A simple "ping fritz.box" is triggering this:

Global
       LLMNR setting: yes
MulticastDNS setting: yes
  DNSOverTLS setting: no
      DNSSEC setting: allow-downgrade
    DNSSEC supported: no
  Current DNS Server: 84.200.69.80
         DNS Servers: 84.200.69.80
                      84.200.70.40
Fallback DNS Servers: 194.150.168.168
          DNSSEC NTA: 10.in-addr.arpa
                      16.172.in-addr.arpa
                      168.192.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
                      corp
                      d.f.ip6.arpa
                      home
                      internal
                      intranet
                      lan
                      local
                      private
                      test

Link 2 (enp0s31f6)
      Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
       LLMNR setting: yes
MulticastDNS setting: no
  DNSOverTLS setting: no
      DNSSEC setting: allow-downgrade
    DNSSEC supported: no
  Current DNS Server: 192.168.132.1
         DNS Servers: 192.168.132.1

Shouldn't systemd-resolved only downgrade the Fritzbox and keep dnssec active for the external DNS servers?

Activity

  1. MarcelWaldvogel commented on Sep 20, 2019

    @MarcelWaldvogel

    Why is it anyway that the Fritz!Box is considered not to support DNSSEC?
    dig @127.0.0.53 dnssec-deployment.org +dnssec does not return the RRSIG, while dig @fritz.box dnssec-deployment.org +dnssec does.

    Could it be that DNSSEC would not need to be deactivated at all here?

  2. allisonkarlitskaya commented on Apr 21, 2020

    @allisonkarlitskaya
    Contributor

    I see this problem on Debian 10 (buster) with Version: 241-7~deb10u3

    desrt@x1:~$ resolvectl status wlp2s0 
    Link 3 (wlp2s0)
          Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
    DefaultRoute setting: yes
           LLMNR setting: yes
    MulticastDNS setting: no
      DNSOverTLS setting: no
          DNSSEC setting: allow-downgrade
        DNSSEC supported: yes
      Current DNS Server: fd00::e228:6dff:fe87:6b01
             DNS Servers: fd00::e228:6dff:fe87:6b01
                          192.168.178.1
              DNS Domain: ~.
                          fritz.box
    
    
    desrt@x1:~$ resolvectl query dnssec-deployment.org 
    dnssec-deployment.org: 2001:41c8:20::4001      -- link: wlp2s0
                           46.43.37.10             -- link: wlp2s0
    
    -- Information acquired via protocol DNS in 1.0ms.
    -- Data is authenticated: yes
    desrt@x1:~$ resolvectl query dnssec-failed.org 
    dnssec-failed.org: resolve call failed: DNSSEC validation failed: missing-key
    
    
    desrt@x1:~$ resolvectl status wlp2s0 
    Link 3 (wlp2s0)
          Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
    DefaultRoute setting: yes
           LLMNR setting: yes
    MulticastDNS setting: no
      DNSOverTLS setting: no
          DNSSEC setting: allow-downgrade
        DNSSEC supported: yes
      Current DNS Server: fd00::e228:6dff:fe87:6b01
             DNS Servers: fd00::e228:6dff:fe87:6b01
                          192.168.178.1
              DNS Domain: ~.
                          fritz.box
    
    
    desrt@x1:~$ resolvectl query fritz.box # this breaks things
    fritz.box: 192.168.178.1                       -- link: wlp2s0
               fd00::e228:6dff:fe87:6b01           -- link: wlp2s0
               2001:4dd5:1ef0:0:e228:6dff:fe87:6b01 -- link: wlp2s0
    
    -- Information acquired via protocol DNS in 52.5ms.
    -- Data is authenticated: no
    
    
    desrt@x1:~$ resolvectl status wlp2s0 
    Link 3 (wlp2s0)
          Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
    DefaultRoute setting: yes
           LLMNR setting: yes
    MulticastDNS setting: no
      DNSOverTLS setting: no
          DNSSEC setting: allow-downgrade
        DNSSEC supported: no
      Current DNS Server: fd00::e228:6dff:fe87:6b01
             DNS Servers: fd00::e228:6dff:fe87:6b01
                          192.168.178.1
              DNS Domain: ~.
                          fritz.box
    
    
    desrt@x1:~$ resolvectl query dnssec-deployment.org 
    dnssec-deployment.org: 46.43.37.10             -- link: wlp2s0
                           2001:41c8:20::4001      -- link: wlp2s0
    
    -- Information acquired via protocol DNS in 1.0ms.
    -- Data is authenticated: yes
    desrt@x1:~$ resolvectl query dnssec-failed.org 
    dnssec-failed.org: 69.252.80.75                -- link: wlp2s0
    
    -- Information acquired via protocol DNS in 8.5ms.
    -- Data is authenticated: no
    
    
  3. allisonkarlitskaya commented on Apr 21, 2020

    @allisonkarlitskaya
    Contributor

    fwiw: resolvectl reset-server-features resets the "DNSSEC supported" flag.

  4. added 3 commits that reference this issue on Feb 16, 2021
    640fcf8
    bc720dd
    fba3e94
  5. SoapGentoo commented on Apr 3, 2021

    @SoapGentoo
    Contributor

    @poettering FYI

    $ systemctl --version
    systemd 248 (248)
    +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
    

    but I'm still getting these DNSSEC downgrades with my Fritz Box.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions