diff options
author | Christian Breunig <christian@breunig.cc> | 2023-12-30 10:42:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-30 10:42:56 +0100 |
commit | 0591d03464248c3a50516cd00b04989b3f16f1e5 (patch) | |
tree | 3e5c6aa2e4a8408f42f2f5fed8f3128f7d8daf04 /interface-definitions/dns-domain-name.xml.in | |
parent | e9883143310993d87ba2e0c8ec7ef3b9faf928b1 (diff) | |
parent | 584c63f4473373a377db802c173f6252c8085fa3 (diff) | |
download | vyos-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.in | 21 |
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> |