1 .\" Copyright (c) 1986 The Regents of the University of California.
2 .\" All rights reserved.
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.
16 .\" @(#)resolver.5 5.9 (Berkeley) 12/14/89
19 .\" Added ndots remark by Bernhard R. Link - debian bug #182886
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
27 .\"WORD: resolver レゾルバ
30 .TH RESOLV.CONF 5 2009-03-01 "" "Linux Programmer's Manual"
34 .\"O resolv.conf \- resolver configuration file
35 resolv.conf \- レゾルバ設定ファイル
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.
50 は、インターネットのドメインネームシステム (DNS) へのアクセスを提供する
52 レゾルバ設定ファイルには、レゾルバルーチンがプロセスによって最初に
53 起動されたときに読み込まれる情報が格納されている。
54 このファイルは人間に可読なように設計されている。
55 キーワードと値のリストが含まれ、いろいろなタイプのレゾルバ情報を提供する。
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 問い合わせをされる唯一のネームサーバはローカルマシン上にある。
64 ドメインの検索パスはドメイン名から作成される。
66 .\"O The different configuration options are:
67 この状態を変更するための設定オプションには、以下のようなものがある。
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.
75 .\"O (currently 3, see \fI<resolv.h>\fP) name servers may be listed,
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.)
89 台 (現状では 3 台、\fI<resolv.h>\fP を参照) までのネームサーバをリストできる。
90 複数のサーバが指定された場合、レゾルバライブラリは
92 \fBnameserver\fP エントリがない場合、
93 デフォルトではローカルマシン上のネームサーバが使われる。
94 (ここで使われるアルゴリズムは以下のようなものである。
99 それでも応答がない場合は、リトライ最大回数に達するまで
100 全てのネームサーバに問い合わせを繰り返す。)
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 エントリがない場合、ドメイン名は
117 最初の \(aq.\(aq 以降の全ての部分がドメイン名とされる。
118 このホスト名にもドメイン部を含んでいない場合、ルートドメインが仮定される。
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
127 .\"O Resolver queries having fewer than
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 希望するドメイン検索パスをスペースまたはタブで区切ってリストすればよい。
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.
144 第三者による攻撃 (man-in-the-middle attack) と
145 ルート DNS サーバへの不必要なトラフィックを避けるために、
147 .BI "options ndots:" n
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.
161 .\" search subdomain.domain.tld domain.tld
162 .\" 以下のような行がある場合に、たとえば
163 .\" ping host.anothersubdomain
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 問い合わせがタイムアウトになる点にも注意すること。
181 現状では、検索リストは 6 ドメイン・計 256 文字に制限されている。
184 .\"O This option allows addresses returned by
185 .\"O .BR gethostbyname (3)
187 .\"O A sortlist is specified by IP-address-netmask pairs.
189 .\"O optional and defaults to the natural netmask of the net.
191 .\"O and optional network pairs are separated by slashes.
192 .\"O Up to 10 pairs may
195 .BR gethostbyname (3)
196 で返されるアドレスをソートさせることができる。
197 sortlist は IP アドレスとネットマスクのペアで指定される。
199 デフォルトではネットに対するデフォルトのネットマスクである。
200 IP アドレスとオプションのネットマスクのペアはスラッシュで区切る。
202 .\"O Here is an example:
206 sortlist 130.155.160.0/255.255.240.0 130.155.0.0
211 .\"O Options allows certain internal resolver variables to be modified.
213 options により、レゾルバの内部変数を変更することができる。
217 \fBoptions\fP \fIoption\fP \fI...\fP
219 .\"O where \fIoption\fP is one of the following:
220 ここで \fIoption\fP は次のうちのいずれかである。
227 .\"O .IR _res.options .
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)
239 .\"O .BR resolver (3))
240 .\"O before an \fIinitial absolute query\fP will be made.
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が実行される前に、
249 を参照) に与えられる名前に含まれているべきドットの数の閾値」を設定する。
250 \fIn\fP のデフォルトは 1 である。
251 これは、名前にドットがある場合、\fIsearch list\fP の要素が付加される前に、
252 その名前が完全な名前として最初に試されるということを意味している。
253 このオプションの値の上限は 15 であり、黙ってこの値まで切り詰められる。
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,
263 .\"O (currently 5, see \fI<resolv.h>\fP).
264 .\"O The value for this option is silently capped to 30.
265 「レゾルバが他のネームサーバで問い合わせをリトライする前に、
266 リモートネームサーバからの応答を待つ時間」を設定する。
270 (現状では 5 秒、\fI<resolv.h>\fP を参照)。
271 このオプションの値の上限は 30 であり、黙ってこの値まで切り詰められる。
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.
279 .\"O (currently 2, see \fI<resolv.h>\fP).
280 .\"O The value for this option is silently capped to 5.
281 「レゾルバが諦めて呼び出し元のアプリケーションにエラーを返すまでに、
282 ネームサーバに問い合わせを行う回数」を設定する。
286 (現状では 2 回、\fI<resolv.h>\fP を参照)。
287 このオプションの値の上限は 5 であり、黙ってこの値まで切り詰められる。
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.
300 リストされているネームサーバから選ぶときに、
301 ラウンドロビン (round robin) 選択を行わせる。
302 リストされている全てのサーバで問い合わせの負荷を分散する効果があり、
303 最初にリストされたサーバに全てのクライアントが
304 毎回最初に問い合わせを行うわけではなくなる。
309 .\"O .B RES_NOCHECKNAME
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.
320 アンダースコア (_)・ASCII 以外の文字・制御文字といった
322 最近の BIND のチェックを無効にする。
327 .\"O .BR RES_USE_INET6
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.
337 を設定する。このオプションが設定されると、
338 .BR gethostbyname (3)
339 関数の内部で A レコードの問い合わせを行う前に
340 AAAA レコードの問い合わせを行うようになる。
341 また、AAAA レコードは見つからないが A レコードセットが存在する場合に、
342 IPv4 の応答を IPv6「トンネル形式」にマップするようになる。
344 .\"O .BR ip6-bytestring " (since glibc 2.3.4)"
345 .BR ip6-bytestring " (glibc 2.3.4 以降)"
347 .\"O .BR RES_USE_BSTRING
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.
356 を設定する。このオプションが設定されると、IPv6 アドレスの逆引きで
357 RFC\ 2673 で規定された bit-label 形式が使用されるようになる。
358 このオプションが設定されない場合、nibble 形式が使用される。
360 .\"O .BR ip6-dotint / no-ip6-dotint " (since glibc 2.3.4)"
361 .BR ip6-dotint / no-ip6-dotint " (glibc 2.3.4 以降)"
363 .\"O .BR RES_NOIP6DOTINT
365 .\"O .IR _res.options .
370 .\"O When this option is clear
371 .\"O .RB ( ip6-dotint ),
372 .\"O reverse IPv6 lookups are made in the (deprecated)
375 .\"O when this option is set
376 .\"O .RB ( no-ip6-dotint ),
377 .\"O reverse IPv6 lookups are made in the
379 .\"O zone by default.
382 IPv6 アドレスの逆引きが (非推奨の)
386 .RB ( no-ip6-dotint )、
390 .\"O This option is set by default.
391 このオプションはデフォルトでセットされる。
393 .\"O .BR edns0 " (since glibc 2.6)"
394 .BR edns0 " (glibc 2.6 以降)"
396 .\"O .BR RES_USE_EDNSO
398 .\"O .IR _res.options .
399 .\"O This enables support for the DNS extensions described in RFC\ 2671.
403 をセットする。これにより、RFC\ 2671 で規定されている
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 つ以上記述されている場合、
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
417 .\"O to a space-separated list of search domains.
418 システムの \fIresolv.conf\fP ファイルにある \fIsearch\fP キーワードは、
422 に設定することにより、各プロセス毎に上書きすることができる。
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
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 スペースで区切ったレゾルバオプションのリストを
434 に設定することにより、各プロセス毎に修正することができる。
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 値はキーワードの後にスペースで区切って続ける。
444 .IR /etc/resolv.conf ,
448 .BR gethostbyname (3),
453 .\"O Name Server Operations Guide for BIND
454 BIND のネームサーバオペレーションガイド
456 .\"O Local Variables: