diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-08-06 12:00:31 +0000 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-08-06 12:00:31 +0000 |
commit | b09a999b8284895f5a8ff0233051a41b61eb690a (patch) | |
tree | 202a1a1f8354c65405986a6a0e4c2b9dee01517f /templates/service/dns/forwarding/node.def | |
parent | d86fe348aa578c5f83bd7c24c0ed2875a343220d (diff) | |
download | vyatta-cfg-system-b09a999b8284895f5a8ff0233051a41b61eb690a.tar.gz vyatta-cfg-system-b09a999b8284895f5a8ff0233051a41b61eb690a.zip |
change 'service dns forward' to 'service dns forwarding'
Diffstat (limited to 'templates/service/dns/forwarding/node.def')
-rw-r--r-- | templates/service/dns/forwarding/node.def | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/service/dns/forwarding/node.def b/templates/service/dns/forwarding/node.def new file mode 100644 index 00000000..f84e4f02 --- /dev/null +++ b/templates/service/dns/forwarding/node.def @@ -0,0 +1,10 @@ +help: Configure Domain Name Server (DNS) forwarding +syntax:expression: exec "/opt/vyatta/sbin/vyatta-dns-forwarding.pl --nameserver"; "No nameserver exists to forward DNS queries" +create:expression: "/opt/vyatta/sbin/vyatta-dns-forwarding.pl --init-dnsforwarding" +delete:expression: "touch /tmp/dnsmasq.$PPID" +end:expression: "if [ -f \"/tmp/dnsmasq.$PPID\" ]; then \ + sudo /opt/vyatta/sbin/vyatta-dns-forwarding.pl --stop-dnsforwarding \ + rm /tmp/dnsmasq.$PPID; \ + else \ + sudo /opt/vyatta/sbin/vyatta-dns-forwarding.pl --update-dnsforwarding; \ + fi; " |