Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

gethostbyname(3)

gettable(8)

hosts(5)

htable(8)

named(8)

MKHOSTS(8)                           BSD                            MKHOSTS(8)



NAME
     mkhosts - generate hashed host table

SYNOPSIS
     /etc/mkhosts [ -v ] [ hostfile ]

DESCRIPTION
     The mkhosts command is used to generate the hashed host database used by
     one version of the library routines gethostbyaddr(3N) and
     gethostbyname(3N).  It is not used if host name translation is performed
     by named(8).

     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.

OPTIONS
     -v        List each host as it is added.  The default hostfile is
               /etc/hosts.  If another file is specified, it must be in the
               format of /etc/hosts (see hosts(5)).  mkhosts will generate
               database files named hostfile.pag and hostfile.dir.

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);
     Configuring and Managing TCP/IP.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026