BSD 4_1c_2 development
[unix-history] / usr / man / man5 / hosts.5
CommitLineData
4f44dcb1
C
1.TH HOSTS 5 "15 January 1983"
2.SH NAME
3hosts \- host name data base
4.SH DESCRIPTION
5The
6.I hosts
7file contains information regarding
8the known hosts on the DARPA Internet.
9For each host a single line should be present
10with the following information:
11.HP 10
12official host name
13.br
14.ns
15.HP 10
16Internet address
17.br
18.ns
19.HP 10
20aliases
21.PP
22Items are separated by any number of blanks and/or
23tab characters. A ``#'' indicates the beginning of
24a comment; characters up to the end of the line are
25not interpreted by routines which search the file.
26This file is normally created from the official host
27data base maintained at the Network Information Control
28Center (NIC), though local changes may be required
29to bring it up to date regarding unofficial aliases
30and/or unknown hosts.
31.PP
32Network addresses are specified in the conventional
33``.'' notation using the \fIinet_addr\fP() routine
34from the Internet address manipulation library,
35.IR inet (3).
36Host names may contain any printable
37character other than a field delimiter, newline,
38or comment character.
39.SH FILES
40/etc/hosts
41.SH "SEE ALSO"
42gethostent(3N)
43.SH BUGS
44A name server should be used instead of a static file.
45A binary indexed file format should be available for fast access.