diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-08-17 19:00:41 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-10-27 17:11:28 -0500 |
commit | d188aa86f11c2e7bde4015e4f4302a58aa3fe3c0 (patch) | |
tree | 14a1b16be0f39de2606b989349d86ccc652cc249 /templates/reset/dns | |
parent | ba0f07edf87c91e9e3e382d7a40b8d60651fd620 (diff) | |
download | vyatta-op-d188aa86f11c2e7bde4015e4f4302a58aa3fe3c0.tar.gz vyatta-op-d188aa86f11c2e7bde4015e4f4302a58aa3fe3c0.zip |
Move 'clear dns' and 'clear connection-tracking' to 'reset dns' and
'reset connection-tracking'
(cherry picked from commit c26d0f90bd39af8f58ab9f6ac75786c3dda87a55)
Diffstat (limited to 'templates/reset/dns')
-rw-r--r-- | templates/reset/dns/forwarding/all/node.def | 8 | ||||
-rw-r--r-- | templates/reset/dns/forwarding/cache/node.def | 8 | ||||
-rw-r--r-- | templates/reset/dns/forwarding/node.def | 1 | ||||
-rw-r--r-- | templates/reset/dns/node.def | 1 |
4 files changed, 18 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 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 diff --git a/templates/reset/dns/forwarding/node.def b/templates/reset/dns/forwarding/node.def new file mode 100644 index 0000000..a1bcb10 --- /dev/null +++ b/templates/reset/dns/forwarding/node.def @@ -0,0 +1 @@ +help: Reset DNS forwarding variables diff --git a/templates/reset/dns/node.def b/templates/reset/dns/node.def new file mode 100644 index 0000000..5f8ef26 --- /dev/null +++ b/templates/reset/dns/node.def @@ -0,0 +1 @@ +help: Reset Domain Name Server (DNS) variables |