summaryrefslogtreecommitdiff
path: root/templates/clear/dns/forwarding/cache/node.def
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-09-16 09:44:30 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-09-16 09:44:30 -0700
commit8363358c3010d1f7383e3a09c16d071f9ec5b42f (patch)
treebd8b4de9797259f513e8f09e5dd40679a9a889eb /templates/clear/dns/forwarding/cache/node.def
parent4b3aad36248f3e5c02646540801ea05536445ce8 (diff)
parent93f7c1c4d0ec76d81f093b2fc966cf56c17b372b (diff)
downloadvyatta-op-8363358c3010d1f7383e3a09c16d071f9ec5b42f.tar.gz
vyatta-op-8363358c3010d1f7383e3a09c16d071f9ec5b42f.zip
Merge branch 'islavista' of suva.vyatta.com:/git/vyatta-op into islavista
Diffstat (limited to 'templates/clear/dns/forwarding/cache/node.def')
-rw-r--r--templates/clear/dns/forwarding/cache/node.def8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/clear/dns/forwarding/cache/node.def b/templates/clear/dns/forwarding/cache/node.def
new file mode 100644
index 0000000..8a5f8cc
--- /dev/null
+++ b/templates/clear/dns/forwarding/cache/node.def
@@ -0,0 +1,8 @@
+help: Clear 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