Commit | Line | Data |
---|---|---|
954133cd KB |
1 | .\" Copyright (c) 1983 The Regents of the University of California. |
2 | .\" All rights reserved. | |
43624042 | 3 | .\" |
91cff1e1 | 4 | .\" %sccs.include.redist.man% |
954133cd | 5 | .\" |
91cff1e1 | 6 | .\" @(#)hosts.5 6.5 (Berkeley) %G% |
43624042 | 7 | .\" |
8612bf3c | 8 | .TH HOSTS 5 "" |
43624042 KM |
9 | .UC 5 |
10 | .SH NAME | |
11 | hosts \- host name data base | |
12 | .SH DESCRIPTION | |
13 | The | |
14 | .I hosts | |
15 | file contains information regarding | |
df1ff6ff | 16 | the known hosts on the network. |
43624042 KM |
17 | For each host a single line should be present |
18 | with the following information: | |
19 | .HP 10 | |
20 | official host name | |
21 | .br | |
22 | .ns | |
23 | .HP 10 | |
24 | Internet address | |
25 | .br | |
26 | .ns | |
27 | .HP 10 | |
28 | aliases | |
29 | .PP | |
30 | Items are separated by any number of blanks and/or | |
31 | tab characters. A ``#'' indicates the beginning of | |
32 | a comment; characters up to the end of the line are | |
33 | not interpreted by routines which search the file. | |
df1ff6ff JB |
34 | .PP |
35 | When using the name server | |
36 | .IR named (8), | |
37 | this file provides a backup when the name server | |
38 | is not running. | |
39 | For the name server, it is suggested that only a few addresses | |
40 | be included in this file. | |
41 | These include address for the local interfaces that | |
42 | .IR ifconfig (8C) | |
43 | needs at boot time and a few machines on the local network. | |
44 | .PP | |
45 | This file may be created from the official host | |
43624042 KM |
46 | data base maintained at the Network Information Control |
47 | Center (NIC), though local changes may be required | |
48 | to bring it up to date regarding unofficial aliases | |
df1ff6ff JB |
49 | and/or unknown hosts. As the data base maintained at NIC |
50 | is incomplete, use of the name server is recommend for | |
51 | sites on the DARPA Internet. | |
43624042 KM |
52 | .PP |
53 | Network addresses are specified in the conventional | |
54 | ``.'' notation using the \fIinet_addr\fP() routine | |
55 | from the Internet address manipulation library, | |
56 | .IR inet (3N). | |
57 | Host names may contain any printable | |
58 | character other than a field delimiter, newline, | |
59 | or comment character. | |
60 | .SH FILES | |
61 | /etc/hosts | |
62 | .SH "SEE ALSO" | |
df1ff6ff JB |
63 | gethostbyname(3N), ifconfig(8C), named(8) |
64 | .br | |
65 | Name Server Operations Guide for BIND |