1afe61c15SRodney W. Grimes.\" Copyright (c) 1983, 1991, 1993 2afe61c15SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 3afe61c15SRodney W. Grimes.\" 4afe61c15SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 5afe61c15SRodney W. Grimes.\" modification, are permitted provided that the following conditions 6afe61c15SRodney W. Grimes.\" are met: 7afe61c15SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 8afe61c15SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 9afe61c15SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 10afe61c15SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 11afe61c15SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 12afe61c15SRodney W. Grimes.\" 3. All advertising materials mentioning features or use of this software 13afe61c15SRodney W. Grimes.\" must display the following acknowledgement: 14afe61c15SRodney W. Grimes.\" This product includes software developed by the University of 15afe61c15SRodney W. Grimes.\" California, Berkeley and its contributors. 16afe61c15SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors 17afe61c15SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 18afe61c15SRodney W. Grimes.\" without specific prior written permission. 19afe61c15SRodney W. Grimes.\" 20afe61c15SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21afe61c15SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22afe61c15SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23afe61c15SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24afe61c15SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25afe61c15SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26afe61c15SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27afe61c15SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28afe61c15SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29afe61c15SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30afe61c15SRodney W. Grimes.\" SUCH DAMAGE. 31afe61c15SRodney W. Grimes.\" 32afe61c15SRodney W. Grimes.\" @(#)hosts.5 8.2 (Berkeley) 12/11/93 337f3dea24SPeter Wemm.\" $FreeBSD$ 34afe61c15SRodney W. Grimes.\" 35afe61c15SRodney W. Grimes.Dd December 11, 1993 36afe61c15SRodney W. Grimes.Dt HOSTS 5 373d45e180SRuslan Ermilov.Os 38afe61c15SRodney W. Grimes.Sh NAME 39afe61c15SRodney W. Grimes.Nm hosts 40afe61c15SRodney W. Grimes.Nd host name data base 41afe61c15SRodney W. Grimes.Sh DESCRIPTION 42afe61c15SRodney W. GrimesThe 434b66483fSRuslan Ermilov.Nm 44afe61c15SRodney W. Grimesfile contains information regarding 45afe61c15SRodney W. Grimesthe known hosts on the network. 46248aee62SJacques VidrineIt can be used in conjunction with DNS, and the NIS 47248aee62SJacques Vidrinemaps `hosts.byaddr' and `hosts.byname', as controlled by 48248aee62SJacques Vidrine.Xr nsswitch.conf 5 . 49afe61c15SRodney W. GrimesFor each host a single line should be present 50afe61c15SRodney W. Grimeswith the following information: 51afe61c15SRodney W. Grimes.Bd -unfilled -offset indent 52afe61c15SRodney W. GrimesInternet address 537b3eb001SNate Williamsofficial host name 54afe61c15SRodney W. Grimesaliases 55afe61c15SRodney W. Grimes.Ed 56afe61c15SRodney W. Grimes.Pp 57afe61c15SRodney W. GrimesItems are separated by any number of blanks and/or 585203edcdSRuslan Ermilovtab characters. 595203edcdSRuslan ErmilovA ``#'' indicates the beginning of 60afe61c15SRodney W. Grimesa comment; characters up to the end of the line are 61afe61c15SRodney W. Grimesnot interpreted by routines which search the file. 62afe61c15SRodney W. Grimes.Pp 63afe61c15SRodney W. GrimesWhen using the name server 64afe61c15SRodney W. Grimes.Xr named 8 , 654043c58eSTim Vanderhoekthis file provides a backup used when the name server 66afe61c15SRodney W. Grimesis not running. 67afe61c15SRodney W. GrimesFor the name server, it is suggested that only a few addresses 68afe61c15SRodney W. Grimesbe included in this file. 694043c58eSTim VanderhoekThese include addresses for the local interfaces that 70afe61c15SRodney W. Grimes.Xr ifconfig 8 71afe61c15SRodney W. Grimesneeds at boot time and a few machines on the local network. 72afe61c15SRodney W. Grimes.Pp 73afe61c15SRodney W. GrimesThis file may be created from the official host 74afe61c15SRodney W. Grimesdata base maintained at the Network Information Control 75afe61c15SRodney W. GrimesCenter 76afe61c15SRodney W. Grimes.Pq Tn NIC , 77afe61c15SRodney W. Grimesthough local changes may be required 78afe61c15SRodney W. Grimesto bring it up to date regarding unofficial aliases 795203edcdSRuslan Ermilovand/or unknown hosts. 805203edcdSRuslan ErmilovAs the data base maintained at 81afe61c15SRodney W. Grimes.Tn NIC 82afe61c15SRodney W. Grimesis incomplete, use of the name server is recommended for 83afe61c15SRodney W. Grimessites on the 84afe61c15SRodney W. Grimes.Tn DARPA 85afe61c15SRodney W. GrimesInternet. 86afe61c15SRodney W. Grimes.Pp 87afe61c15SRodney W. GrimesNetwork addresses are specified in the conventional 88afe61c15SRodney W. Grimes``.'' (dot) notation using the 89afe61c15SRodney W. Grimes.Xr inet_addr 3 90afe61c15SRodney W. Grimesroutine 91afe61c15SRodney W. Grimesfrom the Internet address manipulation library, 92afe61c15SRodney W. Grimes.Xr inet 3 . 93afe61c15SRodney W. GrimesHost names may contain any printable 94afe61c15SRodney W. Grimescharacter other than a field delimiter, newline, 95afe61c15SRodney W. Grimesor comment character. 96afe61c15SRodney W. Grimes.Sh FILES 97afe61c15SRodney W. Grimes.Bl -tag -width /etc/hosts -compact 98afe61c15SRodney W. Grimes.It Pa /etc/hosts 99afe61c15SRodney W. GrimesThe 1004b66483fSRuslan Ermilov.Nm 101afe61c15SRodney W. Grimesfile resides in 102afe61c15SRodney W. Grimes.Pa /etc . 103afe61c15SRodney W. Grimes.El 104afe61c15SRodney W. Grimes.Sh SEE ALSO 105afe61c15SRodney W. Grimes.Xr gethostbyname 3 , 106248aee62SJacques Vidrine.Xr nsswitch.conf 5 , 107afe61c15SRodney W. Grimes.Xr ifconfig 8 , 108afe61c15SRodney W. Grimes.Xr named 8 109afe61c15SRodney W. Grimes.Rs 110afe61c15SRodney W. Grimes.%T "Name Server Operations Guide for BIND" 111afe61c15SRodney W. Grimes.Re 112afe61c15SRodney W. Grimes.Sh HISTORY 113afe61c15SRodney W. GrimesThe 114afe61c15SRodney W. Grimes.Nm 115afe61c15SRodney W. Grimesfile format appeared in 116afe61c15SRodney W. Grimes.Bx 4.2 . 117