diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-04-30 14:50:55 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-04-30 14:50:55 +0000 |
commit | 3c37b6a44dca552da950b5288a30c7e074d58704 (patch) | |
tree | 9c1718ab2490e107f8a1f1b0eda60f6b4b59363c | |
parent | f07bdb139432259bec5af6659a8d6e4fbc7cb4be (diff) | |
download | vyos-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
-rw-r--r-- | interface-definitions/service_dns_forwarding.xml.in | 2 |
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)(?<!\.)</regex> </constraint> </properties> <children> |