From 8afe702361df75049329c0db3ce7f91127498f54 Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Mon, 3 Apr 2023 16:07:55 -0500 Subject: dns: T5143: Apply constraint for domain name in DNS forwarding This will prevent arbitrary strings from being entered as domain names. Additionally, reuse the fqdn validator instead of a custom regex. --- interface-definitions/dns-forwarding.xml.in | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'interface-definitions/dns-forwarding.xml.in') diff --git a/interface-definitions/dns-forwarding.xml.in b/interface-definitions/dns-forwarding.xml.in index 14b38b24d..2b6892ce5 100644 --- a/interface-definitions/dns-forwarding.xml.in +++ b/interface-definitions/dns-forwarding.xml.in @@ -83,6 +83,13 @@ Domain to forward to a custom DNS server + + text + An absolute DNS domain name + + + + #include @@ -105,10 +112,10 @@ Domain to host authoritative records for text - An absolute DNS name + An absolute DNS domain name - [-_a-zA-Z0-9.]{1,63} + -- cgit v1.2.3