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