Dňa 5. októbra 2024 18:29:10 UTC používateľ John Levine <jo...@taugh.com> napísal:
>Yeah, the python encodings.idna library has never been updated past IDNA2003 >for >reasons I find unpersuasive. If you import the external idna library, which is >maintained by one of the people at ICANN who manage the root zone, you get >proper IDN2008 support. Perhaps i was not clear enough, both (dnspython & aiodns) requires idna library (not encodings.idna) to provide IDNA2008, the difference is, that aiodns tries that idna library and if is not instaled (or fails to import) it "fallback" to encodings.idna, thus installing idna is enough to use it. In dnspython, installing idna library is not enough and one must specify to use it via idna_codec argument in related methods/functions, othervise the encodings.idna is used. >>+ 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? How one will reliably distinguish if hostname is really hostname and not (sub)domain name just from its name? Is slavino.sk hostname or domain name? Etc, etc, ... Why it is named IDN (Internationalized Domain Names) and not IHN (Internationalized Host Names) when it is for hostnames and not for domain names? How many questions, and how few answers... regards -- Slavko https://www.slavino.sk/ _______________________________________________ mailop mailing list mailop@mailop.org https://list.mailop.org/listinfo/mailop