OSDN Git Service

5d021df34bb72daad96c8e4eb8744378174769b8
[linuxjm/LDP_man-pages.git] / draft / man5 / hosts.5
1 .\" Hey, Emacs! This is an -*- nroff -*- source file.
2 .\" Copyright (c) 2000 Manoj Srivastava <srivasta@debian.org>
3 .\"
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
8 .\"
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
13 .\"
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 .\" GNU General Public License for more details.
18 .\"
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual; if not, write to the Free
21 .\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
22 .\" USA.
23 .\"
24 .\" Minor polishing, aeb
25 .\" Modified, 2002-06-16, Mike Coleman
26 .\"
27 .\" Japanese Version Copyright (c) 2000-2002 Yuichi SATO
28 .\"         all rights reserved.
29 .\" Translated Sun Sep 24 05:53:22 JST 2000
30 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
31 .\" Updated & Modified Sat Aug 31 05:49:00 JST 2002 by Yuichi SATO
32 .\"
33 .TH HOSTS 5 2002-06-16 "Linux" "Linux Programmer's Manual"
34 .\"O .SH NAME
35 .SH 名前
36 .\"O hosts \- static table lookup for hostnames
37 hosts \- ホスト名の静的なルックアップテーブル
38 .\"O .SH SYNOPSIS
39 .SH 書式
40 .B /etc/hosts
41 .\"O .SH DESCRIPTION
42 .SH 説明
43 .\"O This manual page describes the format of the
44 .\"O .I /etc/hosts
45 .\"O file.
46 .\"O This file is a simple text file that associates IP addresses
47 .\"O with hostnames, one line per IP address.
48 .\"O For each host a single
49 .\"O line should be present with the following information:
50 このマニュアルページは、
51 .I /etc/hosts
52 ファイルのフォーマットについて記述している。
53 このファイルは簡単なテキストファイルで、1 行に 1 つの IP アドレスがあり、
54 IP アドレスとホスト名を関連づけている。
55 各ホストについて、次のような情報が 1 行で与えられる。
56 .RS
57 .PP
58 .\"O IP_address canonical_hostname [aliases...]
59 IPアドレス 正式なホスト名 [エイリアス...]
60 .RE
61 .PP
62 .\"O Fields of the entry are separated by any number of blanks and/or
63 .\"O tab characters.
64 .\"O Text from a "#" character until the end of the line is
65 .\"O a comment, and is ignored.
66 .\"O Host names may contain only alphanumeric
67 .\"O characters, minus signs ("\-"), and periods (".").
68 .\"O They must begin with an
69 .\"O alphabetic character and end with an alphanumeric character.
70 .\"O Optional aliases provide for name changes, alternate spellings,
71 .\"O shorter hostnames, or generic hostnames (for example,
72 .\"O .IR localhost ).
73 エントリのフィールドは、空白またはタブ (複数でも可) で区切られる。
74 "#" 文字から行末までのテキストはコメントとして無視される。
75 ホスト名は英数字・マイナス記号 ("\-")・ピリオド (".") を含むことができる。
76 ホスト名は英文字 (alphabetic character) で始まって、
77 英数字 (alphanumeric characte) で終わらなければならない。
78 エイリアスはオプションであり、名前の変更、別のスペル、
79 短いホスト名、一般的に使われるホスト名 (例えば
80 .IR localhost )
81 などのために用意されている。
82 .PP
83 .\"O The Berkeley Internet Name Domain (BIND) Server implements the
84 .\"O Internet name server for UNIX systems.
85 .\"O It augments or replaces the
86 .\"O .I /etc/hosts
87 .\"O file or hostname lookup, and frees a host from relying on
88 .\"O .I /etc/hosts
89 .\"O being up to date and complete.
90 Berkeley Internet Name Domain (BIND) サーバは、
91 UNIX システムのためのインターネットネームサーバを実装している。
92 これは、
93 .I /etc/hosts
94 ファイルやホスト名ルックアップを拡張したり置き換えたりするものである。
95 これにより各ホストは
96 .I /etc/hosts
97 を最新かつ完全に保たなくてもよくなる。
98 .PP
99 .\"O In modern systems, even though the host table has been superseded by
100 .\"O DNS, it is still widely used for:
101 ホストテーブルは、DNS にとって代わられたにもかかわらず、
102 現在のシステムにおいて次のような用途で広く使われている。
103 .TP
104 .\"O .B bootstrapping
105 .B ブート時
106 .\"O Most systems have a small host table containing the name and address
107 .\"O information for important hosts on the local network.
108 .\"O This is useful
109 .\"O when DNS is not running, for example during system bootup.
110 大部分のシステムは、ローカルネットワークにおいて重要なホストの
111 名前とアドレスが含まれた小さなホストテーブルを持っている。
112 これは、システムのブート時などの DNS が稼働していないときに役立つ。
113 .TP
114 .B NIS
115 .\"O Sites that use NIS use the host table as input to the NIS host
116 .\"O database.
117 .\"O Even though NIS can be used with DNS, most NIS sites still
118 .\"O use the host table with an entry for all local hosts as a backup.
119 NIS を使用しているサイトは、ホストテーブルを
120 NIS ホストデータベースの入力として用いる。
121 NIS を DNS と共に使用できるにもかかわらず、
122 大部分の NIS サイトは未だに、
123 全てのローカルホストのエントリをもつホストテーブルを
124 バックアップとして使用している。
125 .TP
126 .\"O .B isolated nodes
127 .B 隔絶されたノード
128 .\"O Very small sites that are isolated from the network use the host table
129 .\"O instead of DNS.
130 .\"O If the local information rarely changes, and the
131 .\"O network is not connected to the Internet, DNS offers little
132 .\"O advantage.
133 ネットワークから隔絶された非常に小さなサイトは、
134 DNS の代わりにホストテーブルを使用している。
135 ローカル情報が稀にしか変更されず、
136 ネットワークがインターネットと接続されていない場合、
137 DNS にそれほどの利点はない。
138 .\"O .SH FILES
139 .SH ファイル
140 .I /etc/hosts
141 .\"O .SH NOTES
142 .SH 注意
143 .\"O Modifications to this file normally take effect immediately,
144 .\"O except in cases where the file is cached by applications.
145 このファイルへの変更は通常すぐに反映される。但し、アプリケーション
146 によりファイルの内容がキャッシュされている場合はこの限りではない。
147 .\"O .SS "Historical Notes"
148 .SS 歴史的な経緯
149 .\"O RFC\ 952 gave the original format for the host table, though it has
150 .\"O since changed.
151 ホストテーブルのフォーマットはその後変更されているが、
152 元々のフォーマットは RFC\ 952 には記載されている。
153
154 .\"O Before the advent of DNS, the host table was the only way of resolving
155 .\"O hostnames on the fledgling Internet.
156 .\"O Indeed, this file could be
157 .\"O created from the official host data base maintained at the Network
158 .\"O Information Control Center (NIC), though local changes were often
159 .\"O required to bring it up to date regarding unofficial aliases and/or
160 .\"O unknown hosts.
161 .\"O The NIC no longer maintains the hosts.txt files,
162 .\"O though looking around at the time of writing (circa 2000), there are
163 .\"O historical hosts.txt files on the WWW.
164 .\"O I just found three, from 92,
165 .\"O 94, and 95.
166 DNS の登場以前、ホストテーブルは、駆け出したばかりのインターネットにおける
167 ホスト名解決の唯一の方法であった。
168 実際、このファイルは Network Information Control Center (NIC) によって
169 管理される公式ホストデータベースから作成することができた。
170 しかし、非公式なエイリアスや不明なホストを扱えるように、
171 最新に保つためのローカルな変更が頻繁に必要とされた。
172 NIC は既に hosts.txt を管理していないが、
173 これを書いている (2000 年頃の) 時点で調べてみると、
174 WWW 上に歴史的な hosts.txt が存在する。
175 92, 94, 95 年のものが見つかった。
176 .\"O .SH EXAMPLE
177 .SH 例
178 .nf
179 127.0.0.1       localhost
180 192.168.1.10    foo.mydomain.org       foo
181 192.168.1.13    bar.mydomain.org       bar
182 146.82.138.7    master.debian.org      master
183 209.237.226.90  www.opensource.org
184 .fi
185 .\"O .SH "SEE ALSO"
186 .SH 関連項目
187 .BR hostname (1),
188 .BR resolver (3),
189 .BR resolver (5),
190 .BR hostname (7),
191 .BR named (8),
192 Internet RFC\ 952
193 .\"O .\" .SH AUTHOR
194 .\" .SH 著者
195 .\"O .\" This manual page was written by Manoj Srivastava <srivasta@debian.org>,
196 .\"O .\" for the Debian GNU/Linux system.
197 .\" このマニュアルページは、Debian GNU/Linux システムのために
198 .\" Manoj Srivastava <srivasta@debian.org> によって書かれた。