summaryrefslogtreecommitdiff
path: root/templates/show/dns/forwarding/statistics/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show/dns/forwarding/statistics/node.def')
-rw-r--r--templates/show/dns/forwarding/statistics/node.def8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/show/dns/forwarding/statistics/node.def b/templates/show/dns/forwarding/statistics/node.def
new file mode 100644
index 0000000..a73b49d
--- /dev/null
+++ b/templates/show/dns/forwarding/statistics/node.def
@@ -0,0 +1,8 @@
+help: Show DNS forwarding statistics
+run:
+ if ps ax | grep dnsmasq | grep -v grep > /dev/null
+ then
+ sudo /opt/vyatta/bin/sudo-users/vyatta-op-dns-forwarding.pl --show-statistics
+ else
+ echo "DNS forwarding not configured"
+ fi