OSDN Git Service

(split) Move Japanese translation histories after original history sections.
[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> ¤Ë¤è¤Ã¤Æ½ñ¤«¤ì¤¿¡£