summaryrefslogtreecommitdiff
path: root/interface-definitions/include/name-server-ipv4-ipv6-port.xml.i
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-03-27 08:47:21 +0200
committerGitHub <noreply@github.com>2023-03-27 08:47:21 +0200
commit0b34ab8fa73d22779e6120d1fea5edbbc5f9810f (patch)
treecbccc7d71e77bde44756c0ab34fa06662acf5bad /interface-definitions/include/name-server-ipv4-ipv6-port.xml.i
parent19ff8d43d2ad1adcea7d3d98756c58c836b7116f (diff)
parent3826517b1d1672d6ad5e2d1c2a8b7d70e22fd0ae (diff)
downloadvyos-1x-0b34ab8fa73d22779e6120d1fea5edbbc5f9810f.tar.gz
vyos-1x-0b34ab8fa73d22779e6120d1fea5edbbc5f9810f.zip
Merge pull request #1914 from indrajitr/pdns-port
dns: T5113: Support custom port for name-server forwarders
Diffstat (limited to 'interface-definitions/include/name-server-ipv4-ipv6-port.xml.i')
-rw-r--r--interface-definitions/include/name-server-ipv4-ipv6-port.xml.i25
1 files changed, 25 insertions, 0 deletions
diff --git a/interface-definitions/include/name-server-ipv4-ipv6-port.xml.i b/interface-definitions/include/name-server-ipv4-ipv6-port.xml.i
new file mode 100644
index 000000000..cf86e66a2
--- /dev/null
+++ b/interface-definitions/include/name-server-ipv4-ipv6-port.xml.i
@@ -0,0 +1,25 @@
+<!-- include start from name-server-ipv4-ipv6-port.xml.i -->
+<tagNode name="name-server">
+ <properties>
+ <help>Domain Name Servers (DNS) addresses</help>
+ <valueHelp>
+ <format>ipv4</format>
+ <description>Domain Name Server (DNS) IPv4 address</description>
+ </valueHelp>
+ <valueHelp>
+ <format>ipv6</format>
+ <description>Domain Name Server (DNS) IPv6 address</description>
+ </valueHelp>
+ <constraint>
+ <validator name="ipv4-address"/>
+ <validator name="ipv6-address"/>
+ </constraint>
+ </properties>
+ <children>
+ #include <include/port-number.xml.i>
+ <leafNode name="port">
+ <defaultValue>53</defaultValue>
+ </leafNode>
+ </children>
+</tagNode>
+<!-- include end -->