domain2idna1
Tool to convert domains to idna format
Usage
domain2idna [POSITION]
[argument]
Overview
fBdomain2idna The tool to convert a domain or a file with a list of domain can
This project provides a tool for list or hosts file maintainer that converts domain
to the Punycode/IDNA format. With domain2idna you can do:
* Read a given domain and convert it to the Punycode/IDNA format.
* Read a given URL and convert its base to Punycode/IDNA format.
* Read a file and convert all non-commented line to the Punycode/IDNA format.
* Print the converted data on the screen.
* Save into a file the converted data.
* Return the converted data (when used as a module).
* Ignore commented inputs (starts with #).
Usage
usage: omain2idna [-h] [ -s -SUBJECT [SUBJECT ...]] [ -e ENCODING] [-f FILE]
optional arguments:
-h, --help show this help message and exit
-s SUBJECT [SUBJECT ...], --subject SUBJECT [SUBJECT ...]. Sets the subjects to convert.
-e ENCODING, --encoding ENCODING. Sets the encoding to use.
-f FILE, --file FILE. Sets the file to read to get the domain(s) to convert.
-o OUTPUT, --output OUTPUT. Sets the file where we write the converted domain(s).
-v, --version Show program's version number and exit
Examples
domain2idna -f file
Releases
Unchanged in 2 releases since Debian 12 (Bookworm).