diff options
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 |