MKHOSTS(8) UNIX Programmer's Manual MKHOSTS(8) NAME mkhosts - generate hashed host table SYNOPSIS /usr/sbin/mkhosts [ -v ] hostfile DESCRIPTION _M_k_h_o_s_t_s 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 _n_a_m_e_d(8). If the -v 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. FILES _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 SEE ALSO gethostbyname(3), gettable(8), hosts(5), htable(8), named(8) Printed 11/26/99 May 23, 1986 1