summaryrefslogtreecommitdiff
path: root/templates/service/dns/forward/node.def
blob: f84e4f027591df1766f7eb56381095392bb503fd (plain)
1
2
3
4
5
6
7
8
9
10
help: Configure Domain Name Server (DNS) forwarding
syntax:expression: exec "/opt/vyatta/sbin/vyatta-dns-forwarding.pl --nameserver"; "No nameserver exists to forward DNS queries"
create:expression: "/opt/vyatta/sbin/vyatta-dns-forwarding.pl --init-dnsforwarding"
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; "