diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-07-25 23:14:12 +0000 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-07-25 23:14:12 +0000 |
commit | 29446d9ed7410a571ce77ee9a9f601c9653c5219 (patch) | |
tree | 578d1393103053d04f3160e9d5fc78cf434fcdde /templates | |
parent | c4035aa5d0601eaa2a64d67ca70326f4de3873e8 (diff) | |
download | vyatta-cfg-system-29446d9ed7410a571ce77ee9a9f601c9653c5219.tar.gz vyatta-cfg-system-29446d9ed7410a571ce77ee9a9f601c9653c5219.zip |
First parts of DNS forwarding stuff
Diffstat (limited to 'templates')
-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; " |