id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 18119,add DomainNameValidator to validate Internet Domain Names,michele,Nina Menezes,"Internet Domain Names are very present throughout, e.g. in URLs and e-mail addresses. This patch adds django.core.validators.DomainNameValidator to check Internet Domain Names. DomainNameValidator supports IDNA (utf) domain names, but it can reject them if optional accept_idna=False is passed to the constructor (defaults to accept). DomainNameValidator is implemented as follows: * derives RegexValidator * uses the same RegEx of URLValidator (with the additional constrain to accept only 127 labels / 255 chars, as per RFC) * if plain validation fails, converts UTF -> ASCII with IDNA encoding and attempts to validate again (unless accept_idna=False) Based on this Validator, I will submit separate patches to add DomainNameField support for models.",New feature,assigned,Core (Other),dev,Normal,,validators,,Accepted,1,0,0,1,0,0