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