Commit | Line | Data |
---|---|---|
954133cd KB |
1 | .\" Copyright (c) 1983 The Regents of the University of California. |
2 | .\" All rights reserved. | |
43624042 | 3 | .\" |
954133cd KB |
4 | .\" Redistribution and use in source and binary forms are permitted |
5 | .\" provided that the above copyright notice and this paragraph are | |
6 | .\" duplicated in all such forms and that any documentation, | |
7 | .\" advertising materials, and other materials related to such | |
8 | .\" distribution and use acknowledge that the software was developed | |
9 | .\" by the University of California, Berkeley. The name of the | |
10 | .\" University may not be used to endorse or promote products derived | |
11 | .\" from this software without specific prior written permission. | |
12 | .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
13 | .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
14 | .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
15 | .\" | |
16 | .\" @(#)hosts.5 6.4 (Berkeley) %G% | |
43624042 | 17 | .\" |
8612bf3c | 18 | .TH HOSTS 5 "" |
43624042 KM |
19 | .UC 5 |
20 | .SH NAME | |
21 | hosts \- host name data base | |
22 | .SH DESCRIPTION | |
23 | The | |
24 | .I hosts | |
25 | file contains information regarding | |
df1ff6ff | 26 | the known hosts on the network. |
43624042 KM |
27 | For each host a single line should be present |
28 | with the following information: | |
29 | .HP 10 | |
30 | official host name | |
31 | .br | |
32 | .ns | |
33 | .HP 10 | |
34 | Internet address | |
35 | .br | |
36 | .ns | |
37 | .HP 10 | |
38 | aliases | |
39 | .PP | |
40 | Items are separated by any number of blanks and/or | |
41 | tab characters. A ``#'' indicates the beginning of | |
42 | a comment; characters up to the end of the line are | |
43 | not interpreted by routines which search the file. | |
df1ff6ff JB |
44 | .PP |
45 | When using the name server | |
46 | .IR named (8), | |
47 | this file provides a backup when the name server | |
48 | is not running. | |
49 | For the name server, it is suggested that only a few addresses | |
50 | be included in this file. | |
51 | These include address for the local interfaces that | |
52 | .IR ifconfig (8C) | |
53 | needs at boot time and a few machines on the local network. | |
54 | .PP | |
55 | This file may be created from the official host | |
43624042 KM |
56 | data base maintained at the Network Information Control |
57 | Center (NIC), though local changes may be required | |
58 | to bring it up to date regarding unofficial aliases | |
df1ff6ff JB |
59 | and/or unknown hosts. As the data base maintained at NIC |
60 | is incomplete, use of the name server is recommend for | |
61 | sites on the DARPA Internet. | |
43624042 KM |
62 | .PP |
63 | Network addresses are specified in the conventional | |
64 | ``.'' notation using the \fIinet_addr\fP() routine | |
65 | from the Internet address manipulation library, | |
66 | .IR inet (3N). | |
67 | Host names may contain any printable | |
68 | character other than a field delimiter, newline, | |
69 | or comment character. | |
70 | .SH FILES | |
71 | /etc/hosts | |
72 | .SH "SEE ALSO" | |
df1ff6ff JB |
73 | gethostbyname(3N), ifconfig(8C), named(8) |
74 | .br | |
75 | Name Server Operations Guide for BIND |