date and time created 88/10/22 15:57:12 by bostic
[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.\"
2d8a17cc
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 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15.\"
16.\" @(#)mkhosts.8 6.4 (Berkeley) %G%
55270cae
KM
17.\"
18.TH MKHOSTS 8 ""
19.UC 6
20.SH NAME
56e2d6be 21mkhosts \- generate hashed host table
55270cae
KM
22.SH SYNOPSIS
23.B /etc/mkhosts
24[
25.B \-v
26]
27hostfile
28.SH DESCRIPTION
29.I Mkhosts
6a841d1b 30is used to generated the hashed host database used by one version of the
55270cae
KM
31library routines
32.B gethostbyaddr()
33and
34.BR gethostbyname() .
6a841d1b
MK
35It is not used if host name translation is performed by
36.IR named (8).
55270cae
KM
37If the
38.B \-v
39option is supplied, each host will be listed as it is added.
40The file
41.I hostfile
42is usually /etc/hosts, and in any case
43must be in the format of /etc/hosts (see hosts(5)).
44.I Mkhosts
45will generate database files named
46.I hostfile.pag
47and
48.I hostfile.dir.
49The new database is build in a set of temporary files and
50only replaces the real database if the new one is built
51without errors.
52.I Mkhosts
53will exit with a non-zero exit code if any errors are detected.
54.SH FILES
55.ta \w'hostfile.new.dir 'u
56\fIhostfile\fR.pag - real database filenames
57.br
58\fIhostfile\fR.dir
59.br
60\fIhostfile\fR.new.pag - temporary database filenames
61.br
62\fIhostfile\fR.new.dir
63.SH SEE ALSO
6a841d1b 64gethostbyname(3), gettable(8), hosts(5), htable(8), named(8)