summaryrefslogtreecommitdiff
path: root/interface-definitions/service_dns_forwarding.xml.in
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-04-30 14:50:55 +0000
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-04-30 18:21:37 +0000
commitb07539481e5daf95779767668f1a06aba82ce5ca (patch)
tree34eff2dc656dc9d725131bc262b4dc5d93af6716 /interface-definitions/service_dns_forwarding.xml.in
parent07826e81b35eb6f94aec37bcf71b64a80ad228de (diff)
downloadvyos-1x-b07539481e5daf95779767668f1a06aba82ce5ca.tar.gz
vyos-1x-b07539481e5daf95779767668f1a06aba82ce5ca.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 (cherry picked from commit 3c37b6a44dca552da950b5288a30c7e074d58704)
Diffstat (limited to 'interface-definitions/service_dns_forwarding.xml.in')
-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>