summaryrefslogtreecommitdiff
path: root/templates/service/dns/forwarding/node.def
blob: ae7a9d3cadd4e0f259bc78a76ea155b744277778 (plain)
1
2
3
4
5
6
7
8
9
10
priority: 918
help: DNS forwarding
commit:expression: $VAR(./listen-on) != ""; "At least 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 \
        rm /tmp/dnsmasq.$PPID; \
      else \
        sudo /opt/vyatta/sbin/vyatta-dns-forwarding.pl --update-dnsforwarding; \
      fi; "