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 | .\" | |
df1ff6ff | 5 | .\" @(#)hosts.5 6.3 (Berkeley) %G% |
43624042 | 6 | .\" |
8612bf3c | 7 | .TH HOSTS 5 "" |
43624042 KM |
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 | |
df1ff6ff | 15 | the known hosts on the network. |
43624042 KM |
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. | |
df1ff6ff JB |
33 | .PP |
34 | When using the name server | |
35 | .IR named (8), | |
36 | this file provides a backup when the name server | |
37 | is not running. | |
38 | For the name server, it is suggested that only a few addresses | |
39 | be included in this file. | |
40 | These include address for the local interfaces that | |
41 | .IR ifconfig (8C) | |
42 | needs at boot time and a few machines on the local network. | |
43 | .PP | |
44 | This file may be created from the official host | |
43624042 KM |
45 | data base maintained at the Network Information Control |
46 | Center (NIC), though local changes may be required | |
47 | to bring it up to date regarding unofficial aliases | |
df1ff6ff JB |
48 | and/or unknown hosts. As the data base maintained at NIC |
49 | is incomplete, use of the name server is recommend for | |
50 | sites on the DARPA Internet. | |
43624042 KM |
51 | .PP |
52 | Network addresses are specified in the conventional | |
53 | ``.'' notation using the \fIinet_addr\fP() routine | |
54 | from the Internet address manipulation library, | |
55 | .IR inet (3N). | |
56 | Host names may contain any printable | |
57 | character other than a field delimiter, newline, | |
58 | or comment character. | |
59 | .SH FILES | |
60 | /etc/hosts | |
61 | .SH "SEE ALSO" | |
df1ff6ff JB |
62 | gethostbyname(3N), ifconfig(8C), named(8) |
63 | .br | |
64 | Name Server Operations Guide for BIND |