You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
localhost and localhost. are valid domains, but give ValidationFailure #185
Regardless of the intention of this method with regard to local vs Internet domains, it would be very nice to have a way to specify what is desired. Either additional validation functions or additional arguments to say whether names without any dot separators should be valid and whether IPv4 addresses should be valid and whether IPv6 addresses should be valid.
Activity
stevecj commentedon Jun 23, 2021
Regardless of the intention of this method with regard to local vs Internet domains, it would be very nice to have a way to specify what is desired. Either additional validation functions or additional arguments to say whether names without any dot separators should be valid and whether IPv4 addresses should be valid and whether IPv6 addresses should be valid.
blakev commentedon Nov 23, 2021
@stevecj makes a good point. The
urlvalidation function doesn't work as expected.nandgator commentedon Mar 2, 2023
related: #142
maint: simplified `hostname` module
aaronkurz commentedon Mar 17, 2025
@yozachar So localhost is not seen as a valid domain I suppose?
nandgator commentedon Mar 17, 2025
No, but a valid simple hostname.