diff options
author | Christian Breunig <christian@breunig.cc> | 2023-08-04 16:08:04 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-08-04 16:12:07 +0200 |
commit | d6a9ccf8968b37179cbb131293bdaa2fb0319748 (patch) | |
tree | 9c31ae751dc7fe12e22f8d064e5d871477e34d4c /op-mode-definitions/dns-dynamic.xml.in | |
parent | 5f34dfc447ba3fe8fe7c2faea740534c1c19293d (diff) | |
download | vyos-1x-d6a9ccf8968b37179cbb131293bdaa2fb0319748.tar.gz vyos-1x-d6a9ccf8968b37179cbb131293bdaa2fb0319748.zip |
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.
Diffstat (limited to 'op-mode-definitions/dns-dynamic.xml.in')
-rw-r--r-- | op-mode-definitions/dns-dynamic.xml.in | 24 |
1 files changed, 24 insertions, 0 deletions
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"> |