⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 runidn.1

📁 package of develop dns
💻 1
字号:
.\" $Id: runidn.1,v 1.1.1.1 2003/06/04 00:27:14 marka Exp $.\".\" Copyright (c) 2000,2001 Japan Network Information Center..\" All rights reserved..\"  .\" By using this file, you agree to the terms and conditions set forth bellow..\" .\" 			LICENSE TERMS AND CONDITIONS .\" .\" The following License Terms and Conditions apply, unless a different.\" license is obtained from Japan Network Information Center ("JPNIC"),.\" a Japanese association, Kokusai-Kougyou-Kanda Bldg 6F, 2-3-4 Uchi-Kanda,.\" Chiyoda-ku, Tokyo 101-0047, Japan..\" .\" 1. Use, Modification and Redistribution (including distribution of any.\"    modified or derived work) in source and/or binary forms is permitted.\"    under this License Terms and Conditions..\" .\" 2. Redistribution of source code must retain the copyright notices as they.\"    appear in each source code file, this License Terms and Conditions..\" .\" 3. Redistribution in binary form must reproduce the Copyright Notice,.\"    this License Terms and Conditions, in the documentation and/or other.\"    materials provided with the distribution.  For the purposes of binary.\"    distribution the "Copyright Notice" refers to the following language:.\"    "Copyright (c) 2000-2002 Japan Network Information Center.  All rights reserved.".\" .\" 4. The name of JPNIC may not be used to endorse or promote products.\"    derived from this Software without specific prior written approval of.\"    JPNIC..\" .\" 5. Disclaimer/Limitation of Liability: THIS SOFTWARE IS PROVIDED BY JPNIC.\"    "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT.\"    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A.\"    PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL JPNIC BE LIABLE.\"    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR.\"    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF.\"    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR.\"    BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,.\"    WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR.\"    OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF.\"    ADVISED OF THE POSSIBILITY OF SUCH DAMAGES..\".TH RUNIDN 1 "April 6, 2001".\".SH NAMErunidn \- A script to allow applications to use internationalized domain names..\".SH SYNOPSIS\fBrunidn\fP [\fB-e\fP \fIlocal-codeset\fP] \fIprogram-name\fP [\fIargs..\fP].\".SH DESCRIPTION\fBrunidn\fP enables applications to use internationalized domain nameswithout recompilation.Just add ``runidn'' before the application-name, and the applicationcan handle non-ASCII domain names.  For example, you can do:.PP.RS 4.nf\f(CW% runidn telnet \fInon-ASCII-hostname\fR.fi.RE.PPBefore using runidn, you should set up properties related tointernationalized DNS by configuring idnkit's configuration file\fBidn.conf\fP.See idn.conf(5) which describes the configuration..\".SH OPTIONThe following option is available:.TP 4\fB\-e\fP \fIlocal-codeset\fPSpecify the application's local codeset.If the option is not specified, \fBrunidn\fR guesses the codesetfrom the current locale.See the ``NOTE'' section for more details about local codeset..\".SH IMPLEMENTATION\fBrunidn\fR is a small shell script that sets up an environment variablecalled ``LD_PRELOAD'', so that an application dynamically links a sharedlibrary ``libidnkitres'' before any other shared libraries..PPThe library ``libidnkitres'' provides a special version of resolverfunctions which implement features for handling internationalizeddomain names.\fBrunidn\fR replaces the following functions with the special version:.PP.RS 4.nf.ft CWgethostbynamegethostbyname2gethostbyaddrgethostbyname_rgethostbyname2_rgethostbyaddr_rgetipnodebynamegetipnodebyaddrfreehostentgetaddrinfofreeaddrinfogetnameinfo.ft R.fi.RE.PPBy overriding them in the standard libraries with the special versionprovided by ``libidnkitres'',\fBrunidn\fR enables applications to use internationalized domain names..RS 4.IP \(bu 2These API functions accept non-ASCII domain names encodedin the local codeset that the application is using.Also the result from these APIs may contain non-ASCII domain names..IP \(bu 2The normalization and codeset conversion between application's localcodeset and the codeset used in DNS protocol data are handledautomatically, so users/applications need not worry about them..RE.PPProperties of internationalized DNS (such as the normalization orthe codeset used on DNS protocol data) can be configured with theidnkit's configuration file (\fBidn.conf\fR).See idn.conf(5) for details..\".SH NOTEUnless \fB\-e\fP option is specified, \fBrunidn\fR tries to guessthe application's local codeset from the application's current locale.However, sometimes it cannot guess the codeset correctly, for exampleif the application does not set the locale appropriately by calling`setlocale()'.In that case, you can explicitly specify the local codeset by setting anenvironment variable ``IDN_LOCAL_CODESET''.See the section ``LOCAL CODESET'' in idn.conf(5) for details..PPThe idea of using ``LD_PRELOAD'' to replace some functions in the standardlibrary was taken from ``runsocks'' script distributed as part of SOCKS5reference implementation..SH BUGSThere are many cases where \fBrunidn\fR does not work..PPYour system must support ``LD_PRELOAD'' mechanism in the first place..PPDue to security reasons, ``LD_PRELOAD'' mechanism is disabled forsetuid programs in any sane systems.So \fBrunidn\fR does not work for setuid programs such as ping or rsh..PPIf your application uses a function other than the ones runidn supports forname resolution, you lose..SH "SEE ALSO"idn.conf(5), runsocks(1)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -