idncheck(1)
β¨ NAME β¨
okay so bestie, meet idncheck β the idncheck(1) command from the General Commands Manual that checks an internationalized domain name. That's the whole name-vibe: idncheck β check an internationalized domain name. π
πΈ SYNOPSIS πΈ
idncheck [options..] name
π¦ DESCRIPTION π¦
okay so idncheck checks an internationalized domain name. It tries to convert name to A-labels with various checks defined by IDNA2008-Protocol. No cap. β¨
If the given name is a valid internationalized domain name, idncheck outputs the message:
passed.
to standard error and returns with exit code 0. Also note: traditional ASCII domain names are considered valid too, bestie. π«Ά
If the name is not valid, it outputs the reason (e.g. invalid encoding) to standard error and returns with exit code 2. If an internal error such as memory exhaustion is caused, idncheck outputs the reason to standard error and then returns with exit code 3. π
Unless -noconf (or -C) option is given, idncheck reads a configuration file (/nix/store/hcyf58m2phm5bg6ch5a4lkif5fpf1lck-idnkit-2.3/etc/idn2.conf, ~/.idn2rc or a file specified by an option) and performs conversions according to the parameters specified in the file. π
π OPTIONS π
-in in-code,-i in-codeβ specify the encoding name of the domain name specified as an argument. Any of the following encoding names can be recognized:- Any encoding names which
iconv_open()accepts PunycodeUTF-8- Any alias names for the above, defined by the encoding alias file.
- Any encoding names which
The encoding defaults to the value of the environment variable IDN_LOCAL_CODESET or, if it is not set, an encoding determined from the locale information. π
-conf file,-c fileβ specify the path of idnkit configuration file. If not specified, the default path (/nix/store/hcyf58m2phm5bg6ch5a4lkif5fpf1lck-idnkit-2.3/etc/idn2.confor~/.idn2rc) unless-noconf(or-C) option is specified. π-noconf,-Cβ suppress reading a configuration file. π-registration,-g(default) β use domain name registration protocol. This is the default behavior. π-lookup,-lβ use domain name lookup protocol. π-nomap,-Mβ don't perform themapaction. This is the same as-skip map. π-skip action,...β skip actions. The following action names are recognized:mapβ mappingsasclowerβ convert ASCII uppercase letters to lowercasertconvβ conversion from Punycode to Unicode for round trip checkprohcheckβ prohibited code point checkunascheckβ unassigned code point checknfccheckβ NFC conformance checkprefcheckβ ACE prefix checkhyphcheckβ hyphen checkcombcheckβ combining character checkctxjcheckβ CONTEXTJ code point checkctxocheckβ CONTEXTO code point check for domain name registration protocol.ctxolitecheckβ CONTEXTO code point check for domain name lookup protocol.bidicheckβ Bidi check.idnconvβ conversion to Punycodelencheckβ label length checkrtcheckβ round trip check
-localcheck file,-e fileβ also perform code point check usingfile. Using the local check feature, you can check whether a domain name consists of code points allowed by a particular registry. The format offileis explained inidn_setlocalcheckfile(3). π§-quiet,-qβ suppress a result message; yield exit status only. π€«-test,-tβ print which language, input encoding and output encoding will be chosen if the same arguments are given to the command, and then quit immediately. β-version,-vβ print version information and quit. π-help,-hβ print help and quit. π
π LOCAL ENCODING π
idncheck guesses local encoding from locale and environment variables. See the LOCAL ENCODING section in idn2.conf(5) for more details. π
π₯ SEE ALSO π₯
idncmp(1), idnconv2(1), iconv(3), idn2.conf(5), idnalias.conf(5), idnlang.conf(5)
π BUGS π
The automatic input-code selection depends on your system, and sometimes it cannot guess or guess wrong. It is better to explicitly specify it using the -in option. π«
okay that's the whole page, bestie β cute sign-off: Sep 21, 2012 Β· idncheck(1) Β· mwah πβ¨
π¦ where this page comes from
- nixos 26.05: idnkit 2.3
- Copyright (c) 2000-2002 Japan Network Information Center. All rights reserved
- Copyright (c) 2000-2002 Japan Network Information Center. All rights reserved."
- Copyright (c) 2010-2012 Japan Registry Services Co., Ltd. All rights reserved."
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms