diff options
Diffstat (limited to 'contrib/idn/mdnkit/doc/en/spec/bind9.html')
-rw-r--r-- | contrib/idn/mdnkit/doc/en/spec/bind9.html | 641 |
1 files changed, 0 insertions, 641 deletions
diff --git a/contrib/idn/mdnkit/doc/en/spec/bind9.html b/contrib/idn/mdnkit/doc/en/spec/bind9.html deleted file mode 100644 index bc7bfd2c..00000000 --- a/contrib/idn/mdnkit/doc/en/spec/bind9.html +++ /dev/null @@ -1,641 +0,0 @@ -<!doctype html public "-//IETF//DTD HTML 2.0//EN"> -<!-- $Id: bind9.html,v 1.1 2001/03/05 12:58:02 tale Exp $ --> -<html> - -<head> -<title>bind-9 patch</title> -<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> -</head> - -<body> -<h1>BIND-9 �p�b�`</h1> -<h1>BIND-9 Patch</h1> - -<ul> -<li><a href="#overview">�T�v<br> -Overview</a> -<li><a href="#arch">�A�[�L�e�N�`��<br> -Architecture</a> -<li><a href="#named">named �C��<br> -Fixes in named</a> -<li><a href="#lwresd">lwresd �C��<br> -Fixes in lwresd</a> -<li><a href="#client">�N���C�A���g���C�u�����C��<br> -Fixes in Client Library</a> -<li><a href="#dig">dig/host/nslookup �C��<br> -Fixes in dig/host/nslookup</a> -</ul> - -<hr> -<h2><a name="overview">�T�v</a></h2> -<h2><a name="overview">Overview</a></h2> - -<p> -mDNkit �Ɋ܂܂�� BIND-9 �p�̃p�b�`�t�@�C����K�p���邱�Ƃɂ��A -BIND-9 �ɂ����ď]���� ASCII �����ɂ��h���C�����ɉ����A -�� ASCII �����ɂ�鑽����h���C�������������Ƃ��\�ɂȂ�܂��B -<p> -The BIND-9 patch file included in the mDNkit provides the ability to support both conventional ASCII character domain names and non-ASCII character-derived multilingual domain names. -<p> -��̓I�ɂ́A���̃p�b�`�� BIND-9 �Ɏ��̂悤�ȋ@�\��lj����܂��B -<p> -Specifically, this patch adds the following functions to BIND-9. -<ul> -<li>lightweight resolver API (lwres_gethostbyname �Ȃ�) �ŁA -���[�J���G���R�[�f�B���O�ŕ\�����ꂽ�z�X�g���𖼑O�������� -<li>Uses a lightweight resolver API (lwres_gethostbyname, etc.) to search the IP address from the host name, as expressed in local encoding. -<li>���������O�������ʂƂ��ă��[�J���G���R�[�f�B���O�ŕ\�����ꂽ -�z�X�g����Ԃ� -<li>For the result of name resolution, returns the host name expressed in the local encoding as well. -<li>dig�Ahost�Anslookup �R�}���h�����[�J���G���R�[�f�B���O�̃h���C������ -�t���A�܂��₢���킹���ʂɊ܂܂��h���C���������[�J���G���R�[�f�B���O�� -�\������ -<li>Uses dig, host, and nslookup commands to accept domain names in the local encoding and displays domain names included in the inquiry result using local encoding. -</ul> - -<p> -BIND-9 �ւ̃p�b�`�̓K�p���@�́A�p�b�`�t�@�C���̐擪�ɋL�ڂ��Ă���܂��B -�Ȃ��p�b�`�t�@�C���ɂ��ẮA -�Ή����� BIND �̃o�[�W�������悭�m�F���Ă���A�g�p���Ă��������B -<p> -Instructions for how to apply the patch file to BIND-9 is explained at the beginning of the patch file. -Before using the patch file, be sure to check the version of BIND being used. -<p> - -<hr> -<h2><a name="arch">�A�[�L�e�N�`��</a></h2> -<h2><a name="arch">Architecture</a></h2> - -<p>BIND-9 �͂���܂ł� BIND-8 �Ƃ̓��]���o�̍\�����S���قȂ��Ă��܂��B -BIND-8 �܂ł̓��]���o�̓A�v���P�[�V�����Ƀ����N����郉�C�u�����Ƃ��� -��������Ă��܂������A -BIND-9 �ł̓��]���o�̋@�\�̑啔���� -<b>lwresd</b> (lightweight resolver daemon) �Ƃ����T�[�o�Ɉڂ���A -�A�v���P�[�V�����Ƀ����N�����̂�lightweight resolver �ƌĂ�� -<b>lwresd</b> �Ƃ̒ʐM���s�����߂̃��C�u�����ƂȂ��Ă��܂��B -<p>BIND-9 has a different resolver structure than BIND-8. -Up to BIND-8, the resolver was implemented as a library linked by the application. However, with BIND-9, most of the functions of the resolver have been moved to the server called <b>lwresd</b> (lightweight resolver daemon) and only the library called lightweight resolver that is used to communicate with <b>lwresd</b> is linked by the application. - -<p>�{�p�b�`�͂��̃A�[�L�e�N�`���ɍ��킹�A������h���C�����̊e������ -���ꂼ��̃R���|�[�l���g�ɕ��U�����܂����B�ȉ��Ɋe�R���|�[�l���g�� -���������@�\�ƃR���|�[�l���g�Ԃ̃C���^�t�F�[�X�ŗp����G���R�[�f�B���O�� -�\�����}�������܂��B -<p>Matched to this architecture, the patch distributes multilingual domain name processing to the respective components. The following diagram shows the function implemented in each component and the encoding used by the interface between the components. - -<blockquote> -<img src="img/bind9_arch.jpg" alt="bind9 resolver architecture"> -</blockquote> - -<hr> -<h2><a name="named">named �C��</a></h2> -<h2><a name="named">Fixes in named</a></h2> - -<p>named �ɂ�����C���͎��̈�_�݂̂ł��B -<p>The following fixes were made in named: - -<h3><a name="named-utf8">UTF-8 �����̓���</a></h3> -<h3><a name="named-utf8">UTF-8 Character Transparency</a></h3> - -<p>BIND-9 �� named �ł̓h���C�����̏����͂قƂ��8�r�b�g�X���[�ɂȂ��Ă���A -UTF-8 ���� MSB �̃Z�b�g���ꂽ�o�C�g�����̂܂ܓ��߂��܂��B -������ named ���ŏ����Ɏg�p����Ă���h���C�����̓����\�� (<em>dns_name_t</em>) -����e�L�X�g�\���ւ̕ϊ�������8�r�b�g�X���[�ɂȂ��Ă��炸�AASCII �����ȊO -�̓o�b�N�X���b�V���ŃN�H�[�g����A<tt>\DDD</tt> �Ƃ����`���̕\���� -�ϊ�����Ă��܂��܂��B -DNS �v���g�R����ŗp������G���R�[�f�B���O�� RACE �Ȃǂ� ASCII �݊� -�G���R�[�f�B���O�ł���� ASCII �ȊO�̕������h���C�����Ɍ���邱�Ƃ͂Ȃ��̂� -���Ȃ��̂ł����AUTF-8 ���g�p����ꍇ�ɂ͖��ƂȂ�܂��B -<p>With BIND-9 named, most domain name processing is based on 8-bit through and UTF-8 bytes in which MSB is set are also passed as is. However, the conversion of domain names from an internal expression (<em>dns_name_t</em>) to the text expression used for processing in named is not 8-bit through and other than ASCII text is quoted with a backslash and converted to a <tt>\DDD</tt> format expression. -If ASCII-compatible encoding such as RACE is used for the DNS protocol, there is no problem because only ASCII characters appear in domain names; there are, however, problems when UTF-8 is used. - -<p>BIND-9 �p�b�`�́A���̏������C�����A�ϊ����悤�Ƃ��镶����UTF-8 ������ -�ꍇ�ɂ̓o�b�N�X���b�V���ɂ��N�H�[�g�����Ȃ��悤�ɂ��܂��B -���̓���� named �̐ݒ�t�@�C�� (named.conf) �Ő�ւ��\�ł���A -�ݒ�t�@�C���� options �Z�N�V������ <tt>allow-utf8</tt> �p�����[�^�� -�w�肵�܂��BDNS �v���g�R����ŗp����G���R�[�f�B���O�Ƃ��� UTF-8 �� -�g�p����ۂɂ͎��̂悤�ɋL�q���Ă��������B -<p>The BIND-9 patch corrects processing so that the backslash quote is not used when converting UTF-8 characters. -This operation can be switched using the <tt>allow-utf8</tt> parameter of the options section in the named configuration file (named.conf). -When UTF-8 is used for encoding the DNS protocol, write as follows. -<blockquote> -<pre> -options { - ... - allow-utf8 yes; - ... -}; -</pre> -</blockquote> - -<hr> -<h2><a name="lwresd">lwresd �C��</a></h2> -<h2><a name="lwresd">Fixes in lwresd</a></h2> - -<p>lwresd �ɑ��Ă͎��̂悤�ȏC���������Ă���܂��B -<p>The following fixes were made to lwresd. - -<dl> - -<dt>UTF-8 �����̓���<dd> -<dt>UTF-8 Character Transparency<dd> - -<p>����� named �ɑ���C���Ɠ����ŁA�h���C����������\������ -�e�L�X�g�\���ɕϊ�����ۂ̃o�b�N�X���b�V���ɂ��N�H�[�e�B���O�� -�s��Ȃ��悤�ɂ�����̂ł��B -<p>This is the same fix made in named wherein backslash quoting is not used for conversion of domain names from an internal expression to a text expression. - -<p>named �̏ꍇ�A����͐ݒ�t�@�C�� named.conf �̃I�v�V������ -��ւ�����悤�ɂȂ��Ă��܂����Alwresd �̏ꍇ�ɂ͎�����ւ��� -�Ȃ��Ă��܂��Blwresd ���ǂݍ��� -<a name="clientconfig.html">�N���C�A���g�ݒ�t�@�C��</a>�� -�T�[�o�G���R�[�f�B���O�G���g���ɐݒ肳��Ă���R�[�h�Z�b�g�����Q�Ƃ��A -���ꂪ ASCII �݊��G���R�[�f�B���O�łȂ��ꍇ�ɂ̓o�b�N�X���b�V���ɂ�� -�N�H�[�g�����Ȃ��悤�ɂ��܂��B -<p>With named, this setting can be changed using the option setting in the named.conf configuration file; however, it is automatically changed with Iwresd. The code set name set in the server encoding entry of the <a name="clientconfig.html"> client configuration file </a> to be loaded by lwresd is referenced and if it is not ASCII-compatible encoding, the backslash quote is not used. - -<dt>�G���R�[�f�B���O�ϊ�<dd> -<dt>Encoding Conversion<dd> - -<p>lwresd �͑�����h���C�����̃G���R�[�f�B���O�Ƃ��āA�N���C�A���g -�܂� lightweight resolver ���C�u�����Ƃ̊Ԃ̒ʐM�ɂ� UTF-8 ���A -�܂� named �Ƃ̒ʐM�ɂ� DNS �v���g�R����̃G���R�[�f�B���O�����ꂼ�� -�g�p���܂��B���������ė��҂̊Ԃ̃G���R�[�f�B���O�ϊ����s���܂��B -<p>For encoding of multilingual domain names, lwresd uses UFT-8 for communication with the client, i.e. the lightweight resolver library, and also uses the encoding used for the DNS protocol for communication with named, respectively. Therefore, encoding conversion is performed between both components. - -<p>�G���R�[�f�B���O�ϊ��ɂ� MDN ���C�u������ -<a href="library.html#res">res ���W���[��</a> ���g�p���Ă��܂��B -DNS �v���g�R����̃G���R�[�f�B���O�̎w��� -<a href="clientconfig.html">�N���C�A���g�ݒ�t�@�C��</a>�ōs���܂��B -<p>The <a href="library.html#res">res module</a> of the MDN library is used for encoding conversion. -The <a href="clientconfig.html">client configuration file</a> is used to specify the encoding used by the DNS protocol. - -</dl> -<p> - -<hr> -<h2><a name="client">�N���C�A���g�����C�u�����C��</a></h2> -<h2><a name="client">Fixes in Client Library</a></h2> - -<p>�N���C�A���g���̃��C�u�����́A -<p>The client side library was corrected as follows: -<ul> -<li>�G���R�[�f�B���O�ϊ� -<li>Encoding Conversion -<li>���K�� -<li>Normalization -</ul> -���s���悤�ɏC������Ă��܂��B�����̏����ɂ� MDN ���C�u������ -<a href="library.html#res">res ���W���[��</a> ���g�p���Ă��܂��B -�ݒ��<a href="clientconfig.html">�N���C�A���g�ݒ�t�@�C��</a>�ōs���܂��B -<p>The <a href="library.html#res">res module</a> of the MDN library is used for this processing. -The <a href="clientconfig.html">client configuration file</a> is used to set settings. - -<p>���O�����p�� API ���̓��[�J���G���R�[�f�B���O�ŕ\���ꂽ -������h���C������������悤�ɏC������Ă��܂��B -�܂����������́A���� UTF-8 �G���R�[�f�B���O�̃h���C������������ -API �̒lj����e�Ղɂł���悤�ɐv����Ă��܂��B�����ɂ��� -���̌�������܂��B -<p>The API function for name resolution was corrected to that it can handle multilingual domain names expressed in local encoding. -Also, internal implementation is designed so that it will be simpler to add APIs that can handle domain names in UTF-8 encoding in the future. An explanation of those issues will follow at a later date. - -<ul> -<li><a href="#api-func">�����ꉻ���ꂽ API ��</a> -<li><a href="#api-func">Multilingual API Functions</a> -<li><a href="#internal-func">�lj����ꂽ������</a> -<li><a href="#internal-func">Added Internal Functions</a> -</ul> - -<p> - -<h3><a name="api-func">�����ꉻ���ꂽ API ��</a></h3> -<h3><a name="api-func">Multilingual API Functions</a></h3> - -<p> -�p�b�`�ɂ���đ����ꉻ����� API ���̈ꗗ�ł��B -<p> -The list of API functions that are made multilingual by the patch is shown below. - -<ul> -<li>lwres_getaddrinfo() -<li>lwres_getnameinfo() -<li>lwres_gethostbyname() -<li>lwres_gethostbyname2() -<li>lwres_gethostbyname_r() -<li>lwres_gethostbyaddr() -<li>lwres_gethostbyaddr_r() -<li>lwres_getipnodebyname() -<li>lwres_getipnodebyaddr() -</ul> - -<p> -�����ꉻ���ꂽ API ���́A�]���� ASCII �h���C�����ɉ����A -�� ASCII �h���C�������������Ƃ��ł��܂��B�� ASCII �h���C�����Ƃ��āA -<a href="clientconfig.html">�N���C�A���g�ݒ�t�@�C��</a>�̓��e�ɉ����āA -�V���Ɉȉ��̂悤�ȃh���C��������舵�����Ƃ��ł���悤�ɂȂ�܂��B -<p> -In addition to the conventional ASCII domain names, API functions that are made multilingual can handle non-ASCII domain names. With regard to non-ASCII domain names, the following domain names can be handled, depending on which settings are set in the <a href="clientconfig.html">client configuration file</a>. - -<ul> -<li>�z�X�g.���.jp -<li>host.company.jp -<li>www.�ʂ̉��.com -<li>www.other company.com -</ul> - -<p> -�����̌^��Ԃ�l�̌^�ɕύX�͂���܂���B -�p�b�`�Ă�O�Ɠ��l�̌Ăяo�����@�ŁA�]���� ASCII �h���C�����ƁA -�� ASCII �h���C�����̗������������Ƃ��ł��܂��B -�� ASCII �h���C�����ɂ��ẮA -���[�J���G���R�[�f�B���O�̃h���C�����������Ƃ��Ď�邱�Ƃ��ł��܂��B -<p> -The type of arguments and return values are not changed. -Using the same calling method that was used prior to applying the patch allows the system to handle both conventional ASCII domain names and non-ASCII domain names. -Regarding non-ASCII domain names, domain names of local encoding can be received as arguments. - -<p> -����܂ŏ�L�� API ���ōs�Ȃ��Ă��������́A -�ȍ~�Ő�������<a href="#internal-func">���ꂼ��̓�����</a>�Ɉڍs���AAPI -���́A�h���C�����̃G���R�[�f�B���O�������̓������ɓn�����������Ă��܂��B -<p> -Processing performed by the above API functions are moved to <a href="#internal-func">respective internal functions</a> explained later and API functions pass the encoding information of domain names to these internal functions. - -<p> - -<h3><a name="internal-func">�lj����ꂽ������</a></h3> -<h3><a name="internal-func">Added internal functions</a></h3> - -<p> -�����ꉻ���ꂽ API ���Ɋ֘A���āA�ȉ��̓��������lj�����܂����B -<p> -In association with the API functions that were made multilingual, the following internal functions are added. - -<dl> -<dt><a href="#getaddrinfo">lwres_getaddrinfo_enc()</a> - <dd>lwres_getaddrinfo() �̓����� - <dd>lwres_getaddrinfo() internal function -<dt><a href="#getnameinfo">lwres_getnameinfo_enc()</a> - <dd>lwres_getnameinfo() �̓����� - <dd>lwres_getnameinfo() internal function -<dt><a href="#gethostbyname">lwres_gethostbyname_enc()</a> - <dd>lwres_gethostbyname() �̓����� - <dd>lwres_gethostbyname() internal function -<dt><a href="#gethostbyname2">lwres_gethostbyname2_enc()</a> - <dd>lwres_gethostbyname2() �̓����� - <dd>lwres_gethostbyname2() internal function -<dt><a href="#gethostbyname_r">lwres_gethostbyname_r_enc()</a> - <dd>lwres_gethostbyname_r() �̓����� - <dd>lwres_gethostbyname_r() internal function -<dt><a href="#gethostbyaddr">lwres_gethostbyaddr_enc()</a> - <dd>lwres_gethostbyaddr() �̓����� - <dd>lwres_gethostbyaddr() internal function -<dt><a href="#gethostbyaddr_r">lwres_gethostbyaddr_r_enc()</a> - <dd>lwres_gethostbyaddr_r() �̓����� - <dd>lwres_gethostbyaddr_r() internal function -<dt><a href="#getipnodebyname">lwres_getipnodebyname_enc()</a> - <dd>lwres_getipnodebyname() �̓����� - <dd>lwres_getipnodebyname() internal function -<dt><a href="#getipnodebyaddr">lwres_getipnodebyaddr_enc()</a> - <dd>lwres_getipnodebyaddr() �̓����� - <dd>lwres_getipnodebyaddr() internal function -</dl> - -<p> -�lj����ꂽ�������ɂ��Ă̎d�l�́A�ȉ��̒ʂ�ł��B -<p> -The specifications of the added internal functions are as follows. - -<dl> - -<dt><a name="getaddrinfo">lwres_getaddrinfo_enc</a> -<dd> -<pre> -int -lwres_getaddrinfo_enc(const char *, const char *, const struct addrinfo *, - struct addrinfo **, int) -</pre> -<p> -lwres ���C�u�����̊� lwres_getaddrinfo() �ɁA -���[�J���G���R�[�f�B���O���ۂ��̔���t���O�̃G���g����lj��������̂ł��B -lwres_getaddrinfo() �Ƃ̈Ⴂ�́Astatic ���ł��� set_order() -���ɃG���R�[�h�^�C�v�̔���t���O��n���Ă���_�݂̂ł��B -<p> -With this function, the entry of a flag used to determine whether or not the encode type is local is added to the lwres library lwres_getaddrinfo() function. -The only difference between this function and the lwres_getaddrinfo() function is that the encode type judgment flag is passed to the set_order() function, which is a static function. -<p> -���̍Ō�̈������G���R�[�h�^�C�v�̔���t���O�ŁA -���[�J���G���R�[�f�B���O�̂Ƃ��ɂ�<tt>LWRES_ENCODING_LOCAL</tt>�A -UTF-8 �G���R�[�f�B���O�̂Ƃ��ɂ�<tt>LWRES_ENCODING_UCS</tt>���w��\�ł��B -lwres_getaddrinfo() ������ lwres_getaddrinfo_enc() �����Ăяo���Ƃ��́A -�G���R�[�h�^�C�v�̔���t���O��<tt>LWRES_ENCODING_LOCAL</tt>���w�肵�Ă��܂��B -<p> -The last argument of the function is the encode type judgment flag. <tt>LWRES_ENCODING_LOCAL</tt> can be specified for local encoding and <tt>LWRES_ENCODING_UCS</tt> can be specified for UTF-8 encoding. -<tt>LWRES_ENCODING_LOCAL</tt> is specified for the encode type judgment flag in order to call the lwres_getaddrinfo_enc() function from the lwres_getaddrinfo() function. -<p> -�Ԃ����l�� -<tt>EAI_NONAME</tt>�A<tt>EAI_BADFLAGS</tt>�A<tt>EAI_SYSTEM</tt>�A -<tt>EAI_FAMILY</tt>�A<tt>EAI_SOCKTYPE</tt>�A<tt>EAI_SERVICE</tt>�A -<tt>EAI_MEMORY</tt>�A<tt>0</tt> -�̂����ꂩ�ł��B -<p> -One of the following values is returned. -<tt>EAI_NONAME</tt>, <tt>EAI_BADFLAGS</tt>, <tt>EAI_SYSTEM</tt>, -<tt>EAI_FAMILY</tt>, <tt>EAI_SOCKTYPE</tt>, <tt>EAI_SERVICE</tt>, -<tt>EAI_MEMORY</tt>, <tt>0</tt> -<p> - -<dt><a name="getnameinfo">lwres_getnameinfo_enc</a> -<dd> -<pre> -int -lwres_getnameinfo_enc(const struct sockaddr *, size_t, char *, size_t, char *, - size_t, int, int) -</pre> -<p> -lwres ���C�u�����̊� lwres_getnameinfo() �ɁA -���[�J���G���R�[�f�B���O���ۂ��̔���t���O�̃G���g����lj��������̂ł��B -lwres_getnameinfo() �Ƃ̈Ⴂ�́Alwres_getnamebyaddr() ���̌Ăяo������ -lwres_getnamebyaddr_enc() ���ɕύX���Ă���_�݂̂ł��B -<p> -With this function, the entry of a flag used to determine whether or not the encode type is local is added to the lwres library lwres_getnameinfo() function. -The only difference between this function and the lwres_getnameinfo() function is that the call portion of the lwres_getnamebyaddr() function is changed to the lwres_getnamebyaddr_enc() function. -<p> -���̍Ō�̈������G���R�[�h�^�C�v�̔���t���O�ŁA -���[�J���G���R�[�f�B���O�̂Ƃ��ɂ�<tt>LWRES_ENCODING_LOCAL</tt>�A -UTF-8 �G���R�[�f�B���O�̂Ƃ��ɂ�<tt>LWRES_ENCODING_UCS</tt>���w��\�ł��B -lwres_getnameinfo() ������ lwres_getnameinfo_enc() �����Ăяo���Ƃ��́A -�G���R�[�h�^�C�v�̔���t���O��<tt>LWRES_ENCODING_LOCAL</tt>���w�肵�Ă��܂��B -<p> -The last argument of the function is the encode type judgment flag. <tt>LWRES_ENCODING_LOCAL</tt> can be specified for local encoding and <tt>LWRES_ENCODING_UCS</tt> can be specified for UTF-8 encoding. -<tt>LWRES_ENCODING_LOCAL</tt> is specified for the encode type judgment flag in order to call the lwres_getnameinfo_enc() function from the lwres_getnameinfo() function. -<p> -�Ԃ����l�� -<tt>ENI_NOSOCKET</tt>�A<tt>ENI_SALEN</tt>�A<tt>ENI_FAMILY</tt>�A -<tt>ENI_MEMORY</tt>�A<tt>ENI_SYSTEM</tt>�A<tt>ENI_NOHOSTNAME</tt>�A -<tt>SUCCESS</tt> -�̂����ꂩ�ł��B -<p> -One of the following values is returned. -<tt>ENI_NOSOCKET</tt>, <tt>ENI_SALEN</tt>, <tt>ENI_FAMILY</tt>, -<tt>ENI_MEMORY</tt>, <tt>ENI_SYSTEM</tt>, <tt>ENI_NOHOSTNAME</tt>, -<tt>SUCCESS</tt> -<p> - -<dt><a name="gethostbyname">lwres_gethostbyname_enc</a> -<dd> -<pre> -struct hostent * -lwres_gethostbyname_enc(const char *, int) -</pre> -<p> -lwres ���C�u�����̊� lwres_gethostbyname() �ɁA -���[�J���G���R�[�f�B���O���ۂ��̔���t���O�̃G���g����lj��������̂ł��B -lwres_gethostbyname() �Ƃ̈Ⴂ�́Alwres_getipnodebyname() -���̌Ăяo������ lwres_getipnodebyname_enc() ���ɕύX���Ă���_�݂̂ł��B -<p> -With this function, the entry of a flag used to determine whether or not the encode type is local is added to the lwres library lwres_gethostbyname() function. -The only difference between this function and the lwres_gethostbyname() function is that the call portion of the lwres_getipnodebyname() function is changed to the lwres_getipnodebyname_enc() function. -<p> -���̍Ō�̈������G���R�[�h�^�C�v�̔���t���O�ŁA -���[�J���G���R�[�f�B���O�̂Ƃ��ɂ�<tt>LWRES_ENCODING_LOCAL</tt>�A -UTF-8 �G���R�[�f�B���O�̂Ƃ��ɂ�<tt>LWRES_ENCODING_UCS</tt>���w��\�ł��B -lwres_gethostbyname() ������ lwres_gethostbyname_enc() �����Ăяo���Ƃ��́A -�G���R�[�h�^�C�v�̔���t���O��<tt>LWRES_ENCODING_LOCAL</tt>���w�肵�Ă��܂��B -<p> -The last argument of the function is the encode type judgment flag. <tt>LWRES_ENCODING_LOCAL</tt> can be specified for local encoding and <tt>LWRES_ENCODING_UCS</tt> can be specified for UTF-8 encoding. -<tt>LWRES_ENCODING_LOCAL</tt> is specified for the encode type judgment flag in order to call the lwres_gethostbyname_enc() function from the lwres_gethostbyname() function. -<p> -lwres_getipnodebyname_enc() ����Ԃ��ė��� hostent -�\���̂ւ̃|�C���^��Ԃ��܂��B -<p> -A pointer is returned that points to the hostent structure returned from lwres_getipnodebyname_enc(). -<p> - -<dt><a name="gethostbyname2">lwres_gethostbyname2_enc</a> -<dd> -<pre> -struct hostent * -lwres_gethostbyname2_enc(const char *, int, int) -</pre> -<p> -lwres ���C�u�����̊� lwres_gethostbyname2() �ɁA -���[�J���G���R�[�f�B���O���ۂ��̔���t���O�̃G���g����lj��������̂ł��B -lwres_gethostbyname2() �Ƃ̈Ⴂ�́Alwres_getipnodebyname() -���̌Ăяo������ lwres_getipnodebyname_enc() ���ɕύX���Ă���_�݂̂ł��B -<p> -With this function, the entry of a flag used to determine whether or not the encode type is local is added to the lwres library lwres_gethostbyname2() function.The only difference between this function and the lwres_gethostbyname2() function is that the call portion of the lwres_getipnodebyname() function is changed to the lwres_getipnodebyname_enc() function. -<p> -���̍Ō�̈������G���R�[�h�^�C�v�̔���t���O�ŁA -���[�J���G���R�[�f�B���O�̂Ƃ��ɂ�<tt>LWRES_ENCODING_LOCAL</tt>�A -UTF-8 �G���R�[�f�B���O�̂Ƃ��ɂ�<tt>LWRES_ENCODING_UCS</tt>���w��\�ł��B -lwres_gethostbyname2() ������ -lwres_gethostbyname2_enc() �����Ăяo���Ƃ��́A -�G���R�[�h�^�C�v�̔���t���O��<tt>LWRES_ENCODING_LOCAL</tt>���w�肵�Ă��܂��B -<p> -The last argument of the function is the encode type judgment flag. <tt>LWRES_ENCODING_LOCAL</tt> can be specified for local encoding and <tt>LWRES_ENCODING_UCS</tt> can be specified for UTF-8 encoding. -<tt>LWRES_ENCODING_LOCAL</tt> is specified for the encode type judgment flag in order to call the lwres_gethostbyname2_enc() function from the lwres_gethostbyname2() function. -<p> -lwres_getipnodebyname_enc() ����Ԃ��ė��� hostent -�\���̂ւ̃|�C���^��Ԃ��܂��B -<p> -A pointer is returned that points to the hostent structure returned from lwres_getipnodebyname_enc(). -<p> - -<dt><a name="gethostbyname_r">lwres_gethostbyname_r_enc</a> -<dd> -<pre> -struct hostent * -lwres_gethostbyname_r_enc(const char *, struct hostent *, char *, - int, int *, int) -</pre> -<p> -lwres ���C�u�����̊� lwres_gethostbyname_r() �ɁA -���[�J���G���R�[�f�B���O���ۂ��̔���t���O�̃G���g����lj��������̂ł��B -lwres_gethostbyname_r() �Ƃ̈Ⴂ�́Alwres_getipnodebyname() -���̌Ăяo������ lwres_getipnodebyname_enc() ���ɕύX���Ă���_�݂̂ł��B -<p> -With this function, the entry of a flag used to determine whether or not the encode type is local is added to the lwres library lwres_gethostbyname_r() function. -The only difference between this function and the lwres_gethostbyname_r() function is that the call portion of the lwres_getipnodebyname() function is changed to the lwres_getipnodebyname_enc() function. -<p> -���̍Ō�̈������G���R�[�h�^�C�v�̔���t���O�ŁA -���[�J���G���R�[�f�B���O�̂Ƃ��ɂ�<tt>LWRES_ENCODING_LOCAL</tt>�A -UTF-8 �G���R�[�f�B���O�̂Ƃ��ɂ�<tt>LWRES_ENCODING_UCS</tt>���w��\�ł��B -lwres_gethostbyname_r() ������ -lwres_gethostbyname_r_enc() �����Ăяo���Ƃ��́A -�G���R�[�h�^�C�v�̔���t���O��<tt>LWRES_ENCODING_LOCAL</tt>���w�肵�Ă��܂��B -<p> -The last argument of the function is the encode type judgment flag. <tt>LWRES_ENCODING_LOCAL</tt> can be specified for local encoding and <tt>LWRES_ENCODING_UCS</tt> can be specified for UTF-8 encoding. -<tt>LWRES_ENCODING_LOCAL</tt> is specifed for the encode type judgment flag in order to call the lwres_gethostbyname_r_enc() function from lwres_gethostbyname_r() function. -<p> -�G���[�̂Ƃ��� NULL�A����̂Ƃ��͒l���i�[���ꂽ hostent -�\���̂ւ̃|�C���^��Ԃ��܂��B -<p> -NULL is returned when there is an error and a pointer to the hostent structure that contains the value is returned when the result of processing is normal. -<p> - -<dt><a name="gethostbyaddr">lwres_gethostbyaddr_enc</a> -<dd> -<pre> -struct hostent * -lwres_gethostbyaddr_enc(const char *, int, int, int) -</pre> -<p> -lwres ���C�u�����̊� lwres_gethostbyaddr() �ɁA -���[�J���G���R�[�f�B���O���ۂ��̔���t���O�̃G���g����lj��������̂ł��B -lwres_gethostbyaddr() �Ƃ̈Ⴂ�́Alwres_getipnodebyaddr() -���̌Ăяo������ lwres_getipnodebyaddr_enc() ���ɕύX���Ă���_�݂̂ł��B -<p> -With this function, the entry of a flag used to determine whether or not the encode type is local is added to the lwres library lwres_gethostbyaddr() function. -The only difference between this function and the lwres_gethostbyaddr() function is that the call portion of the lwres_getipnodebyaddr() function is changed to the lwres_getipnodebyaddr_enc() function. -<p> -���̍Ō�̈������G���R�[�h�^�C�v�̔���t���O�ŁA -���[�J���G���R�[�f�B���O�̂Ƃ��ɂ�<tt>LWRES_ENCODING_LOCAL</tt>�A -UTF-8 �G���R�[�f�B���O�̂Ƃ��ɂ�<tt>LWRES_ENCODING_UCS</tt>���w��\�ł��B -lwres_gethostbyaddr() ������ lwres_gethostbyaddr_enc() �����Ăяo���Ƃ��́A -�G���R�[�h�^�C�v�̔���t���O��<tt>LWRES_ENCODING_LOCAL</tt>���w�肵�Ă��܂��B -<p> -The last argument of the function is the encode type judgment flag. -<tt>LWRES_ENCODING_LOCAL</tt> can be specified for local encoding and <tt>LWRES_ENCODING_UCS</tt> can be specified for UTF-8 encoding. -<tt>LWRES_ENCODING_LOCAL</tt> is specifed for the encode type judgment flag in order to call the lwres_gethostbyaddr_enc() function from tge lwres_gethostbyaddr() function. -<p> -lwres_getipnodebyaddr_enc() ����Ԃ��ė��� hostent -�\���̂ւ̃|�C���^��Ԃ��܂��B -<p> -The pointer is returned that points to the hostent structure returned from lwres_getipnodebyaddr_enc(). -<p> - -<dt><a name="gethostbyaddr_r">lwres_gethostbyaddr_r_enc</a> -<dd> -<pre> -struct hostent * -lwres_gethostbyaddr_r_enc(const char *, int, int, struct hostent *, - char *, int, int *, int) -</pre> -<p> -lwres ���C�u�����̊� lwres_gethostbyaddr_r() �ɁA -���[�J���G���R�[�f�B���O���ۂ��̔���t���O�̃G���g����lj��������̂ł��B -lwres_gethostbyaddr_r() �Ƃ̈Ⴂ�́Alwres_getipnodebyaddr() -���̌Ăяo������ lwres_getipnodebyaddr_enc() ���ɕύX���Ă���_�݂̂ł��B -<p> -With this function, the entry of a flag used to determine whether or not the encode type is local is added to the lwres library lwres_gethostbyaddr_r() function. -The only difference between this function and the lwres_gethostbyaddr_r() funciton is that the call portion of the lwres_getipnodebyaddr() function is changed to the lwres_getipnodebyaddr_enc() function. -<p> -���̍Ō�̈������G���R�[�h�^�C�v�̔���t���O�ŁA -���[�J���G���R�[�f�B���O�̂Ƃ��ɂ�<tt>LWRES_ENCODING_LOCAL</tt>�A -UTF-8 �G���R�[�f�B���O�̂Ƃ��ɂ�<tt>LWRES_ENCODING_UCS</tt>���w��\�ł��B -lwres_gethostbyaddr_r() ������ -lwres_gethostbyaddr_r_enc() �����Ăяo���Ƃ��́A -�G���R�[�h�^�C�v�̔���t���O��<tt>LWRES_ENCODING_LOCAL</tt>���w�肵�Ă��܂��B -<p> -The last argument of the function is the encode type judgment flag. -<tt>LWRES_ENCODING_LOCAL</tt> can be specified for local encoding and <tt>LWRES_ENCODING_UCS</tt> can be specified for UTF-8 encoding. -<tt>LWRES_ENCODING_LOCAL</tt> is specified to the encode type judgment flag in order to call the lwres_gethostbyaddr_r_enc() function from the lwres_gethostbyaddr_r() function. -<p> -�G���[�̂Ƃ��� NULL�A����̂Ƃ��͒l���i�[���ꂽ hostent -�\���̂ւ̃|�C���^��Ԃ��܂��B -<p> -NULL is returned when there is an error and pointer to hostent structure that contains the value is returned when the result of processing is normal. -<p> - -<dt><a name="getipnodebyname">lwres_getipnodebyname_enc</a> -<dd> -<pre> -struct hostent * -lwres_getipnodebyname_enc(const char *, int, int, int *, int) -</pre> -<p> -lwres ���C�u�����̊� lwres_getipnodebyname() �ɁA -���[�J���G���R�[�f�B���O���ۂ��̔���t���O�̃G���g����lj��������̂ł��B -lwres_getipnodebyname() �Ƃ̈Ⴂ�́Alwres_getaddrsbyname() -���̌Ăяo������ lwres_getaddrsbyname_enc() ���ɕύX���Ă���_�݂̂ł��B -<p> -With this function, the entry of a flag used to determine whether or not the encode type is local is added to the lwres library lwres_getipnodebyname() function. -The only difference between this function and the lwres_getipnodebyname() function is that the call portion of the lwres_getaddrsbyname() function is changed to the lwres_getaddrsbyname_enc() function. -<p> -���̍Ō�̈������G���R�[�h�^�C�v�̔���t���O�ŁA -���[�J���G���R�[�f�B���O�̂Ƃ��ɂ�<tt>LWRES_ENCODING_LOCAL</tt>�A -UTF-8 �G���R�[�f�B���O�̂Ƃ��ɂ�<tt>LWRES_ENCODING_UCS</tt>���w��\�ł��B -lwres_getipnodebyname() ������ -lwres_getipnodebyname_enc() �����Ăяo���Ƃ��́A -�G���R�[�h�^�C�v�̔���t���O��<tt>LWRES_ENCODING_LOCAL</tt>���w�肵�Ă��܂��B -<p> -The last argument of the function is the encode type judgment flag. -<tt>LWRES_ENCODING_LOCAL</tt> can be specified for local encoding and <tt>LWRES_ENCODING_UCS</tt> can be specified for UTF-8 encoding. -<tt>LWRES_ENCODING_LOCAL</tt> is specified for the encode type judgment flag in order to call the lwres_getipnodebyname_enc() function from the lwres_getipnodebyname() function. -<p> -�G���[�̂Ƃ��� NULL�A����̂Ƃ��͒l���i�[���ꂽ hostent -�\���̂ւ̃|�C���^��Ԃ��܂��B -<p> -NULL is returned when there is an error and a pointer to the hostent structure that contains the value is returned when the result of processing is normal. -<p> - -<dt><a name="getipnodebyaddr">lwres_getipnodebyaddr_enc</a> -<dd> -<pre> -struct hostent * -lwres_getipnodebyaddr_enc(const void *, size_t, int, int *, int) -</pre> -<p> -lwres ���C�u�����̊� lwres_getipnodebyaddr() �ɁA -���[�J���G���R�[�f�B���O���ۂ��̔���t���O�̃G���g����lj��������̂ł��B -lwres_getipnodebyaddr() �Ƃ̈Ⴂ�́Alwres_getnamebyaddr() -���̌Ăяo������ lwres_getnamebyaddr_enc() ���ɕύX���Ă���_�݂̂ł��B -<p> -With this function, the entry of a flag used to determine whether or not the encode type is local is added to the lwres library lwres_getipnodebyaddr() function. -The only difference between this function and the lwres_getipnodebyaddr() function is that the call portion of the lwres_getnamebyaddr() function is changed to the lwres_getnamebyaddr_enc() function. -<p> -���̍Ō�̈������G���R�[�h�^�C�v�̔���t���O�ŁA -���[�J���G���R�[�f�B���O�̂Ƃ��ɂ�<tt>LWRES_ENCODING_LOCAL</tt>�A -UTF-8 �G���R�[�f�B���O�̂Ƃ��ɂ�<tt>LWRES_ENCODING_UCS</tt>���w��\�ł��B -lwres_getipnodebyaddr() ������ -lwres_getipnodebyaddr_enc() �����Ăяo���Ƃ��́A -�G���R�[�h�^�C�v�̔���t���O��<tt>LWRES_ENCODING_LOCAL</tt>���w�肵�Ă��܂��B -<p> -The last argument of the function is the encode type judgment flag. -<tt>LWRES_ENCODING_LOCAL</tt> can be specified for local encoding and <tt>LWRES_ENCODING_UCS</tt> can be specified for UTF-8 encodong. -<tt>LWRES_ENCODING_LOCAL</tt> is specified for the encode judgment flag in order to call the lwres_getipnodebyaddr_enc() function from the lwres_getipnodebyaddr() function. -<p> -�G���[�̂Ƃ��� NULL�A����̂Ƃ��͒l���i�[���ꂽ hostent -�\���̂ւ̃|�C���^��Ԃ��܂��B -<p> -NULL is returned when there is an error and a pointer to the hostent structure that contains the value is returned when the result of processing is normal. - -</dl> - -<hr> -<h2><a name="dig">dig/host/nslookup �C��</a></h2> -<h2><a name="dig">Fixes in dig/host/nslookup </a></h2> - -<p>BIND-9 �ɂ� DNS �̖₢���킹�c�[���Ƃ��� dig�Ahost�Anslookup �Ƃ��� -�R�}���h���t�����܂��BmDNkit �� BIND-9 �p�b�`�ɂ��A�����͂������ -������h���C������������悤�ɂȂ�܂��B��̓I�ɂ͈ȉ��̋@�\�� -�t������܂��B -<p>The DNS inquiry commands called dig, host, and nslookup are attached to BIND-9. Because of the BIND-9 patch in mDNkit, these commands can handle multilingual domain names. Specifically, the following functions are added. -<ul> -<li>�G���R�[�f�B���O�ϊ�<br> -�R�}���h�����A���邢�͕W�����͂�����͂��ꂽ�A���[�J���G���R�[�f�B���O�� -�\�����ꂽ�h���C�������ADNS �v���g�R����ŗp������G���R�[�f�B���O�ɕϊ����A -DNS �̖₢���킹�s���܂��B -<p>�܂� DNS �̕ԓ��Ɋ܂܂�鑽����h���C���������[�J���G���R�[�f�B���O�� -�ϊ����A�\�����܂��B -<li>Encoding conversion<br> -Converts domain names expressed in local encoding entered using command arguments or through standard input to the encoding used by the DNS protocol and issues a DNS inquiry. -<p>Also converts multilingual domain names included in the DNS response to local encoding and displays the result. -<p> -<li>���K��<br> -DNS �̖₢���킹�ŁA���[�J���G���R�[�f�B���O�ŕ\�����ꂽ�h���C������ -DNS �v���g�R����ŗp������G���R�[�f�B���O�ɕϊ�����ہA�h���C������ -���K�����s���܂��B -<li>Normalization<br> -When converting domain names expressed in local encoding to the encoding used in DNS protocol as a result of a DNS inquiry, the domain names are normalized. -</ul> - -�����̏����ɂ� MDN ���C�u������ -<a href="library.html#res">res ���W���[��</a> ���g�p���Ă��܂��B -�ݒ��<a href="clientconfig.html">�N���C�A���g�ݒ�t�@�C��</a>�ōs���܂��B -<p> -The <a href="library.html#res">res module</a> of the MDN library is used for that processing. -The <a href="clientconfig.html">client configuration file</a> is used to make the setting. - -</body> -</html> |