It appears that Slavko via mailop <li...@slavino.sk> said:
>>>+ both are able to use underscored labels (eg. _dmarc), in contrast
>>>  of idna library, which rejects that domain name with invalid char
>
>>That is correct. IDNA is only for encoding hostnames, and hostnames do not 
>>allow
>>underscores.
>
>Neverending discussion about what is hostname and what is domain
>name?

No, that difference has been clear for about the past 40 years.

A domain name is a sequence of labels, with each label being a string
of 65 octets or less. Hostnames are a subset of domain names, where
each label consists only of letters, digits, and hyphens.

In IDNA, A-labels are all LDH so a sequence of A-labels is a hostname.
The IDNA2003 and 2008 rules tell you what U-labels correspond to
A-labels and so what are internationalized hostnames.

Like I said, internationalized text is hard, and trying to take
shortcuts will make you sorry.

R's,
John
_______________________________________________
mailop mailing list
mailop@mailop.org
https://list.mailop.org/listinfo/mailop

Reply via email to