This is using Punycode encoding, see https://en.m.wikipedia.org/wiki/Emoji_domain .
Why is this even a thing?
Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"
11–20 of 118 posts
Re: Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"
#12This is using Punycode encoding, see https://en.m.wikipedia.org/wiki/Emoji_domain .
Why is this even a thing?
Re: Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"
#13This is using Punycode encoding, see https://en.m.wikipedia.org/wiki/Emoji_domain .
Why is this even a thing?
Re: Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"
#14I hate to be a spoilsport, but this is a good reminder that https://en.wikipedia.org/wiki/IDN_homograph_attack is still possible in some domains and with some browsers and CLI tools, although some of the easier tricks to detect have been mitigated.
if you run pihole or a local dnsmasq/unbound it should be possible to mitigate it by sinkholing any unicode domains, e.g. with dnsmasq (requires a patch https://github.com/spacedingo/dnsmasq-regexp_2.76 ) you can do this: address=/:xn--*:/0.0.0.0 does anyone know if something like this is possible with unbound?
Re: Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"
#15Re: Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"
#16This is using Punycode encoding, see https://en.m.wikipedia.org/wiki/Emoji_domain .
Why is this even a thing?
The Latin system is the one you're using here. It's very popular. Most humans in the integrated tribes are somewhat familiar with it‡. It has twenty six "letters" and then twenty six more "capital letters" which look different but mean almost the same thing for some reason, and then a bunch more symbols that aren't quite letters although some (apostrophe, ampersand) have a better claim than others. But other popular systems include Han, which has a shitload of logograms, and Cyrillic and Greek which have different letters than Latin and different rules about how letters work.
Anyway, the people who invented DNS only or primarily used the Latin system and they weren't much into capital letters. So, their system doesn't treat capital letters as different and only has one set of twenty six Latin letters, ten digits, a dash and an underscore for some reason.
But, lots of people who do NOT have Latin as the primary or only writing system found this annoying to work with. They wanted to use their writing system with DNS especially once the Web came along and popularized the Internet.
Punycode is a way to use some reserved nonsense-looking Latin text in any DNS label to mean that actually this DNS name should be displayed as some Unicode text. Unicode encodes all popular human writing systems (and lots of unpopular ones) fairly well, so this sorts the problem out. Specifically Punycode reserves Latin names that start xn-- for this purpose. By only caring about display this avoids changing anything in the technical underpinnings. Only user-facing code needed to change, every other layer is unaltered.
The rules about IDNs say that a registry (such as .com) should have rules to ensure the names in that registry are unambigous and meaningful. But in practice the purpose of the .com registry in particular is to make as much money as possible regardless of the consequences. So you can register any name you please and they won't stop you even if it's deliberately confusing.
‡ None of the extant unintegrated tribes have writing. This probably doesn't mean anything important.
Re: Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"
#17Re: Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"
#18Earlier quoted context omitted.
Why is this even a thing?
There are a bunch of different human writing systems. All of them are weird because they were invented by humans, most of them are very weird indeed because they were invented by humans a long time ago and then gradually mutated. The Latin system is the one you're using here. It's very popular. Most humans in the integrated tribes are somewhat familiar with it‡. It has twenty six "letters" and then twenty six more "c…
Re: Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"
#19Earlier quoted context omitted.
There are a bunch of different human writing systems. All of them are weird because they were invented by humans, most of them are very weird indeed because they were invented by humans a long time ago and then gradually mutated. The Latin system is the one you're using here. It's very popular. Most humans in the integrated tribes are somewhat familiar with it‡. It has twenty six "letters" and then twenty six more "c…
That’s unnecessarily patronizing.
Re: Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"
#20It took me a while to get the joke because I didn't recognize that white ghost on a white background. I take this as another example why these non-ascii urls are a bad idea for security.