Fix #8785 - allow wildcard dns records

Added * to the DNSValidator regex to allow wildcard domains like *.example.com
This commit is contained in:
fmlshai 2022-03-23 14:38:26 +01:00 committed by GitHub
parent 41efad4056
commit f45e64c756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ class MinPrefixLengthValidator(BaseValidator):
DNSValidator = RegexValidator(
regex='^[0-9A-Za-z._-]+$',
message='Only alphanumeric characters, hyphens, periods, and underscores are allowed in DNS names',
regex='^[0-9A-Za-z*._-]+$',
message='Only alphanumeric characters, asterisks, hyphens, periods, and underscores are allowed in DNS names',
code='invalid'
)