summaryrefslogtreecommitdiff
path: root/interface-definitions/dns-domain-name.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-12-30 10:42:56 +0100
committerGitHub <noreply@github.com>2023-12-30 10:42:56 +0100
commit0591d03464248c3a50516cd00b04989b3f16f1e5 (patch)
tree3e5c6aa2e4a8408f42f2f5fed8f3128f7d8daf04 /interface-definitions/dns-domain-name.xml.in
parente9883143310993d87ba2e0c8ec7ef3b9faf928b1 (diff)
parent584c63f4473373a377db802c173f6252c8085fa3 (diff)
downloadvyos-1x-0591d03464248c3a50516cd00b04989b3f16f1e5.tar.gz
vyos-1x-0591d03464248c3a50516cd00b04989b3f16f1e5.zip
Merge pull request #2718 from indrajitr/shorten-domain-search-path
system: T5877: Shorten system domain-search config path
Diffstat (limited to 'interface-definitions/dns-domain-name.xml.in')
-rw-r--r--interface-definitions/dns-domain-name.xml.in21
1 files changed, 7 insertions, 14 deletions
diff --git a/interface-definitions/dns-domain-name.xml.in b/interface-definitions/dns-domain-name.xml.in
index ef34ecbf5..b5b3692b1 100644
--- a/interface-definitions/dns-domain-name.xml.in
+++ b/interface-definitions/dns-domain-name.xml.in
@@ -45,24 +45,17 @@
</constraint>
</properties>
</leafNode>
- <node name="domain-search" owner="${vyos_conf_scripts_dir}/host_name.py">
+ <leafNode name="domain-search" owner="${vyos_conf_scripts_dir}/host_name.py">
<properties>
<help>Domain Name Server (DNS) domain completion order</help>
<priority>400</priority>
+ <constraint>
+ <validator name="fqdn"/>
+ </constraint>
+ <constraintErrorMessage>Invalid domain name (RFC 1123 section 2).\nMay only contain letters, numbers and period.</constraintErrorMessage>
+ <multi/>
</properties>
- <children>
- <leafNode name="domain">
- <properties>
- <help>DNS domain completion order</help>
- <constraint>
- <regex>[-a-zA-Z0-9.]+</regex>
- </constraint>
- <constraintErrorMessage>Invalid domain name</constraintErrorMessage>
- <multi/>
- </properties>
- </leafNode>
- </children>
- </node>
+ </leafNode>
<node name="static-host-mapping" owner="${vyos_conf_scripts_dir}/host_name.py">
<properties>
<help>Map host names to addresses</help>