summaryrefslogtreecommitdiff
path: root/interface-definitions/dns-dynamic.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-12-10 09:33:59 +0100
committerChristian Poessinger <christian@poessinger.com>2019-12-10 09:33:59 +0100
commitde12bf3757f25e61d40cae88f5ba10ee3a04db8f (patch)
tree4b12ba8772db77d9c409c2cc548356883d90399d /interface-definitions/dns-dynamic.xml.in
parente9bf6cc7f20d93f35c2d7dc57c9a5a173fe7fc5d (diff)
parenta68d72122c3cc032b5a7b05dafc0578e64244c4f (diff)
downloadvyos-1x-de12bf3757f25e61d40cae88f5ba10ee3a04db8f.tar.gz
vyos-1x-de12bf3757f25e61d40cae88f5ba10ee3a04db8f.zip
Merge branch 'current' of github.com:vyos/vyos-1x into equuleus
* 'current' of github.com:vyos/vyos-1x: T1855, T1826: Restore support for reboot/poweroff in M minutes. vyos.config: T1764: allow for list argument to exists, in value case vyos.config: T1846: ignore edit level when obtaining working config T1843: use include files for interface proxy-arp-pvlan option T1843: use include files for interface proxy-arp configuration T1843: use include files for interface arp-cache-timeout configuration T1843: use include files for interface link-detect feature T1843: use include files for interface MTU size T1843: use include files for interface MAC address T1843: use include files to disable interface (admin down) T1843: use include files for interface description T1843: use include files for DHCP/DHCPv6 options T1843: recursively include IP address definitions in VIF/VIF-S definitions T1843: add support for recursive includes T1843: use include files for VIF/VIF-S interfaces T1843: use include files for IPv4/IPv6 interface address configuration T1843: run interface-definitions though GCC preprocessor
Diffstat (limited to 'interface-definitions/dns-dynamic.xml.in')
-rw-r--r--interface-definitions/dns-dynamic.xml.in230
1 files changed, 230 insertions, 0 deletions
diff --git a/interface-definitions/dns-dynamic.xml.in b/interface-definitions/dns-dynamic.xml.in
new file mode 100644
index 000000000..8e7e77475
--- /dev/null
+++ b/interface-definitions/dns-dynamic.xml.in
@@ -0,0 +1,230 @@
+<?xml version="1.0"?>
+<!-- Dynamic DNS configuration -->
+<interfaceDefinition>
+ <node name="service">
+ <children>
+ <node name="dns">
+ <properties>
+ <help>Domain Name System related services</help>
+ </properties>
+ <children>
+ <node name="dynamic" owner="${vyos_conf_scripts_dir}/dynamic_dns.py">
+ <properties>
+ <help>Dynamic DNS</help>
+ <priority>919</priority>
+ </properties>
+ <children>
+ <tagNode name="interface">
+ <properties>
+ <help>Interface to send DDNS updates for [REQUIRED]</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_interfaces.py</script>
+ </completionHelp>
+ </properties>
+ <children>
+ <tagNode name="rfc2136">
+ <properties>
+ <help>RFC2136 Update name</help>
+ </properties>
+ <children>
+ <leafNode name="key">
+ <properties>
+ <help>File containing the secret key shared with remote DNS server [REQUIRED]</help>
+ <valueHelp>
+ <format>file</format>
+ <description>File in /config/auth directory</description>
+ </valueHelp>
+ </properties>
+ </leafNode>
+ <leafNode name="record">
+ <properties>
+ <help>Record to be updated [REQUIRED]</help>
+ <multi/>
+ </properties>
+ </leafNode>
+ <leafNode name="server">
+ <properties>
+ <help>Server to be updated [REQUIRED]</help>
+ </properties>
+ </leafNode>
+ <leafNode name="ttl">
+ <properties>
+ <help>Time To Live (default: 600)</help>
+ <valueHelp>
+ <format>1-86400</format>
+ <description>DNS forwarding cache size</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-86400"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="zone">
+ <properties>
+ <help>Zone to be updated [REQUIRED]</help>
+ </properties>
+ </leafNode>
+ </children>
+ </tagNode>
+ <tagNode name="service">
+ <properties>
+ <help>Service being used for Dynamic DNS [REQUIRED]</help>
+ <completionHelp>
+ <list>custom afraid changeip cloudflare dnspark dslreports dyndns easydns namecheap noip sitelutions zoneedit</list>
+ </completionHelp>
+ <valueHelp>
+ <format>custom</format>
+ <description>Custom or predefined service</description>
+ </valueHelp>
+ <valueHelp>
+ <format>afraid</format>
+ <description/>
+ </valueHelp>
+ <valueHelp>
+ <format>changeip</format>
+ <description/>
+ </valueHelp>
+ <valueHelp>
+ <format>cloudflare</format>
+ <description/>
+ </valueHelp>
+ <valueHelp>
+ <format>dnspark</format>
+ <description/>
+ </valueHelp>
+ <valueHelp>
+ <format>dslreports</format>
+ <description/>
+ </valueHelp>
+ <valueHelp>
+ <format>dyndns</format>
+ <description/>
+ </valueHelp>
+ <valueHelp>
+ <format>easydns</format>
+ <description/>
+ </valueHelp>
+ <valueHelp>
+ <format>namecheap</format>
+ <description/>
+ </valueHelp>
+ <valueHelp>
+ <format>noip</format>
+ <description/>
+ </valueHelp>
+ <valueHelp>
+ <format>sitelutions</format>
+ <description/>
+ </valueHelp>
+ <valueHelp>
+ <format>zoneedit</format>
+ <description/>
+ </valueHelp>
+ </properties>
+ <children>
+ <leafNode name="host-name">
+ <properties>
+ <help>Hostname registered with DDNS service [REQUIRED]</help>
+ <multi/>
+ </properties>
+ </leafNode>
+ <leafNode name="login">
+ <properties>
+ <help>Login for DDNS service [REQUIRED]</help>
+ </properties>
+ </leafNode>
+ <leafNode name="password">
+ <properties>
+ <help>Password for DDNS service [REQUIRED]</help>
+ </properties>
+ </leafNode>
+ <leafNode name="protocol">
+ <properties>
+ <help>ddclient protocol used for DDNS service [REQUIRED FOR CUSTOM]</help>
+ <valueHelp>
+ <format>protocol</format>
+ <description>ddclient protocol</description>
+ </valueHelp>
+ <valueHelp>
+ <format>changeip</format>
+ <description/>
+ </valueHelp>
+ <valueHelp>
+ <format>cloudflare</format>
+ <description/>
+ </valueHelp>
+ <valueHelp>
+ <format>dnspark</format>
+ <description/>
+ </valueHelp>
+ <valueHelp>
+ <format>dslreports1</format>
+ <description/>
+ </valueHelp>
+ <valueHelp>
+ <format>dyndns2</format>
+ <description/>
+ </valueHelp>
+ <valueHelp>
+ <format>easydns</format>
+ <description/>
+ </valueHelp>
+ <valueHelp>
+ <format>namecheap</format>
+ <description/>
+ </valueHelp>
+ <valueHelp>
+ <format>noip</format>
+ <description/>
+ </valueHelp>
+ <valueHelp>
+ <format>sitelutions</format>
+ <description/>
+ </valueHelp>
+ <valueHelp>
+ <format>zoneedit1</format>
+ <description/>
+ </valueHelp>
+ </properties>
+ </leafNode>
+ <leafNode name="server">
+ <properties>
+ <help>Server to send DDNS update to [REQUIRED FOR CUSTOM]</help>
+ <valueHelp>
+ <format>IPv4</format>
+ <description>IP address of DDNS server</description>
+ </valueHelp>
+ <valueHelp>
+ <format>FQDN</format>
+ <description>Hostname of DDNS server</description>
+ </valueHelp>
+ </properties>
+ </leafNode>
+ </children>
+ </tagNode>
+ <node name="use-web">
+ <properties>
+ <help>Web check used for obtaining the external IP address</help>
+ </properties>
+ <children>
+ <leafNode name="skip">
+ <properties>
+ <help>Skip everything before this on the given URL</help>
+ </properties>
+ </leafNode>
+ <leafNode name="url">
+ <properties>
+ <help>URL to obtain the current external IP address</help>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>