mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-15 03:32:53 -06:00
Fix #8785 - allow wildcard dns records
Added * to the DNSValidator regex to allow wildcard domains like *.example.com
This commit is contained in:
parent
41efad4056
commit
f45e64c756
@ -24,7 +24,7 @@ class MinPrefixLengthValidator(BaseValidator):
|
|||||||
|
|
||||||
|
|
||||||
DNSValidator = RegexValidator(
|
DNSValidator = RegexValidator(
|
||||||
regex='^[0-9A-Za-z._-]+$',
|
regex='^[0-9A-Za-z*._-]+$',
|
||||||
message='Only alphanumeric characters, hyphens, periods, and underscores are allowed in DNS names',
|
message='Only alphanumeric characters, asterisks, hyphens, periods, and underscores are allowed in DNS names',
|
||||||
code='invalid'
|
code='invalid'
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user