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