summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-05-19 18:05:35 +0200
committerDaniil Baturin <daniil@baturin.org>2018-05-19 18:05:35 +0200
commitc7a5a84eaaa072d681f98b228c44043d0345f6c0 (patch)
treef3c4fd49ca64b5fdbd72aafeae3aaabfdf29b9ca /op-mode-definitions
parentd5a603e6484409ba67079f20a44c4d70cf3abbfa (diff)
downloadvyos-1x-c7a5a84eaaa072d681f98b228c44043d0345f6c0.tar.gz
vyos-1x-c7a5a84eaaa072d681f98b228c44043d0345f6c0.zip
T564: a command to reset DNS forwarding cache for a domain and better checking for unconfigured service.
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/dns-forwarding.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/op-mode-definitions/dns-forwarding.xml b/op-mode-definitions/dns-forwarding.xml
index 3d7483641..f753ca93d 100644
--- a/op-mode-definitions/dns-forwarding.xml
+++ b/op-mode-definitions/dns-forwarding.xml
@@ -25,6 +25,9 @@
<node name="restart">
<children>
<node name="dns">
+ <properties>
+ <help>Restart a DNS service</help>
+ </properties>
<children>
<leafNode name="forwarding">
<properties>
@@ -36,4 +39,28 @@
</node>
</children>
</node>
+ <node name="reset">
+ <children>
+ <node name="dns">
+ <properties>
+ <help>Reset a DNS service state</help>
+ </properties>
+ <children>
+ <node name="forwarding">
+ <properties>
+ <help>Reset DNS forwarding cache</help>
+ </properties>
+ <children>
+ <tagNode name="domain">
+ <command>${vyos_op_scripts_dir}/dns_forwarding_reset.py $5</command>
+ <properties>
+ <help>Reset DNS forwarding cache for a domain</help>
+ </properties>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
</interfaceDefinition>