b5357fc035
Submitted by: metal Reviewed by: Watanabe Kazuhiro <CQG00620@nifty.ne.jp>
107 lines
3.7 KiB
Groff
107 lines
3.7 KiB
Groff
.\" Copyright (c) 1983, 1991, 1993
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
.\" must display the following acknowledgement:
|
|
.\" This product includes software developed by the University of
|
|
.\" California, Berkeley and its contributors.
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
.\" may be used to endorse or promote products derived from this software
|
|
.\" without specific prior written permission.
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
.\" SUCH DAMAGE.
|
|
.\"
|
|
.\" @(#)hosts.5 8.2 (Berkeley) 12/11/93
|
|
.\" %FreeBSD: src/share/man/man5/hosts.5,v 1.10 2004/07/03 18:29:22 ru Exp %
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.Dd December 11, 1993
|
|
.Dt HOSTS 5
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm hosts
|
|
.Nd ¥Û¥¹¥È̾¥Ç¡¼¥¿¥Ù¡¼¥¹
|
|
.Sh ²òÀâ
|
|
.Nm
|
|
¥Õ¥¡¥¤¥ë¤Ï¥Í¥Ã¥È¥ï¡¼¥¯¾å¤Î´ûÃΤΥۥ¹¥È¤Ë´Ø¤¹¤ë¾ðÊó¤òÊÝ»ý¤·¤Þ¤¹¡£
|
|
¤³¤Î¥Õ¥¡¥¤¥ë¤Ï DNS ¤È NIS ¥Þ¥Ã¥× `hosts.byaddr' ¤ª¤è¤Ó `hosts.byname'
|
|
¤ÈÁȤ߹ç¤ï¤»¤Æ»ÈÍѲÄǽ¤Ç¤¹¡£
|
|
.Xr nsswitch.conf 5
|
|
¤ÇÀ©¸æ¤·¤Þ¤¹¡£
|
|
³Æ¥Û¥¹¥È¤ËÂФ·¤Æ¡¢1¤Ä¤Î¹Ô¤Ë°Ê²¼¤Î¾ðÊó¤òÍ¿¤¨¤Þ¤¹¡£
|
|
.Bd -unfilled -offset indent
|
|
¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥¢¥É¥ì¥¹
|
|
Àµ¼°¤Ê¥Û¥¹¥È̾
|
|
ÊÌ̾
|
|
.Ed
|
|
.Pp
|
|
³Æ¹àÌܤÏǤ°Õ¤Î¿ô¤Î¶õÇò¤ä¥¿¥Öʸ»ú¤Ç¶èÀÚ¤é¤ì¤Þ¤¹¡£
|
|
``#'' ¤Ï¥³¥á¥ó¥È¤Î³«»Ï¤òɽ¤·¡¢¤³¤ì°Ê¹ß¤Î¹ÔËö¤Þ¤Ç¤Îʸ»ú¤Ï¤³¤Î
|
|
¥Õ¥¡¥¤¥ë¤ò¸¡º÷¤¹¤ë¥ë¡¼¥Á¥ó¤Ë¤è¤Ã¤Æ²ò¼á¤µ¤ì¤Þ¤»¤ó¡£
|
|
.Pp
|
|
¥Í¡¼¥à¥µ¡¼¥Ð
|
|
.Xr named 8
|
|
»ÈÍÑ»þ¤Ë¤Ï¡¢¤³¤Î¥Õ¥¡¥¤¥ë¤Ï¥Í¡¼¥à¥µ¡¼¥Ð¤¬Æ°ºî¤·¤Æ¤¤¤Ê¤¤»þ¤ÎͽÈ÷¤È¤·¤Æ
|
|
µ¡Ç½¤·¤Þ¤¹¡£
|
|
¥Í¡¼¥à¥µ¡¼¥Ð¤Î¤¿¤á¤Ë¡¢¤´¤¯¾¯¿ô¤Î¥¢¥É¥ì¥¹¤¬¤³¤Î¥Õ¥¡¥¤¥ë¤Ë´Þ¤Þ¤ì¤Æ
|
|
¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
|
|
¤³¤ì¤é¤Ï¥Ö¡¼¥È»þ¤Ë
|
|
.Xr ifconfig 8
|
|
¤¬É¬ÍפȤ¹¤ë¥í¡¼¥«¥ë¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Î¥¢¥É¥ì¥¹¡¢¤ª¤è¤Ó¥í¡¼¥«¥ë¥Í¥Ã¥È¥ï¡¼¥¯
|
|
¾å¤Î¾¯¿ô¤Î¥Þ¥·¥ó¤ò´Þ¤ß¤Þ¤¹¡£
|
|
.Pp
|
|
¤³¤Î¥Õ¥¡¥¤¥ë¤Ï Network Information Control Center
|
|
.Pq Tn NIC
|
|
¤ÇÊݼ餵¤ì¤¿Àµ¼°¤Ê¥Û¥¹¥È¥Ç¡¼¥¿¥Ù¡¼¥¹¤«¤éºîÀ®¤µ¤ì¤Þ¤¹¤¬¡¢Èó¸ø¼°¤ÊÊÌ̾¤ä
|
|
̤ÃΤΥۥ¹¥È¤Ë´Ø¤·¤Æ¤Ï¡¢¥í¡¼¥«¥ë¤Ç¤ÎÊѹ¹¤òºÇ¿·¤ËÊݤÄɬÍפ¬¤¢¤ê¤Þ¤¹¡£
|
|
.Tn NIC
|
|
¤ÇÊݼ餵¤ì¤¿¥Ç¡¼¥¿¥Ù¡¼¥¹¤ÏÉÔ´°Á´¤Ê¤Î¤Ç¡¢
|
|
.Tn DARPA
|
|
¥¤¥ó¥¿¡¼¥Í¥Ã¥È¾å¤Î¥µ¥¤¥È¤Ç¤Ï¥Í¡¼¥à¥µ¡¼¥Ð¤Î»ÈÍѤ¬¿ä¾©¤µ¤ì¤Þ¤¹¡£
|
|
.Pp
|
|
¥Í¥Ã¥È¥ï¡¼¥¯¥¢¥É¥ì¥¹¤Ï¡¢¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥¢¥É¥ì¥¹Áàºî¥é¥¤¥Ö¥é¥ê
|
|
.Xr inet 3
|
|
¤Î
|
|
.Xr inet_addr 3
|
|
¥ë¡¼¥Á¥ó¤òÍѤ¤¤¿ÅÁÅýŪ¤Ê ``.'' (¥É¥Ã¥È) ɽµ¤Ç»ØÄꤵ¤ì¤Þ¤¹¡£
|
|
¥Û¥¹¥È̾¤Ï¡¢¥Õ¥£¡¼¥ë¥É¶èÀÚ¤êʸ»ú¡¢²þ¹Ô¡¢¤ª¤è¤Ó¥³¥á¥ó¥Èʸ»ú
|
|
°Ê³°¤Î¤¢¤é¤æ¤ë°õ»ú²Äǽʸ»ú¤ò´Þ¤à¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
|
|
.Sh ´ØÏ¢¥Õ¥¡¥¤¥ë
|
|
.Bl -tag -width /etc/hosts -compact
|
|
.It Pa /etc/hosts
|
|
.Nm
|
|
¥Õ¥¡¥¤¥ë¤Ï
|
|
.Pa /etc
|
|
¤Ë¸ºß¤·¤Þ¤¹¡£
|
|
.El
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr gethostbyname 3 ,
|
|
.Xr nsswitch.conf 5 ,
|
|
.Xr ifconfig 8 ,
|
|
.Xr named 8
|
|
.Rs
|
|
.%T "Name Server Operations Guide for BIND"
|
|
.Re
|
|
.Sh Îò»Ë
|
|
.Nm
|
|
¥Õ¥¡¥¤¥ë¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï
|
|
.Bx 4.2
|
|
¤«¤éÅо줷¤Þ¤·¤¿¡£
|