htable(1M) htable(1M)
NAME
htable - convert DoD Internet format host table
SYNOPSIS
htable [-c connected-nets] [-l local-nets] [input-file]
DESCRIPTION
The htable command converts a host table in the format
specified by RFC 952 to the format used by the network library
routines.
Files
localhosts
localnetworks
localgateways
Output
Three files are created as a result of running htable: the
hosts file, the networks file, and the gateways file.
The hosts file is used by the gethostent(3N) routines in
mapping host names to addresses.
The networks file is used by the getnetent(3N) routines
in mapping network names to numbers.
The gateways file is used by the routing daemon in
identifying ``passive'' Internet gateways; see
routed(1M) for an explanation.
USAGE
If any of the files localhosts, localnetworks, or
localgateways are present in the current directory, the file's
contents are prepended to the output file without
interpretation. This allows sites to maintain local aliases
and entries which are not normally present in the master
database.
If the gateways file is to be used, a list of networks to
which the host is directly connected is specified with the -c
option. The networks, separated by commas, may be given by
name, or the Internet-standard ``.'' (dot) notation. htable
only includes gateways which are directly connected to one of
the specified networks, or which can be reached from another
gateway on a connected network.
Copyright 1994 Novell, Inc. Page 1
htable(1M) htable(1M)
If the -l option is given with a list of networks (in the same
format as the networks specified with the -c option), these
networks will be treated as ``local,'' and information about
hosts on local networks is taken only from the localhosts
file. Entries for local hosts from the main database will be
omitted. This allows the localhosts file to completely
overrid any entries in the input file.
htable is best used in conjunction with the gettable(1M)
program which retrieves the DoD Internet host table from a
host.
REFERENCES
gethostent(3N), getnetent(3N), gettable(1M), routed(1M)
RFC 952
NOTICES
htable does not properly calculate the gateways file.
Copyright 1994 Novell, Inc. Page 2