diff options
Diffstat (limited to 'templates/service')
-rw-r--r-- | templates/service/dns/forwarding/listen-on/node.def (renamed from templates/service/dns/forwarding/ignore-interface/node.def) | 4 | ||||
-rw-r--r-- | templates/service/dns/forwarding/node.def | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/templates/service/dns/forwarding/ignore-interface/node.def b/templates/service/dns/forwarding/listen-on/node.def index 5bf20fa0..9510cebe 100644 --- a/templates/service/dns/forwarding/ignore-interface/node.def +++ b/templates/service/dns/forwarding/listen-on/node.def @@ -1,6 +1,6 @@ multi: type: txt -help: Set interface to ignore DNS queries on +help: Set interface to listen for DNS queries syntax:expression: exec " intf_array=($(awk '$1 ~ /:/ { print $1 }' /proc/net/dev)) intf_array_len=${#intf_array[*]} @@ -12,7 +12,7 @@ syntax:expression: exec " fi let i++ done - echo Invalid ethernet interface [$VAR(@)] + echo Invalid interface [$VAR(@)] exit 1 " allowed: local -a array ; 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 \ |