The show dns stats
command in expert mode does not filter any output, and it allows the use of the pipe symbol ( | ). In expert mode, show dns stats
can run with |grep
and behave as follows:
• Removes the internal statistic file.
• Runs rndc stats
to write data to the internal statistic file.
• Displays the raw content of the internal statistic file.
Examples
Expert Mode > show dns stats | grep Server\ Statistics -A 4
++ Name Server Statistics ++
2 IPv4 requests received
2 recursive queries rejected
2 responses sent
2 other query failures
Expert Mode > show dns stats | grep "Server Statistics" -A 4
access to file ‘statistics’ not allowed