cli: show configured name servers in 'show dns' command

Before we add proper operational support for DNS and NTP, we can at
least improve on the built-in CLI commands.

Issue #510

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2024-09-13 16:31:39 +02:00
parent 063ef91f8d
commit 685b04d7cc
+2 -1
View File
@@ -263,7 +263,8 @@
</COMMAND>
<COMMAND name="dns" help="Show DNS (client) status">
<ACTION sym="script">resolvconf -l</ACTION>
<!-- Show static/configured nameservers and then all learned ones from DHCP clients -->
<ACTION sym="script">cat /etc/resolv.conf.head 2>/dev/null; resolvconf -l | sed 's/#.*//; /^\s*$/d'</ACTION>
</COMMAND>
<COMMAND name="ntp" help="Show NTP (client) status">