summaryrefslogtreecommitdiff
path: root/templates/service/dns/forwarding/node.def
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2008-08-30 05:45:26 +0000
committerMohit Mehta <mohit.mehta@vyatta.com>2008-08-30 05:45:26 +0000
commit6411dbdc23e04d7c82c57d10f5488ff08217d13a (patch)
tree5150533b9201193f48f6e8475b851f362e32f85a /templates/service/dns/forwarding/node.def
parenteec59c636315c09a005853649557c787246d8ece (diff)
downloadvyatta-cfg-system-6411dbdc23e04d7c82c57d10f5488ff08217d13a.tar.gz
vyatta-cfg-system-6411dbdc23e04d7c82c57d10f5488ff08217d13a.zip
move from a 'ignore-interface' model to a 'listen-on' model for DNS forwarding
Diffstat (limited to 'templates/service/dns/forwarding/node.def')
-rw-r--r--templates/service/dns/forwarding/node.def1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/service/dns/forwarding/node.def b/templates/service/dns/forwarding/node.def
index 46dbd199..d3c32bb1 100644
--- a/templates/service/dns/forwarding/node.def
+++ b/templates/service/dns/forwarding/node.def
@@ -1,4 +1,5 @@
help: Configure DNS forwarding
+commit:expression: $VAR(./listen-on) != ""; "Atleast one interface must be configured for DNS forwarding parameter 'listen-on'"
delete:expression: "touch /tmp/dnsmasq.$PPID"
end:expression: "if [ -f \"/tmp/dnsmasq.$PPID\" ]; then \
sudo /opt/vyatta/sbin/vyatta-dns-forwarding.pl --stop-dnsforwarding \