summaryrefslogtreecommitdiff
path: root/src/op_mode/dns_forwarding_restart.sh
blob: 64cc92115b3df9c0e379ab051a186c6660ed4d8e (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.service
else
    echo "DNS forwarding is not configured"
fi