summaryrefslogtreecommitdiff
path: root/src/op_mode/dns_forwarding_restart.sh
blob: 8e556f2f0954aa99736bf5bc723a6158116f1c79 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

if cli-shell-api existsEffective service dns forwarding; then
    echo "Restarting the DNS forwarding service"
    systemctl restart pdns-recursor
else
    echo "DNS forwarding is not configured"
fi