manual page first distributed with 4.2BSD
[unix-history] / usr / src / old / htable / htable.8
CommitLineData
4ee2fd4d
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
5.\" @(#)htable.8 5.1 (Berkeley) %G%
6.\"
7.TH HTABLE 8 "4 March 1983"
8.UC 5
9.SH NAME
10htable \- convert NIC standard format host tables
11.SH SYNOPSIS
12.B /etc/htable
13[
14.B \-c
15.I connected-nets
16] [
17.B \-l
18.I local-nets
19]
20.I file
21.SH DESCRIPTION
22.I Htable
23is used to convert host files in the format specified
24in Internet RFC 810 to the format used by the network
25library routines. Three files are created as a result
26of running
27.IR htable :
28.IR hosts ,
29.IR networks ,
30and
31.IR gateways .
32The
33.I hosts
34file is used by the
35.IR gethostent (3N)
36routines in mapping host names to addresses.
37The
38.I networks
39file is used by the
40.IR getnetent (3N)
41routines in mapping network names to numbers.
42The
43.I gateways
44file is used by the routing daemon
45in identifying ``passive'' Internet gateways;
46see
47.IR routed (8C)
48for an explanation.
49.PP
50If any of the files
51.IR localhosts ,
52.IR localnetworks ,
53or
54.I localgateways
55are present in the current directory,
56the file's contents is prepended to the
57output file.
58Of these, only the gateways file is interpreted.
59This allows sites to maintain local aliases and
60entries which are not normally present in the
61master database.
62Only one gateway to each network will be placed in the gateways file;
63a gateway listed in the localgateways file will override any in the
64input file.
65.PP
66A list of networks to which the host is directly connected is specified with the
67.B \-c
68flag.
69The networks, separated by commas,
70may be given by name or in internet-standard dot notation,
71e.g.
72.B \-c
73arpanet,128.32,local-ether-net.
74.I Htable
75only includes gateways
76which are directly connected to one of the networks specified,
77or which can be reached from another gateway on a connected net.
78.PP
79If the
80.B \-l
81option is given with a list of networks (in the same format as for
82.BR \-c ),
83these networks will be treated as ``local,''
84and information about hosts on local networks is
85taken only from the localhosts file.
86Entries for local hosts from the main database will be omitted.
87This allows the localhosts file to completely override
88any entries in the input file.
89.PP
90.I Htable
91is best used in conjunction with the
92.IR gettable (8C)
93program which retrieves the NIC database from a host.
94.SH "SEE ALSO"
95intro(3N),
96gettable(8C)