break out of arff(8) and clean up
[unix-history] / usr / src / old / mkhosts / mkhosts.8
CommitLineData
2d8a17cc
KB
1.\" Copyright (c) 1985 The Regents of the University of California.
2.\" All rights reserved.
55270cae 3.\"
f2e9c085 4.\" %sccs.include.redist.man%
2d8a17cc 5.\"
f2e9c085 6.\" @(#)mkhosts.8 6.5 (Berkeley) %G%
55270cae
KM
7.\"
8.TH MKHOSTS 8 ""
9.UC 6
10.SH NAME
56e2d6be 11mkhosts \- generate hashed host table
55270cae 12.SH SYNOPSIS
f2e9c085 13.B mkhosts
55270cae
KM
14[
15.B \-v
16]
17hostfile
18.SH DESCRIPTION
19.I Mkhosts
6a841d1b 20is used to generated the hashed host database used by one version of the
55270cae
KM
21library routines
22.B gethostbyaddr()
23and
24.BR gethostbyname() .
6a841d1b
MK
25It is not used if host name translation is performed by
26.IR named (8).
55270cae
KM
27If the
28.B \-v
29option is supplied, each host will be listed as it is added.
30The file
31.I hostfile
32is usually /etc/hosts, and in any case
33must be in the format of /etc/hosts (see hosts(5)).
34.I Mkhosts
35will generate database files named
36.I hostfile.pag
37and
38.I hostfile.dir.
39The new database is build in a set of temporary files and
40only replaces the real database if the new one is built
41without errors.
42.I Mkhosts
43will exit with a non-zero exit code if any errors are detected.
44.SH FILES
45.ta \w'hostfile.new.dir 'u
46\fIhostfile\fR.pag - real database filenames
47.br
48\fIhostfile\fR.dir
49.br
50\fIhostfile\fR.new.pag - temporary database filenames
51.br
52\fIhostfile\fR.new.dir
53.SH SEE ALSO
6a841d1b 54gethostbyname(3), gettable(8), hosts(5), htable(8), named(8)