|
|
1.1 root 1: .\" Copyright (c) 1985 The Regents of the University of California.
2: .\" All rights reserved.
3: .\"
4: .\" Redistribution and use in source and binary forms are permitted provided
5: .\" that: (1) source distributions retain this entire copyright notice and
6: .\" comment, and (2) distributions including binaries display the following
7: .\" acknowledgement: ``This product includes software developed by the
8: .\" University of California, Berkeley and its contributors'' in the
9: .\" documentation or other materials provided with the distribution and in
10: .\" all advertising materials mentioning features or use of this software.
11: .\" Neither the name of the University nor the names of its contributors may
12: .\" be used to endorse or promote products derived from this software without
13: .\" specific prior written permission.
14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
15: .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
16: .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17: .\"
18: .\" @(#)mkhosts.8 6.5 (Berkeley) 6/24/90
19: .\"
20: .TH MKHOSTS 8 "June 24, 1990"
21: .UC 6
22: .SH NAME
23: mkhosts \- generate hashed host table
24: .SH SYNOPSIS
25: .B mkhosts
26: [
27: .B \-v
28: ]
29: hostfile
30: .SH DESCRIPTION
31: .I Mkhosts
32: is used to generated the hashed host database used by one version of the
33: library routines
34: .B gethostbyaddr()
35: and
36: .BR gethostbyname() .
37: It is not used if host name translation is performed by
38: .IR named (8).
39: If the
40: .B \-v
41: option is supplied, each host will be listed as it is added.
42: The file
43: .I hostfile
44: is usually /etc/hosts, and in any case
45: must be in the format of /etc/hosts (see hosts(5)).
46: .I Mkhosts
47: will generate database files named
48: .I hostfile.pag
49: and
50: .I hostfile.dir.
51: The new database is build in a set of temporary files and
52: only replaces the real database if the new one is built
53: without errors.
54: .I Mkhosts
55: will exit with a non-zero exit code if any errors are detected.
56: .SH FILES
57: .ta \w'hostfile.new.dir 'u
58: \fIhostfile\fR.pag - real database filenames
59: .br
60: \fIhostfile\fR.dir
61: .br
62: \fIhostfile\fR.new.pag - temporary database filenames
63: .br
64: \fIhostfile\fR.new.dir
65: .SH SEE ALSO
66: gethostbyname(3), gettable(8), hosts(5), htable(8), named(8)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.