From e982b78f24d1dca3d2bc92a39b8e9fcf35b39a37 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 9 Jan 2021 14:31:48 +0100 Subject: xml: op-mode: add preprocessor support as known from configuration mode --- op-mode-definitions/dns-forwarding.xml.in | 94 +++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 op-mode-definitions/dns-forwarding.xml.in (limited to 'op-mode-definitions/dns-forwarding.xml.in') diff --git a/op-mode-definitions/dns-forwarding.xml.in b/op-mode-definitions/dns-forwarding.xml.in new file mode 100644 index 000000000..23de97704 --- /dev/null +++ b/op-mode-definitions/dns-forwarding.xml.in @@ -0,0 +1,94 @@ + + + + + + + + + Show log for Domain Name Service (DNS) + + + + + Show log for DNS Forwarding + + cat $(printf "%s\n" /var/log/messages* | sort -nr) | grep -e "pdns_recursor" + + + + + + + + Show DNS information + + + + + Show DNS forwarding information + + + + + Show DNS forwarding statistics + + sudo ${vyos_op_scripts_dir}/dns_forwarding_statistics.py + + + + + + + + + + + + Restart a DNS service + + + + + Restart DNS forwarding service + + sudo ${vyos_op_scripts_dir}/dns_forwarding_restart.sh + + + + + + + + Reset a service + + + + + Reset a DNS service state + + + + + Reset DNS forwarding cache + + + + sudo ${vyos_op_scripts_dir}/dns_forwarding_reset.py $5 + + Reset DNS forwarding cache for a domain + + + + sudo ${vyos_op_scripts_dir}/dns_forwarding_reset.py --all + + Reset DNS forwarding cache + + + + + + + + + -- cgit v1.2.3