Public bug reported: The regular resolvectl output for an interface looks like:
root@r:~# resolvectl status eth0
Link 14 (eth0)
Current Scopes: DNS
Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 10.148.181.1
DNS Servers: 10.148.181.1 fd42:f983:5882:c87f::1 fe80::216:3eff:fed9:e3c1
DNS Domain: lxd
Default Route: yes
Note in particular the "Current DNS Server" field. The JSON output is
missing that:
root@r:~# resolvectl status eth0 --json=pretty
[
{
"ifname" : "eth0",
"ifindex" : 14,
"defaultRoute" : true,
"servers" : [
{
"addressString" : "10.148.181.1",
"address" : [
10,
148,
181,
1
],
"family" : 2,
"port" : 53,
"ifindex" : 14,
"accessible" : true
},
{
"addressString" : "fd42:f983:5882:c87f::1",
"address" : [
253,
66,
249,
131,
88,
130,
200,
127,
0,
0,
0,
0,
0,
0,
0,
1
],
"family" : 10,
"port" : 53,
"ifindex" : 14,
"accessible" : true
},
{
"addressString" : "fe80::216:3eff:fed9:e3c1%14",
"address" : [
254,
128,
0,
0,
0,
0,
0,
0,
2,
22,
62,
255,
254,
217,
227,
193
],
"family" : 10,
"port" : 53,
"ifindex" : 14,
"accessible" : true
}
],
"searchDomains" : [
{
"name" : "lxd",
"routeOnly" : false,
"ifindex" : 14
}
],
"dnssec" : "no",
"dnsOverTLS" : "no",
"llmnr" : "no",
"mDNS" : "no",
"scopes" : [
{
"protocol" : "dns",
"ifindex" : 14,
"ifname" : "eth0",
"dnssec" : "no",
"dnsOverTLS" : "no"
}
]
}
]
There is supposed to be a "currentServer" field in the JSON:
https://github.com/systemd/systemd/blob/v259/src/resolve/resolved-
manager.c#L2128
** Affects: systemd (Ubuntu)
Importance: Medium
Assignee: Nick Rosbrook (enr0n)
Status: Triaged
** Tags: dcr-incoming
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2138680
Title:
resolvectl --json does not show current DNS server
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2138680/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
