From 97eb86c4866d5f7777e525f5eba1c1c3da3b67c8 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 7 Jul 2022 12:37:45 +0200 Subject: dns: op-mode: T2488: retrieve log info from journalctl --- op-mode-definitions/dns-forwarding.xml.in | 43 ++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/op-mode-definitions/dns-forwarding.xml.in b/op-mode-definitions/dns-forwarding.xml.in index 6574f2319..baf60efbd 100644 --- a/op-mode-definitions/dns-forwarding.xml.in +++ b/op-mode-definitions/dns-forwarding.xml.in @@ -1,5 +1,46 @@ + + + + + + + Monitor last lines of Domain Name Service (DNS) + + + + + Monitor last lines of DNS forwarding + + journalctl --no-hostname --follow --boot --unit pdns-recursor.service + + + + + + + + Show DNS information + + + + + Show DNS forwarding information + + + + + Show DNS forwarding statistics + + sudo ${vyos_op_scripts_dir}/dns_forwarding_statistics.py + + + + + + + @@ -13,7 +54,7 @@ Show log for DNS Forwarding - cat $(printf "%s\n" /var/log/messages* | sort -nr) | grep -e "pdns_recursor" + journalctl --no-hostname --boot --unit pdns-recursor.service -- cgit v1.2.3