From 29446d9ed7410a571ce77ee9a9f601c9653c5219 Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Fri, 25 Jul 2008 23:14:12 +0000 Subject: First parts of DNS forwarding stuff --- templates/service/dns-forwarding/node.def | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 templates/service/dns-forwarding/node.def (limited to 'templates') 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; " -- cgit v1.2.3