Copyright (c) 1985 The Regents of the University of California.
All rights reserved.
Redistribution and use in source and binary forms are permitted
provided that the above copyright notice and this paragraph are
duplicated in all such forms and that any documentation,
advertising materials, and other materials related to such
distribution and use acknowledge that the software was developed
by the University of California, Berkeley. The name of the
University may not be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
@(#)mkhosts.8 6.4 (Berkeley) 10/19/88
All rights reserved.
Redistribution and use in source and binary forms are permitted
provided that the above copyright notice and this paragraph are
duplicated in all such forms and that any documentation,
advertising materials, and other materials related to such
distribution and use acknowledge that the software was developed
by the University of California, Berkeley. The name of the
University may not be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
@(#)mkhosts.8 6.4 (Berkeley) 10/19/88
MKHOSTS 8 ""
C 6 NAME
mkhosts - generate hashed host table
SYNOPSIS
/etc/mkhosts [
-v ]
hostfile
DESCRIPTION
Mkhosts is used to generated the hashed host database used by one version of the
library routines
gethostbyaddr() and
gethostbyname() . It is not used if host name translation is performed by
named (8). If the
-v option is supplied, each host will be listed as it is added.
The file
hostfile is usually /etc/hosts, and in any case
must be in the format of /etc/hosts (see hosts(5)).
Mkhosts will generate database files named
hostfile.pag and
hostfile.dir. The new database is build in a set of temporary files and
only replaces the real database if the new one is built
without errors.
Mkhosts will exit with a non-zero exit code if any errors are detected.
FILES
hostfile.pag - real database filenames
hostfile.dir
hostfile.new.pag - temporary database filenames
hostfile.new.dir
SEE ALSO
gethostbyname(3), gettable(8), hosts(5), htable(8), named(8)