summaryrefslogtreecommitdiff
path: root/templates/service/dns/forwarding/node.def
blob: d3c32bb1acc3e7f58433dbe5556adecb24e74e12 (plain)
1
2
3
4
5
6
7
8
9
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 \
        rm /tmp/dnsmasq.$PPID; \
      else \
        sudo /opt/vyatta/sbin/vyatta-dns-forwarding.pl --update-dnsforwarding; \
      fi; "