summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-01 11:53:03 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-01 11:53:14 +0200
commit600917cf9f240b7233ecfaf6ece745355d088fef (patch)
tree42d95aec2c54a4de94c8487359c47d6fe850525e /op-mode-definitions
parentc7cacd6382ca8b71ca166a0c7a89ebf19176c756 (diff)
downloadvyos-1x-600917cf9f240b7233ecfaf6ece745355d088fef.tar.gz
vyos-1x-600917cf9f240b7233ecfaf6ece745355d088fef.zip
dns-forwarding: T2536: fix "show log dns forwarding"
Migrate "show" command from vyatta-op
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/dns-forwarding.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/op-mode-definitions/dns-forwarding.xml b/op-mode-definitions/dns-forwarding.xml
index 785a05e9c..23de97704 100644
--- a/op-mode-definitions/dns-forwarding.xml
+++ b/op-mode-definitions/dns-forwarding.xml
@@ -2,6 +2,23 @@
<interfaceDefinition>
<node name="show">
<children>
+ <node name="log">
+ <children>
+ <node name="dns">
+ <properties>
+ <help>Show log for Domain Name Service (DNS)</help>
+ </properties>
+ <children>
+ <node name="forwarding">
+ <properties>
+ <help>Show log for DNS Forwarding</help>
+ </properties>
+ <command>cat $(printf "%s\n" /var/log/messages* | sort -nr) | grep -e "pdns_recursor"</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
<node name="dns">
<properties>
<help>Show DNS information</help>