idn2 tool converts DNS domains from UTF-8 to ASCII compatible encoding (ACE) form, as used in the DNS protocol.