Some reading on IRIs and IDNs

Philip Linde linde.philip at gmail.com
Mon Dec 14 10:46:49 GMT 2020


On Fri, 11 Dec 2020 18:14:47 -0500
Sean Conner <sean at conman.org> wrote:

> I know, because I tried on a few systems I have access to,
> and they all failed to look up "café.mozz.us" (yes, via getaddrinfo() even). 
> They all worked when I looked up "xn--caf-dma.mozz.us".

I don't think Stephane means different systems in the sense of
different computers, but different systems as in different name
resolution systems. On my computer, for example, there are at least
three sources for names: DNS, mDNS and /etc/hosts. getaddrinfo() can
resolve using any of these systems via the name service switch, but IDN
only concerns DNS names.

café.mozz.us in your tests probably always resolved via DNS, but if you
had a café.local mDNS name or "café" in your hosts file you might not
be able to use IDN. I don't know about the hosts file, but mDNS for
example uses UTF-8 encoded names directly.

-- 
Philip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20201214/b3d7ae31/attachment-0001.sig>


More information about the Gemini mailing list