OSDN Git Service

30e57ea4aa628b9030d0e82cfe6cbacbb96b48ca
[linuxjm/LDP_man-pages.git] / release / 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 .SH Ì¾Á°
35 hosts \- ¥Û¥¹¥È̾¤ÎÀÅŪ¤Ê¥ë¥Ã¥¯¥¢¥Ã¥×¥Æ¡¼¥Ö¥ë
36 .SH ½ñ¼°
37 .B /etc/hosts
38 .SH ÀâÌÀ
39 ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï¡¢
40 .I /etc/hosts
41 ¥Õ¥¡¥¤¥ë¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤Ë¤Ä¤¤¤Æµ­½Ò¤·¤Æ¤¤¤ë¡£
42 ¤³¤Î¥Õ¥¡¥¤¥ë¤Ï´Êñ¤Ê¥Æ¥­¥¹¥È¥Õ¥¡¥¤¥ë¤Ç¡¢1 ¹Ô¤Ë 1 ¤Ä¤Î IP ¥¢¥É¥ì¥¹¤¬¤¢¤ê¡¢
43 IP ¥¢¥É¥ì¥¹¤È¥Û¥¹¥È̾¤ò´ØÏ¢¤Å¤±¤Æ¤¤¤ë¡£
44 ³Æ¥Û¥¹¥È¤Ë¤Ä¤¤¤Æ¡¢¼¡¤Î¤è¤¦¤Ê¾ðÊ󤬠1 ¹Ô¤ÇÍ¿¤¨¤é¤ì¤ë¡£
45 .RS
46 .PP
47 IP¥¢¥É¥ì¥¹ Àµ¼°¤Ê¥Û¥¹¥È̾ [¥¨¥¤¥ê¥¢¥¹...]
48 .RE
49 .PP
50 ¥¨¥ó¥È¥ê¤Î¥Õ¥£¡¼¥ë¥É¤Ï¡¢¶õÇò¤Þ¤¿¤Ï¥¿¥Ö (Ê£¿ô¤Ç¤â²Ä) ¤Ç¶èÀÚ¤é¤ì¤ë¡£
51 "#" Ê¸»ú¤«¤é¹ÔËö¤Þ¤Ç¤Î¥Æ¥­¥¹¥È¤Ï¥³¥á¥ó¥È¤È¤·¤Æ̵»ë¤µ¤ì¤ë¡£
52 ¥Û¥¹¥È̾¤Ï±Ñ¿ô»ú¡¦¥Þ¥¤¥Ê¥¹µ­¹æ ("\-")¡¦¥Ô¥ê¥ª¥É (".") ¤ò´Þ¤à¤³¤È¤¬¤Ç¤­¤ë¡£
53 ¥Û¥¹¥È̾¤Ï±Ñʸ»ú (alphabetic character) ¤Ç»Ï¤Þ¤Ã¤Æ¡¢
54 ±Ñ¿ô»ú (alphanumeric characte) ¤Ç½ª¤ï¤é¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
55 ¥¨¥¤¥ê¥¢¥¹¤Ï¥ª¥×¥·¥ç¥ó¤Ç¤¢¤ê¡¢Ì¾Á°¤ÎÊѹ¹¡¢Ê̤Υ¹¥Ú¥ë¡¢
56 û¤¤¥Û¥¹¥È̾¡¢°ìÈÌŪ¤Ë»È¤ï¤ì¤ë¥Û¥¹¥È̾ (Î㤨¤Ð
57 .IR localhost )
58 ¤Ê¤É¤Î¤¿¤á¤ËÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë¡£
59 .PP
60 Berkeley Internet Name Domain (BIND) ¥µ¡¼¥Ð¤Ï¡¢
61 Unix ¥·¥¹¥Æ¥à¤Î¤¿¤á¤Î¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥Í¡¼¥à¥µ¡¼¥Ð¤ò¼ÂÁõ¤·¤Æ¤¤¤ë¡£
62 ¤³¤ì¤Ï¡¢
63 .I /etc/hosts
64 ¥Õ¥¡¥¤¥ë¤ä¥Û¥¹¥È̾¥ë¥Ã¥¯¥¢¥Ã¥×¤ò³ÈÄ¥¤·¤¿¤êÃÖ¤­´¹¤¨¤¿¤ê¤¹¤ë¤â¤Î¤Ç¤¢¤ë¡£
65 ¤³¤ì¤Ë¤è¤ê³Æ¥Û¥¹¥È¤Ï
66 .I /etc/hosts
67 ¤òºÇ¿·¤«¤Ä´°Á´¤ËÊݤ¿¤Ê¤¯¤Æ¤â¤è¤¯¤Ê¤ë¡£
68 .PP
69 ¥Û¥¹¥È¥Æ¡¼¥Ö¥ë¤Ï¡¢DNS ¤Ë¤È¤Ã¤ÆÂå¤ï¤é¤ì¤¿¤Ë¤â¤«¤«¤ï¤é¤º¡¢
70 ¸½ºß¤Î¥·¥¹¥Æ¥à¤Ë¤ª¤¤¤Æ¼¡¤Î¤è¤¦¤ÊÍÑÅӤǹ­¤¯»È¤ï¤ì¤Æ¤¤¤ë¡£
71 .TP
72 .B ¥Ö¡¼¥È»þ
73 ÂçÉôʬ¤Î¥·¥¹¥Æ¥à¤Ï¡¢¥í¡¼¥«¥ë¥Í¥Ã¥È¥ï¡¼¥¯¤Ë¤ª¤¤¤Æ½ÅÍפʥۥ¹¥È¤Î
74 ̾Á°¤È¥¢¥É¥ì¥¹¤¬´Þ¤Þ¤ì¤¿¾®¤µ¤Ê¥Û¥¹¥È¥Æ¡¼¥Ö¥ë¤ò»ý¤Ã¤Æ¤¤¤ë¡£
75 ¤³¤ì¤Ï¡¢¥·¥¹¥Æ¥à¤Î¥Ö¡¼¥È»þ¤Ê¤É¤Î DNS ¤¬²ÔƯ¤·¤Æ¤¤¤Ê¤¤¤È¤­¤ËÌòΩ¤Ä¡£
76 .TP
77 .B NIS
78 NIS ¤ò»ÈÍѤ·¤Æ¤¤¤ë¥µ¥¤¥È¤Ï¡¢¥Û¥¹¥È¥Æ¡¼¥Ö¥ë¤ò
79 NIS ¥Û¥¹¥È¥Ç¡¼¥¿¥Ù¡¼¥¹¤ÎÆþÎϤȤ·¤ÆÍѤ¤¤ë¡£
80 NIS ¤ò DNS ¤È¶¦¤Ë»ÈÍѤǤ­¤ë¤Ë¤â¤«¤«¤ï¤é¤º¡¢
81 ÂçÉôʬ¤Î NIS ¥µ¥¤¥È¤Ï̤¤À¤Ë¡¢
82 Á´¤Æ¤Î¥í¡¼¥«¥ë¥Û¥¹¥È¤Î¥¨¥ó¥È¥ê¤ò¤â¤Ä¥Û¥¹¥È¥Æ¡¼¥Ö¥ë¤ò
83 ¥Ð¥Ã¥¯¥¢¥Ã¥×¤È¤·¤Æ»ÈÍѤ·¤Æ¤¤¤ë¡£
84 .TP
85 .B ³ÖÀ䤵¤ì¤¿¥Î¡¼¥É
86 ¥Í¥Ã¥È¥ï¡¼¥¯¤«¤é³ÖÀ䤵¤ì¤¿Èó¾ï¤Ë¾®¤µ¤Ê¥µ¥¤¥È¤Ï¡¢
87 DNS ¤ÎÂå¤ï¤ê¤Ë¥Û¥¹¥È¥Æ¡¼¥Ö¥ë¤ò»ÈÍѤ·¤Æ¤¤¤ë¡£
88 ¥í¡¼¥«¥ë¾ðÊ󤬵©¤Ë¤·¤«Êѹ¹¤µ¤ì¤º¡¢
89 ¥Í¥Ã¥È¥ï¡¼¥¯¤¬¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤ÈÀܳ¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢
90 DNS ¤Ë¤½¤ì¤Û¤É¤ÎÍøÅÀ¤Ï¤Ê¤¤¡£
91 .SH ¥Õ¥¡¥¤¥ë
92 .I /etc/hosts
93 .SH Ãí°Õ
94 ¤³¤Î¥Õ¥¡¥¤¥ë¤Ø¤ÎÊѹ¹¤ÏÄ̾魯¤°¤ËÈ¿±Ç¤µ¤ì¤ë¡£Ã¢¤·¡¢¥¢¥×¥ê¥±¡¼¥·¥ç¥ó
95 ¤Ë¤è¤ê¥Õ¥¡¥¤¥ë¤ÎÆâÍƤ¬¥­¥ã¥Ã¥·¥å¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¤³¤Î¸Â¤ê¤Ç¤Ï¤Ê¤¤¡£
96 .SS Îò»ËŪ¤Ê·Ð°Þ
97 ¥Û¥¹¥È¥Æ¡¼¥Ö¥ë¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï¤½¤Î¸åÊѹ¹¤µ¤ì¤Æ¤¤¤ë¤¬¡¢
98 ¸µ¡¹¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï RFC\ 952 ¤Ë¤Ïµ­ºÜ¤µ¤ì¤Æ¤¤¤ë¡£
99
100 DNS ¤ÎÅоì°ÊÁ°¡¢¥Û¥¹¥È¥Æ¡¼¥Ö¥ë¤Ï¡¢¶î¤±½Ð¤·¤¿¤Ð¤«¤ê¤Î¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤Ë¤ª¤±¤ë
101 ¥Û¥¹¥È̾²ò·è¤ÎÍ£°ì¤ÎÊýË¡¤Ç¤¢¤Ã¤¿¡£
102 ¼ÂºÝ¡¢¤³¤Î¥Õ¥¡¥¤¥ë¤Ï Network Information Control Center (NIC) ¤Ë¤è¤Ã¤Æ
103 ´ÉÍý¤µ¤ì¤ë¸ø¼°¥Û¥¹¥È¥Ç¡¼¥¿¥Ù¡¼¥¹¤«¤éºîÀ®¤¹¤ë¤³¤È¤¬¤Ç¤­¤¿¡£
104 ¤·¤«¤·¡¢Èó¸ø¼°¤Ê¥¨¥¤¥ê¥¢¥¹¤äÉÔÌÀ¤Ê¥Û¥¹¥È¤ò°·¤¨¤ë¤è¤¦¤Ë¡¢
105 ºÇ¿·¤ËÊݤĤ¿¤á¤Î¥í¡¼¥«¥ë¤ÊÊѹ¹¤¬ÉÑÈˤËɬÍפȤµ¤ì¤¿¡£
106 NIC ¤Ï´û¤Ë hosts.txt ¤ò´ÉÍý¤·¤Æ¤¤¤Ê¤¤¤¬¡¢
107 ¤³¤ì¤ò½ñ¤¤¤Æ¤¤¤ë (2000 Ç¯º¢¤Î) »þÅÀ¤ÇÄ´¤Ù¤Æ¤ß¤ë¤È¡¢
108 WWW ¾å¤ËÎò»ËŪ¤Ê hosts.txt ¤¬Â¸ºß¤¹¤ë¡£
109 92, 94, 95 Ç¯¤Î¤â¤Î¤¬¸«¤Ä¤«¤Ã¤¿¡£
110 .SH Îã
111 .nf
112 127.0.0.1       localhost
113 192.168.1.10    foo.mydomain.org       foo
114 192.168.1.13    bar.mydomain.org       bar
115 146.82.138.7    master.debian.org      master
116 209.237.226.90  www.opensource.org
117 .fi
118 .SH ´ØÏ¢¹àÌÜ
119 .BR hostname (1),
120 .BR resolver (3),
121 .BR resolver (5),
122 .BR hostname (7),
123 .BR named (8),
124 Internet RFC\ 952
125 .\" .SH Ãø¼Ô
126 .\" ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï¡¢Debian GNU/Linux ¥·¥¹¥Æ¥à¤Î¤¿¤á¤Ë
127 .\" Manoj Srivastava <srivasta@debian.org> ¤Ë¤è¤Ã¤Æ½ñ¤«¤ì¤¿¡£