Open wtoorop opened 5 months ago
A mash-up could look something like:
$ nsd-control zonestatus sunet.se
zone: sunet.se
state: ok
served-serial: "2024082105 since 2024-08-21T16:05:40"
commit-serial: "2024082105 since 2024-08-21T16:05:40"
wait: "13162 sec between attempts"
primary-ns: "192.36.125.2 is reachable"
and possibly
$ nsd-control zonestatus sunet.se
zone: sunet.se
state: refreshing
served-serial: "2024082105 since 2024-08-21T16:05:40"
commit-serial: "2024082105 since 2024-08-21T16:05:40"
wait: "126231 sec between attempts"
primary-ns: "192.36.125.2 is unreachable since ..."
but other ideas on the format are welcome...
just remembered that a kv for TSIG also would be valuable to see:
$ nsd-control zonestatus sunet.se
zone: sunet.se
state: ok
served-serial: "2024082105 since 2024-08-21T16:05:40"
commit-serial: "2024082105 since 2024-08-21T16:05:40"
wait: "13162 sec between attempts"
primary-ns: "192.36.125.2 is reachable"
tsig-key: "somekeyname"
$ nsd-control zonestatus sunet.se
zone: sunet.se
state: refreshing
served-serial: "2024082105 since 2024-08-21T16:05:40"
commit-serial: "2024082105 since 2024-08-21T16:05:40"
wait: "126231 sec between attempts"
primary-ns: "192.36.125.2 is unreachable since ..."
tsig-key: ""
It would be nice if nsd-control zonestatus would report on failed primaries and also the error code (EDE code if available) with which they failed. Especially if all primaries failed it would be nice if there is a special message logged that this is the case.
As discussed in the context of catalog zones with @pettai