From 860b229fe00998d2dd2d020d7dc847f99e709c26 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Mon, 14 May 2018 06:10:04 +0200 Subject: T564: initial implementation of the DNS forwarding op mode commands. --- src/op-mode/vyos-restart-dns-forwarding.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 src/op-mode/vyos-restart-dns-forwarding.sh (limited to 'src/op-mode/vyos-restart-dns-forwarding.sh') diff --git a/src/op-mode/vyos-restart-dns-forwarding.sh b/src/op-mode/vyos-restart-dns-forwarding.sh new file mode 100755 index 000000000..12106fcc1 --- /dev/null +++ b/src/op-mode/vyos-restart-dns-forwarding.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +if cli-shell-api exists service dns forwarding; then + echo "Restarting the DNS forwarding service" + systemctl restart pdns-recursor +else + echo "DNS forwarding is not configured" +fi -- cgit v1.2.3