Display `rndc status`
There's a very nice and short status of overall BIND, obtained with rndc status
. We do use it, but the details of what was retrieved is not displayed.
Here's an example of what rndc prints:
# rndc status
version: BIND 9.16.37-Debian (Extended Support Version) <id:2b2afb2> (the latest, patched, secure one)
running on v13: Linux x86_64 5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13)
boot time: Fri, 02 Jun 2023 20:57:23 GMT
last configured: Fri, 02 Jun 2023 20:57:23 GMT
configuration file: /etc/bind/named.conf
CPUs found: 4
worker threads: 4
UDP listeners per interface: 4
number of zones: 103 (97 automatic)
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is ON
recursive clients: 1/900/1000
tcp clients: 0/150
TCP high-water: 2
server is up and running
We could print this as is, maybe with some meta-data (timestamp when this status was obtained). This would be flexible enough (I'm sure older bind prints less and newer probably more) and useful.