From fe08c6b8586e63e9b441c73da1e9f712849e251e Mon Sep 17 00:00:00 2001
From: Mohit Mehta <mohit.mehta@vyatta.com>
Date: Tue, 5 Aug 2008 16:35:44 +0000
Subject: change DNS forwarding CLI from 'service dns-forwarding' to 'service
 dns forward'

---
 templates/service/dns/forward/node.def | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 templates/service/dns/forward/node.def

(limited to 'templates/service/dns/forward/node.def')

diff --git a/templates/service/dns/forward/node.def b/templates/service/dns/forward/node.def
new file mode 100644
index 00000000..f84e4f02
--- /dev/null
+++ b/templates/service/dns/forward/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; "
-- 
cgit v1.2.3

