diff options
Diffstat (limited to 'templates/service/dns/forwarding/dhcp/node.def')
-rw-r--r-- | templates/service/dns/forwarding/dhcp/node.def | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/service/dns/forwarding/dhcp/node.def b/templates/service/dns/forwarding/dhcp/node.def new file mode 100644 index 00000000..24598129 --- /dev/null +++ b/templates/service/dns/forwarding/dhcp/node.def @@ -0,0 +1,9 @@ +multi: +type: txt +help: Set to forward DNS queries to nameservers received from DHCP server for specified interface +syntax:expression: exec "/opt/vyatta/sbin/vyatta-dns-forwarding.pl --dhcp-interface $VAR(@)" +commit:expression: exec "/opt/vyatta/sbin/vyatta-dns-forwarding.pl --dhcp-interface-nameserver $VAR(@)" +allowed: + local -a array ; + array=( /var/lib/dhcp3/eth* ) ; + echo -n ${array[@]##*/} |