Live data from Hacker News

Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"

twitter.com

1–10 of 118 posts

Re: Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost"

#10
post #4

I 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?
Post reply on HN