diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-08-09 04:57:05 +0000 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-08-09 04:57:05 +0000 |
commit | 66222be044d65fe045d4148ddf4eb5d178294150 (patch) | |
tree | 5d016811cfb5b358d3c9e419d373a9e0f5b01ef9 /templates/clear | |
parent | fb1e1ce4477e8e2537752f60c7411cdb13d135f4 (diff) | |
download | vyatta-op-66222be044d65fe045d4148ddf4eb5d178294150.tar.gz vyatta-op-66222be044d65fe045d4148ddf4eb5d178294150.zip |
add 'clear dns forwarding cache' command
Diffstat (limited to 'templates/clear')
-rw-r--r-- | templates/clear/dns/forwarding/cache/node.def | 8 | ||||
-rw-r--r-- | templates/clear/dns/forwarding/node.def | 1 | ||||
-rw-r--r-- | templates/clear/dns/node.def | 1 |
3 files changed, 10 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..8211e12 --- /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 + kill -1 `pidof dnsmasq` + else + echo "DNS forwarding not configured" + fi diff --git a/templates/clear/dns/forwarding/node.def b/templates/clear/dns/forwarding/node.def new file mode 100644 index 0000000..3cc321c --- /dev/null +++ b/templates/clear/dns/forwarding/node.def @@ -0,0 +1 @@ +help: Clear DNS forwarding variables diff --git a/templates/clear/dns/node.def b/templates/clear/dns/node.def new file mode 100644 index 0000000..bca966e --- /dev/null +++ b/templates/clear/dns/node.def @@ -0,0 +1 @@ +help: Clear Domain Name Server (DNS) variables |