From d6a9ccf8968b37179cbb131293bdaa2fb0319748 Mon Sep 17 00:00:00 2001 From: Christian Breunig <christian@breunig.cc> Date: Fri, 4 Aug 2023 16:08:04 +0200 Subject: op-mode: T2546: add "clear dns dynamic cache" command Remove ddclient cache file. This can be used if ddclient complains that one tries to update the same IP address over and over again. --- op-mode-definitions/dns-dynamic.xml.in | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/op-mode-definitions/dns-dynamic.xml.in b/op-mode-definitions/dns-dynamic.xml.in index 8f32f63f9..79478f392 100644 --- a/op-mode-definitions/dns-dynamic.xml.in +++ b/op-mode-definitions/dns-dynamic.xml.in @@ -1,5 +1,29 @@ <?xml version="1.0"?> <interfaceDefinition> + <node name="clear"> + <children> + <node name="dns"> + <properties> + <help>Clear Domain Name System</help> + </properties> + <children> + <node name="dynamic"> + <properties> + <help>Clear Dynamic DNS information</help> + </properties> + <children> + <leafNode name="cache"> + <properties> + <help>Clear Dynamic DNS information cache (ddclient)</help> + </properties> + <command>sudo rm -f /run/ddclient/ddclient.cache</command> + </leafNode> + </children> + </node> + </children> + </node> + </children> + </node> <node name="monitor"> <children> <node name="log"> -- cgit v1.2.3