4.3BSD-Reno/share/man/cat8/mkhosts.0
MKHOSTS(8) 1990 MKHOSTS(8)
NNAAMMEE
mkhosts - generate hashed host table
SSYYNNOOPPSSIISS
mmkkhhoossttss [ --vv ] hostfile
DDEESSCCRRIIPPTTIIOONN
_M_k_h_o_s_t_s is used to generated the hashed host database used
by one version of the library routines ggeetthhoossttbbyyaaddddrr(()) and
ggeetthhoossttbbyynnaammee(()). It is not used if host name translation is
performed by _n_a_m_e_d(8). If the --vv option is supplied, each
host will be listed as it is added. The file _h_o_s_t_f_i_l_e is
usually /etc/hosts, and in any case must be in the format of
/etc/hosts (see hosts(5)). _M_k_h_o_s_t_s will generate database
files named _h_o_s_t_f_i_l_e._p_a_g and _h_o_s_t_f_i_l_e._d_i_r. 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.
_M_k_h_o_s_t_s will exit with a non-zero exit code if any errors
are detected.
FFIILLEESS
_h_o_s_t_f_i_l_e.pag - real database filenames
_h_o_s_t_f_i_l_e.dir
_h_o_s_t_f_i_l_e.new.pag - temporary database filenames
_h_o_s_t_f_i_l_e.new.dir
SSEEEE AALLSSOO
gethostbyname(3), gettable(8), hosts(5), htable(8), named(8)
Printed 7/27/90 June 1