summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-09-23 19:06:03 -0500
committerIndrajit Raychaudhuri <irc@indrajit.com>2023-11-30 21:42:23 -0600
commit25588799dd5f655ee093b650f607d0bab1fd3d00 (patch)
tree74bef6b16a2f51fb6ad4f3cc5f9f5bbd36f2e065 /interface-definitions
parentc545758552ababa069fc090ac50b79a69ad72457 (diff)
downloadvyos-1x-25588799dd5f655ee093b650f607d0bab1fd3d00.tar.gz
vyos-1x-25588799dd5f655ee093b650f607d0bab1fd3d00.zip
ddclient: T5612: Relax hostname validation for apex and wildcard entry
Some porvides (like 'namecheap') allow to use '@' or '*' as hostname prefix for apex and wildcard records. This commit relaxes the hostname validation to allow these prefixes.
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/include/dns/dynamic-service-host-name-server.xml.i3
1 files changed, 2 insertions, 1 deletions
diff --git a/interface-definitions/include/dns/dynamic-service-host-name-server.xml.i b/interface-definitions/include/dns/dynamic-service-host-name-server.xml.i
index ee1af2a36..9dd14f97c 100644
--- a/interface-definitions/include/dns/dynamic-service-host-name-server.xml.i
+++ b/interface-definitions/include/dns/dynamic-service-host-name-server.xml.i
@@ -4,8 +4,9 @@
<help>Hostname to register with Dynamic DNS service</help>
<constraint>
#include <include/constraint/host-name.xml.i>
+ <regex>(\@|\*)[-.A-Za-z0-9]*</regex>
</constraint>
- <constraintErrorMessage>Host-name must be alphanumeric and can contain hyphens</constraintErrorMessage>
+ <constraintErrorMessage>Host-name must be alphanumeric, can contain hyphens and can be prefixed with '@' or '*'</constraintErrorMessage>
<multi/>
</properties>
</leafNode>