summaryrefslogtreecommitdiff
path: root/interface-definitions/include
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-09-23 19:06:03 -0500
committerIndrajit Raychaudhuri <irc@indrajit.com>2023-09-23 23:35:57 -0500
commitf0a8d0d8c622e67ef66c370747f13d4fdb6fd773 (patch)
tree153b2495d7a9ca500628b3796c4cc546a5b840ef /interface-definitions/include
parentd9f8ff7e277105e34afaa9164517b03ff7675d76 (diff)
downloadvyos-1x-f0a8d0d8c622e67ef66c370747f13d4fdb6fd773.tar.gz
vyos-1x-f0a8d0d8c622e67ef66c370747f13d4fdb6fd773.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/include')
-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>