diff options
author | Christian Breunig <christian@breunig.cc> | 2023-04-13 08:55:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-13 08:55:22 +0200 |
commit | 0cadfa1e1dea86ef0f7dc45fe96aeab59b803b4d (patch) | |
tree | d51956cb6bbd894d542738afe49e18f1a66045dd /interface-definitions/dns-forwarding.xml.in | |
parent | 23c757dae9b164cdaeba334b509b4def9c71f9b3 (diff) | |
parent | 8afe702361df75049329c0db3ce7f91127498f54 (diff) | |
download | vyos-1x-0cadfa1e1dea86ef0f7dc45fe96aeab59b803b4d.tar.gz vyos-1x-0cadfa1e1dea86ef0f7dc45fe96aeab59b803b4d.zip |
Merge pull request #1935 from indrajitr/pdns-round3
dns: T5143: Apply constraint for domain name in DNS forwarding
Diffstat (limited to 'interface-definitions/dns-forwarding.xml.in')
-rw-r--r-- | interface-definitions/dns-forwarding.xml.in | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/interface-definitions/dns-forwarding.xml.in b/interface-definitions/dns-forwarding.xml.in index 14b38b24d..2b6892ce5 100644 --- a/interface-definitions/dns-forwarding.xml.in +++ b/interface-definitions/dns-forwarding.xml.in @@ -83,6 +83,13 @@ <tagNode name="domain"> <properties> <help>Domain to forward to a custom DNS server</help> + <valueHelp> + <format>text</format> + <description>An absolute DNS domain name</description> + </valueHelp> + <constraint> + <validator name="fqdn"/> + </constraint> </properties> <children> #include <include/name-server-ipv4-ipv6-port.xml.i> @@ -105,10 +112,10 @@ <help>Domain to host authoritative records for</help> <valueHelp> <format>text</format> - <description>An absolute DNS name</description> + <description>An absolute DNS domain name</description> </valueHelp> <constraint> - <regex>[-_a-zA-Z0-9.]{1,63}</regex> + <validator name="fqdn"/> </constraint> </properties> <children> |