我已经阅读了这里的链接。我从接受的答案中尝试了这个 nmcli device status ,但我得到了这个结果 sudo: nmcli: command not found。然后我读了这个链接。我尝试过, systemd-resolve --status | grep 'DNS Servers' 但得到了这个结果 sudo: systemd-resolve: command not found。
nmcli device status
sudo: nmcli: command not found
systemd-resolve --status | grep 'DNS Servers'
sudo: systemd-resolve: command not found
有谁知道可以在 22.04 上运行的命令吗?
server command-line networking dns 22.04
22.04 ×1
command-line ×1
dns ×1
networking ×1
server ×1