summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-10-15 07:21:52 +0300
committerGitHub <noreply@github.com>2022-10-15 07:21:52 +0300
commitec202631ccb81a9a5ee08a97395acf19b2978bb5 (patch)
treef9061ce4acd3d38b2e36617f416de5756a3e2dda
parentae975a29418a17871529573b9cc87089eecdd296 (diff)
parentf12c0e4f426b3e07d6a0fb111a8e888d066d3bbd (diff)
downloadvyos-1x-ec202631ccb81a9a5ee08a97395acf19b2978bb5.tar.gz
vyos-1x-ec202631ccb81a9a5ee08a97395acf19b2978bb5.zip
Merge pull request #1579 from sever-sever/T4743
ddclient: T4743: Add option for IPv6 Dynamic DNS
-rw-r--r--data/templates/dynamic-dns/ddclient.conf.tmpl2
-rw-r--r--interface-definitions/dns-dynamic.xml.in6
2 files changed, 7 insertions, 1 deletions
diff --git a/data/templates/dynamic-dns/ddclient.conf.tmpl b/data/templates/dynamic-dns/ddclient.conf.tmpl
index 9d379de00..517e4bad4 100644
--- a/data/templates/dynamic-dns/ddclient.conf.tmpl
+++ b/data/templates/dynamic-dns/ddclient.conf.tmpl
@@ -9,7 +9,7 @@ ssl=yes
{% set web_skip = ", web-skip='" + interface[iface].use_web.skip + "'" if interface[iface].use_web.skip is defined else '' %}
use=web, web='{{ interface[iface].use_web.url }}'{{ web_skip }}
{% else %}
-use=if, if={{ iface }}
+{{ 'usev6=if' if interface[iface].ipv6_enable is defined else 'use=if' }}, if={{ iface }}
{% endif %}
{% if interface[iface].rfc2136 is defined and interface[iface].rfc2136 is not none %}
diff --git a/interface-definitions/dns-dynamic.xml.in b/interface-definitions/dns-dynamic.xml.in
index 250642691..64826516e 100644
--- a/interface-definitions/dns-dynamic.xml.in
+++ b/interface-definitions/dns-dynamic.xml.in
@@ -274,6 +274,12 @@
</leafNode>
</children>
</node>
+ <leafNode name="ipv6-enable">
+ <properties>
+ <help>Allow explicit IPv6 addresses for Dynamic DNS for this interface</help>
+ <valueless/>
+ </properties>
+ </leafNode>
</children>
</tagNode>
</children>