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