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