1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
|
.\" Hey, Emacs! This is an -*- nroff -*- source file.
.\" Copyright (c) 2000 Manoj Srivastava <srivasta@debian.org>
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
.\" USA.
.\"
.\" Minor polishing, aeb
.\" Modified, 2002-06-16, Mike Coleman
.\"
.\" Japanese Version Copyright (c) 2000-2002 Yuichi SATO
.\" all rights reserved.
.\" Translated Sun Sep 24 05:53:22 JST 2000
.\" by Yuichi SATO <ysato444@yahoo.co.jp>
.\" Updated & Modified Sat Aug 31 05:49:00 JST 2002 by Yuichi SATO
.\"
.TH HOSTS 5 2002-06-16 "Linux" "Linux Programmer's Manual"
.SH ̾
hosts \- ۥ̾Ūʥååץơ֥
.SH
.B /etc/hosts
.SH
Υޥ˥奢ڡϡ
.I /etc/hosts
եΥեޥåȤˤĤƵҤƤ롣
Υեϴñʥƥȥեǡ1 Ԥ 1 Ĥ IP ɥ쥹ꡢ
IP ɥ쥹ȥۥ̾ϢŤƤ롣
ƥۥȤˤĤơΤ褦ʾ 1 ԤͿ롣
.RS
.PP
IPɥ쥹 ʥۥ̾ [ꥢ...]
.RE
.PP
ȥΥեɤϡޤϥ (ʣǤ) Ƕڤ롣
"#" ʸޤǤΥƥȤϥȤȤ̵뤵롣
ۥ̾ϱѿޥʥ ("\-")ԥꥪ (".") ޤळȤǤ롣
ۥ̾ϱʸ (alphabetic character) ǻϤޤäơ
ѿ (alphanumeric characte) ǽʤФʤʤ
ꥢϥץǤꡢ̾ѹ̤Υڥ롢
ûۥ̾Ū˻Ȥۥ̾ (㤨
.IR localhost )
ʤɤΤѰդƤ롣
.PP
Berkeley Internet Name Domain (BIND) Фϡ
UNIX ƥΤΥͥåȥ͡ॵФƤ롣
ϡ
.I /etc/hosts
եۥ̾ååפĥ֤ꤹΤǤ롣
ˤƥۥȤ
.I /etc/hosts
ǿĴݤʤƤ褯ʤ롣
.PP
ۥȥơ֥ϡDNS ˤȤä줿ˤ⤫餺
ߤΥƥˤƼΤ褦ӤǹȤƤ롣
.TP
.B ֡Ȼ
ʬΥƥϡͥåȥˤƽפʥۥȤ
̾ȥɥ쥹ޤޤ줿ʥۥȥơ֥äƤ롣
ϡƥΥ֡Ȼʤɤ DNS ƯƤʤȤΩġ
.TP
.B NIS
NIS ѤƤ륵Ȥϡۥȥơ֥
NIS ۥȥǡ١ϤȤѤ롣
NIS DNS ȶ˻ѤǤˤ⤫餺
ʬ NIS Ȥ̤ˡ
ƤΥۥȤΥȥĥۥȥơ֥
ХååפȤƻѤƤ롣
.TP
.B 䤵줿Ρ
ͥåȥ䤵줿˾ʥȤϡ
DNS ˥ۥȥơ֥ѤƤ롣
ˤѹ줺
ͥåȥͥåȤ³Ƥʤ硢
DNS ˤۤɤϤʤ
.SH ե
.I /etc/hosts
.SH
Υեؤѹ̾魯ȿǤ롣âץꥱ
ˤեƤå夵ƤϤθ¤ǤϤʤ
.SS Ūʷа
ۥȥơ֥ΥեޥåȤϤθѹƤ뤬
ΥեޥåȤ RFC\ 952 ˤϵܤƤ롣
DNS оۥȥơ֥ϡФФΥͥåȤˤ
ۥ̾ͣˡǤä
ºݡΥե Network Information Control Center (NIC) ˤä
ۥȥǡ١뤳ȤǤ
ʥꥢʥۥȤ褦ˡ
ǿݤĤΥѹˤɬפȤ줿
NIC ϴ hosts.txt Ƥʤ
Ƥ (2000 ǯ) Ĵ٤Ƥߤȡ
WWW Ū hosts.txt ¸ߤ롣
92, 94, 95 ǯΤΤĤä
.SH
.nf
127.0.0.1 localhost
192.168.1.10 foo.mydomain.org foo
192.168.1.13 bar.mydomain.org bar
146.82.138.7 master.debian.org master
209.237.226.90 www.opensource.org
.fi
.SH Ϣ
.BR hostname (1),
.BR resolver (3),
.BR resolver (5),
.BR hostname (7),
.BR named (8),
Internet RFC\ 952
.\" .SH
.\" Υޥ˥奢ڡϡDebian GNU/Linux ƥΤ
.\" Manoj Srivastava <srivasta@debian.org> ˤäƽ줿
|