Commit | Line | Data |
---|---|---|
43624042 KM |
1 | .\" Copyright (c) 1983 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
5 | .\" @(#)hosts.5 5.1 (Berkeley) %G% | |
6 | .\" | |
7 | .TH HOSTS 5 "15 January 1983" | |
8 | .UC 5 | |
9 | .SH NAME | |
10 | hosts \- host name data base | |
11 | .SH DESCRIPTION | |
12 | The | |
13 | .I hosts | |
14 | file contains information regarding | |
15 | the known hosts on the DARPA Internet. | |
16 | For each host a single line should be present | |
17 | with the following information: | |
18 | .HP 10 | |
19 | official host name | |
20 | .br | |
21 | .ns | |
22 | .HP 10 | |
23 | Internet address | |
24 | .br | |
25 | .ns | |
26 | .HP 10 | |
27 | aliases | |
28 | .PP | |
29 | Items are separated by any number of blanks and/or | |
30 | tab characters. A ``#'' indicates the beginning of | |
31 | a comment; characters up to the end of the line are | |
32 | not interpreted by routines which search the file. | |
33 | This file is normally created from the official host | |
34 | data base maintained at the Network Information Control | |
35 | Center (NIC), though local changes may be required | |
36 | to bring it up to date regarding unofficial aliases | |
37 | and/or unknown hosts. | |
38 | .PP | |
39 | Network addresses are specified in the conventional | |
40 | ``.'' notation using the \fIinet_addr\fP() routine | |
41 | from the Internet address manipulation library, | |
42 | .IR inet (3N). | |
43 | Host names may contain any printable | |
44 | character other than a field delimiter, newline, | |
45 | or comment character. | |
46 | .SH FILES | |
47 | /etc/hosts | |
48 | .SH "SEE ALSO" | |
49 | gethostent(3N) | |
50 | .SH BUGS | |
51 | A name server should be used instead of a static file. | |
52 | A binary indexed file format should be available for fast access. |