mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 21:13:00 +02:00
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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user