A plugin for hsd that expands the root name server blocklist to protect the user from looking up dangerous top-level domains.
hsd --plugins <path/to/holdmyhand>
- Adds to blocklist integers 0 through 255 (interpreted as TLD strings)
- Adds to blocklist extra IETF reserved names
- Forces ICANN resolution of TLDs added since HNS mainnet launch:
amazon
xn--cckwcxetd
("amazon" in Japanese)xn--jlq480n2rg
("amazon" in Chinese)hotel
idn
kids
music
spa
web
webs
merck
- Attempts to block lookup of punycode names that may be homographs of ICANN TLDs
Examples with log messages from hsd
:
$ dig @127.0.0.1 -p 25350 handshake.cοm
[warning] (holdmyhand) Blocking lookup request for name xn--cm-jbc (reserved homograph: com)
$ dig @127.0.0.1 -p 25350 starservice.music
[warning] (holdmyhand) Forcing ICANN lookup for name music
This repository minimally imports and vendors code from these MIT-licensed open source projects:
https://github.com/bestiejs/punycode.js
https://github.com/vhf/confusable_homoglyphs
Homograph detection is based on this project: