systemd-resolved uses malformed link-local IPv6 forwarder
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| systemd (Ubuntu) |
Expired
|
Low
|
Unassigned | ||
Bug Description
In a network with a local nameserver that has IPv4-address 10.1.0.1 and link-local IPv6-address fe80::2a0:
Global
Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=
resolv.conf mode: uplink
Link 2 (ens33)
Current Scopes: DNS
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=
Current DNS Server: fe80::2a0:
DNS Servers: 10.1.0.1 fe80::2a0:
DNS Domain: < edited >
Name resolution fails because the indicated 'Current DNS Server' IPv6-address is an incomplete link-local address. Also the link-local IPv6-address indicated in the second position of the 'DNS Servers' line is malformed. Issuing consecutive 'resolvectl' calls have the last 4 digits in this line changing, i.e. they all show 'fe80::
Workaround:
Take systemd-resoved out of stub-mode with:
(cd /etc && sudo rm -f resolv.conf && sudo ln -s /run/systemd/
The auto generate file '/run/systemd/
nameserver 10.1.0.1
nameserver fe80::2a0:
search < edited >
The broken stub mode is configured with:
(cd /etc && rm -f resolv.conf && ln -s /run/systemd/
| summary: |
- systemd-resoled uses malformed link-local IPv6 forwarder + systemd-resolved uses malformed link-local IPv6 forwarder |
| description: | updated |

Since this is link-specific DNS, isn't the scope ID implied?
I do see the odd formatting issue in the 'DNS Servers' list:
$ resolvectl status wlp0s20f3 no/unsupported 32ff:febe: f88d 32ff:febe: f88d%21943
Link 4 (wlp0s20f3)
Current Scopes: DNS
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=
Current DNS Server: fe80::dea6:
DNS Servers: fe80::dea6:
DNS Domain: lan
but that should be harmless, and is fixed upstream by [1] (though it is not yet in any of Ubuntu's systemd releases).
I am currently running Kinetic, and with this setting my DNS seems to be working correctly. What release of Ubuntu are you on?
[1] https:/ /github. com/systemd/ systemd/ commit/ a5e6c8498ca