bsd man page for mkhosts

Query: mkhosts

OS: bsd

Section: 8

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

MKHOSTS(8)						      System Manager's Manual							MKHOSTS(8)

NAME
mkhosts - generate hashed host table
SYNOPSIS
/usr/sbin/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) 4.3 Berkeley Distribution May 23, 1986 MKHOSTS(8)
Related Man Pages
gettable(1m) - opensolaris
htable(1m) - opensolaris
gfrep(1) - debian
mkpasswd(8) - osf1
gettable(1m) - sunos
Similar Topics in the Unix Linux Community
Grepping for strings
MachDB 0.5.1 (Default branch)
How to check the file size in a dir
Naming file with special characters ?
Sort the filenames