OSDN Git Service

82244209d21dae6228bc43ded1f2cb5a831d35bb
[linuxjm/LDP_man-pages.git] / draft / man5 / resolv.conf.5
1 .\" Copyright (c) 1986 The Regents of the University of California.
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms are permitted
5 .\" provided that the above copyright notice and this paragraph are
6 .\" duplicated in all such forms and that any documentation,
7 .\" advertising materials, and other materials related to such
8 .\" distribution and use acknowledge that the software was developed
9 .\" by the University of California, Berkeley.  The name of the
10 .\" University may not be used to endorse or promote products derived
11 .\" from this software without specific prior written permission.
12 .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13 .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15 .\"
16 .\"     @(#)resolver.5  5.9 (Berkeley) 12/14/89
17 .\"     $Id$
18 .\"
19 .\" Added ndots remark by Bernhard R. Link - debian bug #182886
20 .\"
21 .\" Japanese Version Copyright (c) 2000, 2005 Yuichi SATO
22 .\"         all rights reserved.
23 .\" Translated 2000-09-15, Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
24 .\" Updated & Modified 2005-01-22, Yuichi SATO <ysato444@yahoo.co.jp>
25 .\" Updated 2010-04-18, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.24
26 .\"
27 .\"WORD:        resolver        レゾルバ
28 .\"WORD:        query           問い合わせ
29 .\"
30 .TH RESOLV.CONF 5 2009-03-01 "" "Linux Programmer's Manual"
31 .UC 4
32 .\"O .SH NAME
33 .SH 名前
34 .\"O resolv.conf \- resolver configuration file
35 resolv.conf \- レゾルバ設定ファイル
36 .\"O .SH SYNOPSIS
37 .SH 書式
38 .B /etc/resolv.conf
39 .\"O .SH DESCRIPTION
40 .SH 説明
41 .\"O The
42 .\"O .I resolver
43 .\"O is a set of routines in the C library
44 .\"O that provide access to the Internet Domain Name System (DNS).
45 .\"O The resolver configuration file contains information that is read
46 .\"O by the resolver routines the first time they are invoked by a process.
47 .\"O The file is designed to be human readable and contains a list of
48 .\"O keywords with values that provide various types of resolver information.
49 .I resolver
50 は、インターネットのドメインネームシステム (DNS) へのアクセスを提供する
51 C ライブラリのルーチン群である。
52 レゾルバ設定ファイルには、レゾルバルーチンがプロセスによって最初に
53 起動されたときに読み込まれる情報が格納されている。
54 このファイルは人間に可読なように設計されている。
55 キーワードと値のリストが含まれ、いろいろなタイプのレゾルバ情報を提供する。
56 .LP
57 .\"O On a normally configured system this file should not be necessary.
58 .\"O The only name server to be queried will be on the local machine;
59 .\"O the domain name is determined from the hostname
60 .\"O and the domain search path is constructed from the domain name.
61 普通に設定されたシステムでは、このファイルは必要ない。
62 問い合わせをされる唯一のネームサーバはローカルマシン上にある。
63 ドメイン名はホスト名から決定され、
64 ドメインの検索パスはドメイン名から作成される。
65 .LP
66 .\"O The different configuration options are:
67 この状態を変更するための設定オプションには、以下のようなものがある。
68 .TP
69 .\"O \fBnameserver\fP Name server IP address
70 \fBnameserver\fP ネームサーバの IP アドレス
71 .\"O Internet address (in dot notation) of a name server
72 .\"O that the resolver should query.
73 .\"O Up to
74 .\"O .B MAXNS
75 .\"O (currently 3, see \fI<resolv.h>\fP) name servers may be listed,
76 .\"O one per keyword.
77 .\"O If there are multiple servers,
78 .\"O the resolver library queries them in the order listed.
79 .\"O If no \fBnameserver\fP entries are present,
80 .\"O the default is to use the name server on the local machine.
81 .\"O (The algorithm used is to try a name server, and if the query times out,
82 .\"O try the next, until out of name servers,
83 .\"O then repeat trying all the name servers
84 .\"O until a maximum number of retries are made.)
85 レゾルバが問い合わせをするネームサーバの
86 (ドット表記の) インターネットアドレス。
87 このキーワード 1 つごとに 1 台づつ、
88 .B MAXNS
89 台 (現状では 3 台、\fI<resolv.h>\fP を参照) までのネームサーバをリストできる。
90 複数のサーバが指定された場合、レゾルバライブラリは
91 リストされた順に問い合わせを行う。
92 \fBnameserver\fP エントリがない場合、
93 デフォルトではローカルマシン上のネームサーバが使われる。
94 (ここで使われるアルゴリズムは以下のようなものである。
95 はじめにネームサーバに問い合わせを試みる。
96 この問い合わせがタイムアウトになった場合、
97 次のネームサーバに問い合わせを試みる。
98 これをネームサーバがなくなるまで続ける。
99 それでも応答がない場合は、リトライ最大回数に達するまで
100 全てのネームサーバに問い合わせを繰り返す。)
101 .TP
102 .\"O \fBdomain\fP Local domain name.
103 \fBdomain\fP ローカルドメイン名
104 .\"O Most queries for names within this domain can use short names
105 .\"O relative to the local domain.
106 .\"O If no \fBdomain\fP entry is present, the domain is determined
107 .\"O from the local hostname returned by
108 .\"O .BR gethostname (2);
109 .\"O the domain part is taken to be everything after the first \(aq.\(aq.
110 .\"O Finally, if thehost name does not contain a domain part, the root
111 .\"O domain is assumed.
112 このドメインにある名前の問い合わせのほとんどに、
113 このローカルドメインにおける短い名前を使用することができる。
114 \fBdomain\fP エントリがない場合、ドメイン名は
115 .BR gethostname (2)
116 で返されるローカルホスト名から決定され、
117 最初の \(aq.\(aq 以降の全ての部分がドメイン名とされる。
118 このホスト名にもドメイン部を含んでいない場合、ルートドメインが仮定される。
119 .TP
120 .\"O \fBsearch\fP Search list for host-name lookup.
121 \fBsearch\fP ホスト名ルックアップのための検索リスト
122 .\"O The search list is normally determined from the local domain name;
123 .\"O by default, it contains only the local domain name.
124 .\"O This may be changed by listing the desired domain search path
125 .\"O following the \fIsearch\fP keyword with spaces or tabs separating
126 .\"O the names.
127 .\"O Resolver queries having fewer than
128 .\"O .I ndots
129 .\"O dots (default is 1) in them will be attempted using each component
130 .\"O of the search path in turn until a match is found.
131 検索リストは通常ローカルドメイン名から決定される。
132 デフォルトでは、検索リストはローカルドメイン名のみである。
133 これを変更するには、\fIsearch\fP キーワードの後に
134 希望するドメイン検索パスをスペースまたはタブで区切ってリストすればよい。
135 ドットの数が
136 .I ndots
137 (デフォルトでは 1) より少ないレゾルバの問い合わせは、
138 一致するものが見つかるまで検索パスの各要素を順に使って試す。
139 .\"O For environments with multiple subdomains please read
140 .\"O .BI "options ndots:" n
141 .\"O below to avoid man-in-the-middle attacks and unnecessary
142 .\"O traffic for the root-dns-servers.
143 複数のサブドメインを持つ環境では、
144 第三者による攻撃 (man-in-the-middle attack) と
145 ルート DNS サーバへの不必要なトラフィックを避けるために、
146 以下の
147 .BI "options ndots:" n
148 を読んでほしい。
149 .\"O .\" When having a resolv.conv with a line
150 .\"O .\"  search subdomain.domain.tld domain.tld
151 .\"O .\" and doing a hostlookup, for example by
152 .\"O .\"  ping host.anothersubdomain
153 .\"O .\" it sends dns-requests for
154 .\"O .\"  host.anothersubdomain.
155 .\"O .\"  host.anothersubdomain.subdomain.domain.tld.
156 .\"O .\"  host.anothersubdomain.domain.tld.
157 .\"O .\" thus not only causing unnecessary traffic for the root-dns-servers
158 .\"O .\" but broadcasting information to the outside and making man-in-the-middle
159 .\"O .\" attacks possible.
160 .\" resolv.conv に
161 .\"  search subdomain.domain.tld domain.tld
162 .\" 以下のような行がある場合に、たとえば
163 .\"  ping host.anothersubdomain
164 .\" によるホストの検索が行われると、
165 .\"  host.anothersubdomain.
166 .\"  host.anothersubdomain.subdomain.domain.tld.
167 .\"  host.anothersubdomain.domain.tld.
168 .\" に対して DNS リクエストが送らる。
169 .\" これによって、ルート DNS サーバに対して
170 .\" 不必要なトラフィックを引き起こすだけでなく、
171 .\" 外部に情報をばらまいてしまうために、第三者による攻撃が可能になる。
172 .\"O Note that this process may be slow and will generate a lot of network
173 .\"O traffic if the servers for the listed domains are not local,
174 .\"O and that queries will time out if no server is available
175 .\"O for one of the domains.
176 このプロセスは遅く、リストされたドメインがローカルのものでない場合、
177 多大なネットワークトラフィックを発生させることに注意すること。
178 さらに、これらのドメインのいずれかひとつにでも適切なサーバがない場合、
179 問い合わせがタイムアウトになる点にも注意すること。
180 .IP
181 現状では、検索リストは 6 ドメイン・計 256 文字に制限されている。
182 .TP
183 \fBsortlist\fP
184 .\"O This option allows addresses returned by
185 .\"O .BR gethostbyname (3)
186 .\"O to be sorted.
187 .\"O A sortlist is specified by IP-address-netmask pairs.
188 .\"O The netmask is
189 .\"O optional and defaults to the natural netmask of the net.
190 .\"O The IP address
191 .\"O and optional network pairs are separated by slashes.
192 .\"O Up to 10 pairs may
193 .\"O be specified.
194 このオプションを使うと、
195 .BR gethostbyname (3)
196 で返されるアドレスをソートさせることができる。
197 sortlist は IP アドレスとネットマスクのペアで指定される。
198 ネットマスクは省略可能であり、
199 デフォルトではネットに対するデフォルトのネットマスクである。
200 IP アドレスとオプションのネットマスクのペアはスラッシュで区切る。
201 最大 10 組のペアを指定できる。
202 .\"O Here is an example:
203 以下に例を示す。
204
205 .in +4n
206 sortlist 130.155.160.0/255.255.240.0 130.155.0.0
207 .in
208 .br
209 .TP
210 \fBoptions\fP
211 .\"O Options allows certain internal resolver variables to be modified.
212 .\"O The syntax is
213 options により、レゾルバの内部変数を変更することができる。
214 書式は以下の通りである。
215 .RS
216 .IP
217 \fBoptions\fP \fIoption\fP \fI...\fP
218 .LP
219 .\"O where \fIoption\fP is one of the following:
220 ここで \fIoption\fP は次のうちのいずれかである。
221 .TP
222 \fBdebug\fP
223 .\" Since glibc 2.2?
224 .\"O sets
225 .\"O .B RES_DEBUG
226 .\"O in
227 .\"O .IR _res.options .
228 .I _res.options
229
230 .B RES_DEBUG
231 を設定する。
232 .TP
233 .BI ndots: n
234 .\" Since glibc 2.2
235 .\"O sets a threshold for the number of dots which
236 .\"O must appear in a name given to
237 .\"O .BR res_query (3)
238 .\"O (see
239 .\"O .BR resolver (3))
240 .\"O before an \fIinitial absolute query\fP will be made.
241 .\"O The default for
242 .\"O \fIn\fP is 1, meaning that if there are any dots in a name, the name
243 .\"O will be tried first as an absolute name before any \fIsearch list\fP
244 .\"O elements are appended to it.
245 .\"O The value for this option is silently capped to 15.
246 「\fI最初の完全な名前での問い合わせ\fPが実行される前に、
247 .BR res_query (3)
248 .RB ( resolver (3)
249 を参照) に与えられる名前に含まれているべきドットの数の閾値」を設定する。
250 \fIn\fP のデフォルトは 1 である。
251 これは、名前にドットがある場合、\fIsearch list\fP の要素が付加される前に、
252 その名前が完全な名前として最初に試されるということを意味している。
253 このオプションの値の上限は 15 であり、黙ってこの値まで切り詰められる。
254 .TP
255 .BI timeout: n
256 .\" Since glibc 2.2
257 .\"O sets the amount of time the resolver will wait for a
258 .\"O response from a remote name server before retrying the
259 .\"O query via a different name server.
260 .\"O Measured in seconds,
261 .\"O the default is
262 .\"O .B RES_TIMEOUT
263 .\"O (currently 5, see \fI<resolv.h>\fP).
264 .\"O The value for this option is silently capped to 30.
265 「レゾルバが他のネームサーバで問い合わせをリトライする前に、
266 リモートネームサーバからの応答を待つ時間」を設定する。
267 単位は秒で、デフォルトは
268 .B RES_TIMEOUT
269 である
270 (現状では 5 秒、\fI<resolv.h>\fP を参照)。
271 このオプションの値の上限は 30 であり、黙ってこの値まで切り詰められる。
272 .TP
273 .BI attempts: n
274 .\"O sets the number of times the resolver will send a
275 .\"O query to its name servers before giving up and returning
276 .\"O an error to the calling application.
277 .\"O The default is
278 .\"O .B RES_DFLRETRY
279 .\"O (currently 2, see \fI<resolv.h>\fP).
280 .\"O The value for this option is silently capped to 5.
281 「レゾルバが諦めて呼び出し元のアプリケーションにエラーを返すまでに、
282 ネームサーバに問い合わせを行う回数」を設定する。
283 デフォルトは
284 .B RES_DFLRETRY
285 回である
286 (現状では 2 回、\fI<resolv.h>\fP を参照)。
287 このオプションの値の上限は 5 であり、黙ってこの値まで切り詰められる。
288 .TP
289 .B rotate
290 .\" Since glibc 2.2
291 .\"O sets
292 .\"O .B RES_ROTATE
293 .\"O in
294 .\"O .IR _res.options ,
295 .\"O which causes round robin selection of nameservers from among those listed.
296 .\"O This has the effect of spreading the query load among all listed servers,
297 .\"O rather than having all clients try the first listed server first every time.
298 .I _res.options
299 に RES_ROTATE を設定する。
300 リストされているネームサーバから選ぶときに、
301 ラウンドロビン (round robin) 選択を行わせる。
302 リストされている全てのサーバで問い合わせの負荷を分散する効果があり、
303 最初にリストされたサーバに全てのクライアントが
304 毎回最初に問い合わせを行うわけではなくなる。
305 .TP
306 .B no-check-names
307 .\" Since glibc 2.2
308 .\"O sets
309 .\"O .B RES_NOCHECKNAME
310 .\"O in
311 .\"O .IR _res.options ,
312 .\"O which disables the modern BIND checking of incoming hostnames and
313 .\"O mail names for invalid characters such as underscore (_), non-ASCII,
314 .\"O or control characters.
315 .I _res.options
316
317 .B RES_NOCHECKNAME
318 を設定する。
319 入ってくるホスト名とメールアドレスに、
320 アンダースコア (_)・ASCII 以外の文字・制御文字といった
321 不正な文字が含まれていないかを調べる
322 最近の BIND のチェックを無効にする。
323 .TP
324 .B inet6
325 .\" Since glibc 2.2
326 .\"O sets
327 .\"O .BR RES_USE_INET6
328 .\"O in
329 .\"O .IR _res.options .
330 .\"O This has the effect of trying a AAAA query before an A query inside the
331 .\"O .BR gethostbyname (3)
332 .\"O function, and of mapping IPv4 responses in IPv6 "tunneled form"
333 .\"O if no AAAA records are found but an A record set exists.
334 .I _res.options
335
336 .B RES_USE_INET6
337 を設定する。このオプションが設定されると、
338 .BR gethostbyname (3)
339 関数の内部で A レコードの問い合わせを行う前に
340 AAAA レコードの問い合わせを行うようになる。
341 また、AAAA レコードは見つからないが A レコードセットが存在する場合に、
342 IPv4 の応答を IPv6「トンネル形式」にマップするようになる。
343 .TP
344 .\"O .BR ip6-bytestring " (since glibc 2.3.4)"
345 .BR ip6-bytestring " (glibc 2.3.4 以降)"
346 .\"O sets
347 .\"O .BR RES_USE_BSTRING
348 .\"O in
349 .\"O .IR _res.options .
350 .\"O This causes reverse IPv6 lookups to be made using the bit-label format
351 .\"O described in RFC\ 2673;
352 .\"O if this option is not set, then nibble format is used.
353 .I _res.options
354
355 .B RES_USE_BSTRING
356 を設定する。このオプションが設定されると、IPv6 アドレスの逆引きで
357 RFC\ 2673 で規定された bit-label 形式が使用されるようになる。
358 このオプションが設定されない場合、nibble 形式が使用される。
359 .TP
360 .\"O .BR ip6-dotint / no-ip6-dotint " (since glibc 2.3.4)"
361 .BR ip6-dotint / no-ip6-dotint " (glibc 2.3.4 以降)"
362 .\"O Clear/set
363 .\"O .BR RES_NOIP6DOTINT
364 .\"O in
365 .\"O .IR _res.options .
366 .I _res.options
367 への
368 .B RES_NOIP6DOTINT
369 のセット/クリアを行う。
370 .\"O When this option is clear
371 .\"O .RB ( ip6-dotint ),
372 .\"O reverse IPv6 lookups are made in the (deprecated)
373 .\"O .I ip6.int
374 .\"O zone;
375 .\"O when this option is set
376 .\"O .RB ( no-ip6-dotint ),
377 .\"O reverse IPv6 lookups are made in the
378 .\"O .I ip6.arpa
379 .\"O zone by default.
380 このオプションがクリアされると
381 .RB ( ip6-dotint )、
382 IPv6 アドレスの逆引きが (非推奨の)
383 .I ip6.int
384 ゾーンで行われるようになり、
385 このオプションがセットされると
386 .RB ( no-ip6-dotint )、
387 IPv6 アドレスの逆引きがデフォルトの
388 .I ip6.arpa
389 ゾーンで行われるようになる。
390 .\"O This option is set by default.
391 このオプションはデフォルトでセットされる。
392 .TP
393 .\"O .BR edns0 " (since glibc 2.6)"
394 .BR edns0 " (glibc 2.6 以降)"
395 .\"O sets
396 .\"O .BR RES_USE_EDNSO
397 .\"O in
398 .\"O .IR _res.options .
399 .\"O This enables support for the DNS extensions described in RFC\ 2671.
400 .I _res.options
401
402 .B RES_USE_EDNSO
403 をセットする。これにより、RFC\ 2671 で規定されている
404 DNS 拡張のサポートが有効になる。
405 .RE
406 .LP
407 .\"O The \fIdomain\fP and \fIsearch\fP keywords are mutually exclusive.
408 .\"O If more than one instance of these keywords is present,
409 .\"O the last instance wins.
410 \fIdomain\fP と \fIsearch\fP キーワードは、互いに排他的である。
411 これらのキーワードが 2 つ以上記述されている場合、
412 最後に記述されているものが有効になる。
413 .LP
414 .\"O The \fIsearch\fP keyword of a system's \fIresolv.conf\fP file can be
415 .\"O overridden on a per-process basis by setting the environment variable
416 .\"O .B LOCALDOMAIN
417 .\"O to a space-separated list of search domains.
418 システムの \fIresolv.conf\fP ファイルにある \fIsearch\fP キーワードは、
419 スペースで区切った検索ドメインのリストを
420 環境変数
421 .B LOCALDOMAIN
422 に設定することにより、各プロセス毎に上書きすることができる。
423 .LP
424 .\"O The \fIoptions\fP keyword of a system's \fIresolv.conf\fP file can be
425 .\"O amended on a per-process basis by setting the environment variable
426 .\"O .B RES_OPTIONS
427 .\"O to a space-separated list of resolver options
428 .\"O as explained above under \fBoptions\fP.
429 システムの \fIresolv.conf\fP ファイルにある \fIoptions\fP キーワードは、
430 上の \fBoptions\fP セクションで説明したように、
431 スペースで区切ったレゾルバオプションのリストを
432 環境変数
433 .B RES_OPTIONS
434 に設定することにより、各プロセス毎に修正することができる。
435 .LP
436 .\"O The keyword and value must appear on a single line, and the keyword
437 .\"O (e.g., \fBnameserver\fP) must start the line.
438 .\"O The value follows the keyword, separated by white space.
439 キーワードと値は同じ行に書かなければならない。
440 また、(\fBnameserver\fP のような) キーワードが行の先頭になければならない。
441 値はキーワードの後にスペースで区切って続ける。
442 .\"O .SH FILES
443 .SH ファイル
444 .IR /etc/resolv.conf ,
445 .I <resolv.h>
446 .\"O .SH SEE ALSO
447 .SH 関連項目
448 .BR gethostbyname (3),
449 .BR resolver (3),
450 .BR hostname (7),
451 .BR named (8)
452 .br
453 .\"O Name Server Operations Guide for BIND
454 BIND のネームサーバオペレーションガイド
455 .\"O 
456 .\"O Local Variables:
457 .\"O mode: nroff
458 .\"O End: