Klaus Darilion <klaus.mailingli...@pernau.at> wrote: > > Unfortunately the slave-status is not dumped, e.g. if the zone is n > sync, if SOA refresh-checks suceed, if XFRs succeed?
I agree this is could be improved. > Further, I would like to know if there are existing tools to parse the > output, or if it is possible to get the data in a more structured form. Hmm, I thought that should be available via the statistics channel, but sadly not. > Further it would be great to get a dump of all zones (e.g. without > specifying the zone), or at least to get a dump of the configured zone > of Bind. This I can help with :-) and coincidentally I was playing around with it yesterday. Last year I wrote about getting a list of zones from BIND's json statistics channel: https://fanf.livejournal.com/146763.html I find jq quite handy for wrangling json, but rather brain bending as a programming language. The script I wrote in that articles was a bit contorted. Yesterday I worked out a better version which is much more linear: $ curl -Ssf http://[::1]:8053/json | jq -S -r '.views | to_entries | map({ view: .key, zone: .value.zones[] }) | .[] | "\(.zone.name) \(.zone.class) \(.view) \(.zone.type)"' There's also `named-checkconf -l` which lists the configured zones (and was a feature submited by me!). It omits things like catalog zones and the _bind view which are listed by the statistics channel, because it works on the text of the configuration file. (I can't remember whether it includes zones added by `rndc addzone` - I guess not.) Tony. -- f.anthony.n.finch <d...@dotat.at> http://dotat.at/ - I xn--zr8h punycode Viking, North Utsire, South Utsire, Forties: Southerly or southwesterly, veering northwesterly later, 5 or 6, decreasing 4 at times, occasionally 7 except in South Utsire. Moderate, occasionally rough in Viking and North Utsire. Occasional rain, fog patches. Moderate or good, occasionally very poor. _______________________________________________ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users