Punycoder converts international domain names to their (RFC1035 compatible)
punycode representations on the commandline, so you can use them with nslookup
or dig
.
This is done by first converting the non-ASCII characters into their Unicode code points, and then encoding those code points using a special base-36 encoding scheme. The resulting string of ASCII characters is prefixed with the characters "xn--" to indicate that it is a Punycode-encoded domain name.
- new logo
- refactored cli args.
- support unicode encoding of punycode
brew tap simonmittag/cli &&
brew install punycoder &&
punycoder
git clone https://github.com/simonmittag/punycoder && cd punycoder &&
go install github.com/simonmittag/punycoder/cmd/punycoder &&
punycoder
🌐 punycoder[v0.2.2]
λ Usage: punycoder host | [-u] host | [-v] | [-h]
-h print usage
-u convert to unicode
-v print punycoder version
Use punycoder with bash pipes reading from stdin
echo 1❤️.ws | punycoder | nslookup
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: xn--1-7iqv272g.ws
Address: 64.70.19.203
echo xn--1-7iqv272g.ws | punycoder -u
1❤️.ws
The punycoder team welcomes all contributors. Everyone interacting with the project's codebase, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct