Regex looks for hostname only (not very useful for enterprise or cloud environments)
Possible solution
Replace current regex on validators.py line 18 to
hostname_re = r'(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-).)+[a-zA-Z]{2,63}$)$'
Instead of current
hostname_re = r'a-z0-9$'
Regex looks for hostname only (not very useful for enterprise or cloud environments)
Possible solution
Replace current regex on validators.py line 18 to hostname_re = r'(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-).)+[a-zA-Z]{2,63}$)$' Instead of current hostname_re = r'a-z0-9$'