When last discussing using the XML produced by BIND’s statistics server, I showed
you how I created a C program to parse the XML, but it didn’t occur to me to use
XSL and the xsltproc utility to do so.
BIND9 old XML format
A kind reader added a comment to that post
a few moments ago, and I took the liberty of streamlining his code a bit to produce
If I run the result through xsltproc on a 240MB XML file containing 136,000 zones, I get
results in 8 seconds on my laptop, which is pretty good.
BIND9 newstats XML format
And this works for me for the “newstats” format, introduced experimentally in 9.9.3:
Thank you, Andrii. :)