]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolvectl: include ifindex when printing link-local DNS server
authorNick Rosbrook <enr0n@ubuntu.com>
Fri, 6 Feb 2026 16:38:47 +0000 (11:38 -0500)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 6 Feb 2026 23:14:37 +0000 (00:14 +0100)
commite28958315f371d4db349fc99f04c5adfb7edaea6
tree1c169d15371fae6fd633861235f08cb3985a5e5a
parenta53e3697860695bc4db922f7e5b7b3c87454f39a
resolvectl: include ifindex when printing link-local DNS server

Historically, resolvectl status has not included the interface
specification for DNS servers with an IPv6 link-local address, since it
is technically somewhat redundant. But, adding this extra bit of
information makes it easier to copy-and-paste to use elsewhere, etc.

For example, the previous output:

 Link 2 (enp34s0)
     Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
          Protocols: +DefaultRoute LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
 Current DNS Server: fe80::861e:a3ff:feb1:f8e7
        DNS Servers: 192.168.1.12 192.168.1.13 fe80::861e:a3ff:feb1:f8e7
         DNS Domain: lan

now becomes:

 Link 2 (enp34s0)
     Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
          Protocols: +DefaultRoute LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
 Current DNS Server: fe80::861e:a3ff:feb1:f8e7%2
        DNS Servers: 192.168.1.12 192.168.1.13 fe80::861e:a3ff:feb1:f8e7%2
         DNS Domain: lan
src/resolve/resolvectl.c