summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-01 12:00:31 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-01 12:00:31 +0200
commit0ac6a914b0f375dd3e633b16b6c105613fa8e343 (patch)
treef0b188d8849247c082f1be00e76bcbdcba632d29
parent600917cf9f240b7233ecfaf6ece745355d088fef (diff)
downloadvyos-1x-0ac6a914b0f375dd3e633b16b6c105613fa8e343.tar.gz
vyos-1x-0ac6a914b0f375dd3e633b16b6c105613fa8e343.zip
dns: T2536: migrate "show log dns" from vyatta-op to vyos-1x
-rw-r--r--op-mode-definitions/dynamic-dns.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/op-mode-definitions/dynamic-dns.xml b/op-mode-definitions/dynamic-dns.xml
index 6ea6482e1..2948e68d7 100644
--- a/op-mode-definitions/dynamic-dns.xml
+++ b/op-mode-definitions/dynamic-dns.xml
@@ -2,6 +2,20 @@
<interfaceDefinition>
<node name="show">
<children>
+ <node name="log">
+ <children>
+ <node name="dns">
+ <children>
+ <node name="dynamic">
+ <properties>
+ <help>Show log for dynamic DNS</help>
+ </properties>
+ <command>cat $(printf "%s\n" /var/log/messages* | sort -nr) | grep -e "ddclient"</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
<node name="dns">
<properties>
<help>Show DNS information</help>