Commit | Line | Data |
---|---|---|
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 | 11 | mkhosts \- generate hashed host table |
55270cae | 12 | .SH SYNOPSIS |
f2e9c085 | 13 | .B mkhosts |
55270cae KM |
14 | [ |
15 | .B \-v | |
16 | ] | |
17 | hostfile | |
18 | .SH DESCRIPTION | |
19 | .I Mkhosts | |
6a841d1b | 20 | is used to generated the hashed host database used by one version of the |
55270cae KM |
21 | library routines |
22 | .B gethostbyaddr() | |
23 | and | |
24 | .BR gethostbyname() . | |
6a841d1b MK |
25 | It is not used if host name translation is performed by |
26 | .IR named (8). | |
55270cae KM |
27 | If the |
28 | .B \-v | |
29 | option is supplied, each host will be listed as it is added. | |
30 | The file | |
31 | .I hostfile | |
32 | is usually /etc/hosts, and in any case | |
33 | must be in the format of /etc/hosts (see hosts(5)). | |
34 | .I Mkhosts | |
35 | will generate database files named | |
36 | .I hostfile.pag | |
37 | and | |
38 | .I hostfile.dir. | |
39 | The new database is build in a set of temporary files and | |
40 | only replaces the real database if the new one is built | |
41 | without errors. | |
42 | .I Mkhosts | |
43 | will 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 | 54 | gethostbyname(3), gettable(8), hosts(5), htable(8), named(8) |