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