1 .\" Copyright (c) 1997 Martin Schulze (joey@infodrom.north.de)
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
8 .\" The GNU General Public License's references to "object code"
9 .\" and "executables" are to be interpreted as the output of any
10 .\" document formatting or typesetting system, including
11 .\" intermediate and printed output.
13 .\" This manual is distributed in the hope that it will be useful,
14 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 .\" GNU General Public License for more details.
18 .\" You should have received a copy of the GNU General Public
19 .\" License along with this manual; if not, write to the Free
20 .\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
23 .\" Much of the text is copied from the manpage of resolv+(8).
25 .\" 2003-08-23 Martin Schulze <joey@infodrom.org> Updated according to glibc 2.3.2
27 .\" Japanese Version Copyright (c) 2000-2003 Yuichi SATO
28 .\" all rights reserved.
29 .\" Translated Sun Sep 24 06:18:14 JST 2000
30 .\" by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
31 .\" Updated & Modified Sun Sep 7 17:51:03 JST 2003
32 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
38 .TH HOST.CONF 5 2003-08-23 "Linux" "Linux System Administration"
41 .\"O host.conf \- resolver configuration file
42 host.conf \- レゾルバ設定ファイル
46 .\"O .I /etc/host.conf
47 .\"O contains configuration information specific to the resolver library.
48 .\"O It should contain one configuration keyword per line, followed by
49 .\"O appropriate configuration information.
50 .\"O The keywords recognized are
51 .\"O .IR order ", " trim ", " multi ", " nospoof ", " spoof ", and " reorder .
52 .\"O These keywords are described below.
55 には、レゾルバライブラリの詳細な設定情報が含まれている。
56 このファイルには、1 行毎に 1 つの設定キーワードと
57 それに続く適切な設定情報がなければならない。
59 .IR order ", " trim ", " multi ", " nospoof ", " spoof ", " reorder
64 .\"O This keyword specifies how host lookups are to be performed.
65 .\"O It should be followed by one or more lookup methods, separated by commas.
66 .\"O Valid methods are
67 .\"O .IR bind ", " hosts ", and " nis .
68 このキーワードは、ホストのルックアップ方式を指定する。
70 1 つ以上のルックアップ方式が続かなくてはならない。
72 .IR bind ", " hosts ", " nis
76 .\"O This keyword may be listed more than once.
77 .\"O Each time it should be
78 .\"O followed by a list of domains, separated by colons (\(aq:\(aq), semicolons
79 .\"O (\(aq;\(aq) or commas (\(aq,\(aq), with the leading dot.
81 .\"O resolv+ library will automatically trim the given domain name from the
82 .\"O end of any hostname resolved via DNS.
83 .\"O This is intended for use with
84 .\"O local hosts and domains.
85 .\"O (Related note: trim will not affect hostnames
86 .\"O gathered via NIS or the hosts file.
87 .\"O Care should be taken to
88 .\"O ensure that the first hostname for each entry in the hosts file is
89 .\"O fully qualified or unqualified, as appropriate for the local
91 このキーワードは、2 回以上リストすることができる。
93 ドットではじまる 1 つ以上のドメイン名のリストを続けなければならない。
94 ドメイン名はコロン (\(aq:\(aq)、セミコロン (\(aq;\(aq)、コンマ (\(aq,\(aq)
96 このキーワードが設定されると、resolv+ ライブラリは DNS でレゾルブされた
97 すべてのホスト名の後ろから与えられたドメイン名を自動的に取り去る。
98 このキーワードはローカルなホストとドメインで使用することを意図している。
99 (関連した注意 : NIS または hosts ファイルで集められたホスト名に
101 hosts ファイルの各エントリの最初のホスト名を、
102 完全なドメイン名付きのものにするかしないかは、
103 ホストごとのインストールポリシーにあわせて
104 適切に選択する必要がある。注意すること。)
107 .\"O Valid values are
108 .\"O .IR on " and " off .
111 .\"O the resolv+ library will return all valid addresses for a host that
115 .\"O instead of only the first.
118 .\"O by default, as it may cause a substantial performance loss at sites
119 .\"O with large hosts files.
124 に設定された場合、最初のエントリのみを例外として、
127 ファイルに現れるホストに対して全ての有効なアドレスを返そうとする。
128 大きな hosts ファイルを持つサイトでは、
135 .\"O Valid values are
136 .\"O .IR on " and " off .
139 .\"O the resolv+ library will attempt to prevent hostname spoofing to
140 .\"O enhance the security of
141 .\"O .BR rlogin " and " rsh .
142 .\"O It works as follows: after performing a host address lookup, resolv+
143 .\"O will perform a hostname lookup for that address.
144 .\"O If the two hostnames
145 .\"O do not match, the query will fail.
150 に設定された場合、resolv+ ライブラリは
152 のセキュリティを向上させるためホスト名の偽装を防止しようとする。
153 これは、「ホストアドレスのルックアップを行った後、
154 resolv+ はそのアドレスに対してホスト名のルックアップを行い、
155 もし 2 つのホスト名が一致しなかった場合は、クエリーは失敗する。」
157 .\"O The default value is
164 .\"O Valid values are
165 .\"O .IR on " and " off .
169 .\"O If this option is set to
173 .\"O option is also set, resolv+ will log a warning of the error via the
174 .\"O syslog facility.
175 .\"O The default value is
181 オプションも (on に) 設定されている場合、
182 resolv+ は syslog 機能を通じてエラーに関する警告のログをとる。
188 .\"O Valid values are
189 .\"O .IR off ", " nowarn " and " warn .
191 .IR off ", " nowarn ", " warn
193 .\"O If this option is set to
195 .\"O spoofed addresses are permitted and no warnings will be emitted
196 .\"O via the syslog facility.
199 に設定すると、偽装されたアドレスを許可して、
200 syslog 機能を通じた警告を発しない。
201 .\"O If this option is set to
203 .\"O resolv+ will attempt to prevent hostname spoofing to
204 .\"O enhance the security and log a warning of the error via the syslog
208 に設定すると、resolv+ はセキュリティを高めるためにホスト名の偽装を防止し、
209 syslog 機能を通じてエラーに関する警告のログをとる。
210 .\"O If this option is set to
212 .\"O the resolv+ library will attempt to prevent hostname spoofing to
213 .\"O enhance the security but not emit warnings via the syslog facility.
216 に設定すると、resolv+ はセキュリティを高めるためにホスト名の偽装を防止するが、
217 syslog 機能を通じた警告は発しない。
218 .\"O Setting this option to anything else is equal to setting it to
225 .\"O Valid values are
226 .\"O .IR on " and " off .
229 .\"O resolv+ will attempt to reorder host addresses so that local addresses
230 .\"O (i.e., on the same subnet) are listed first when a
231 .\"O .BR gethostbyname (3)
233 .\"O Reordering is done for all lookup methods.
243 が実行されるとき、resolv+ ライブラリは、ローカルな
244 (つまり、同じサブネットにある) アドレスが最初にリストされるように
246 すべてのルックアップ方式に対して並べ変えが行われる。
252 .\"O There are six environment variables that can be used to allow users to
253 .\"O override the behavior which is configured in
254 .\"O .IR /etc/host.conf .
256 で設定されている動作を、ユーザが上書きできる 6 つの環境変数がある。
259 .\"O If set this variable points to a file that should be read instead of
260 .\"O .IR /etc/host.conf .
272 .B RESOLV_SPOOF_CHECK
274 .\"O .IR nospoof ", " spoofalert " and " spoof
275 .\"O commands in the same way as the
277 .\"O command is parsed.
278 .\"O Valid values are
279 .\"O .IR off ", " nowarn " and " warn .
282 .IR nospoof ", " spoofalert ", " spoof
285 .IR off ", " nowarn ", " warn
302 .B RESOLV_ADD_TRIM_DOMAINS
303 .\"O A list of domains, separated by colons (\(aq:\(aq), semicolons (\(aq;\(aq) or
304 .\"O commas (\(aq,\(aq), with the leading dot, which will be added to the list of
305 .\"O domains that should be trimmed.
306 コロン (\(aq:\(aq)、セミコロン (\(aq;\(aq)、コンマ (\(aq,\(aq) で区切った
307 ドット (\(aq.\(aq) で始まるドメイン名のリスト。
308 ホスト名から取り去るドメイン名のリストに追加する。
310 .B RESOLV_OVERRIDE_TRIM_DOMAINS
311 .\"O A list of domains, separated by colons (\(aq:\(aq), semicolons (\(aq;\(aq) or
312 .\"O commas (\(aq,\(aq), with the leading dot, which will replace the list of
313 .\"O domains that should be trimmed.
317 コロン (\(aq:\(aq)、セミコロン (\(aq;\(aq)、コンマ (\(aq,\(aq) で区切った
318 ドット (\(aq.\(aq) で始まるドメイン名のリスト。
319 ホスト名から取り去るドメイン名のリストを上書きする。
326 .\"O Resolver configuration file
330 .\"O Resolver configuration file
334 .\"O Local hosts database
338 .\"O The following differences exist compared to the original implementation.
339 元々の実装に比べて以下のような違いがある。
342 .\"O and a new environment variable
343 .\"O .B RESOLV_SPOOF_CHECK
344 .\"O can take arguments like
345 .\"O .IR off ", " nowarn " and " warn .
349 .B RESOLV_SPOOF_CHECK
351 .IR off ", " nowarn ", " warn
353 .\"O Line comments can appear anywhere and not only at the beginning of a line.
354 コメントは行頭だけではなく、どこに書いてもよい。
357 .BR gethostbyname (3),