summaryrefslogtreecommitdiff
path: root/templates/restart/dns/forwarding/node.def
blob: 5740ebf3f50d4e1abfcd0c44a14baf701f28624a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
help: Restart DNS forwarding

run:
      if cli-shell-api existsActive service dns forwarding; then
          echo "Restarting DNS forwarding..."
          sudo /opt/vyatta/sbin/vyatta-dns-forwarding.pl --restart-dnsforwarding;
          if [[ $? -eq 0 ]]; then
              echo "Success!"
          fi
      else
          echo "DNS forwarding is not configured"
      fi