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 :))