summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-04-30 14:50:55 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2024-04-30 14:50:55 +0000
commit3c37b6a44dca552da950b5288a30c7e074d58704 (patch)
tree9c1718ab2490e107f8a1f1b0eda60f6b4b59363c /interface-definitions
parentf07bdb139432259bec5af6659a8d6e4fbc7cb4be (diff)
downloadvyos-1x-3c37b6a44dca552da950b5288a30c7e074d58704.tar.gz
vyos-1x-3c37b6a44dca552da950b5288a30c7e074d58704.zip
T6169: DNS forwarding should allow underscore for srv record
This srv recors looks valid: ``` set service dns forwarding authoritative-domain _tcp.db.mongors1.example.com records srv _mongodb entry 0 hostname 'mongors1.example.com' ``` But FQDN validator cannot validate it correctly, use regex to fix
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/service_dns_forwarding.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-definitions/service_dns_forwarding.xml.in b/interface-definitions/service_dns_forwarding.xml.in
index a54618e82..b52b4bda3 100644
--- a/interface-definitions/service_dns_forwarding.xml.in
+++ b/interface-definitions/service_dns_forwarding.xml.in
@@ -115,7 +115,7 @@
<description>An absolute DNS domain name</description>
</valueHelp>
<constraint>
- <validator name="fqdn"/>
+ <regex>((?!-)[-_a-zA-Z0-9.]{1,63}|@|any)(?&lt;!\.)</regex>
</constraint>
</properties>
<children>