Re:Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"
by Symbiote on Thursday January 09, 2020 @12:37PM
(#22003416)
There are a few in Roman-lettered Europe, but they're not exactly common. Many are redirects to an ASCII domain.
They seem to be used in Russia a little more, especially with the .рф TLD[1], although many are still just redirects.
I have no idea what the text means, but these sites look reasonable: https://www.xn--80aicstx0byb.xn--p1ai/ http://xn--j1abth1c.xn--p1ai/ https://xn--d1ai6ai.xn--p1ai/
[1] https://en.wikipedia.org/wiki/.%D1%80%D1%84
(HN seems to have translated these to Punycode, presumably a quick security measure without respect for non-ASCII languages.)
Re:Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"
by DyslexicAtheist on Thursday January 09, 2020 @01:57PM
(#22004258)
it used to be possible to block this with a patched dnsmasq that allows setting a regex, but the fork is not maintained and merging the patches to upstream is also not much fun.
so I hacked something together that uses the linux kernel NFQUEUE: https://github.com/DyslexicAtheist/nfq
this way I have guarantee that these domains will never be resolved (which is what I want :))
To tell you the truth IDN domains feel like a failure, a gimmick. Their biggest market probably was meant to be countries that don't use the Latin alphabet, and they've failed spectacularly.
If you use Firefox, for your own security, set network.IDN_show_punycode to true.