minor cleanups for cray
[unix-history] / usr / src / old / gettable / gettable.8
CommitLineData
0d6797a3
KB
1.\" Copyright (c) 1983 The Regents of the University of California.
2.\" All rights reserved.
769112e4 3.\"
0d6797a3
KB
4.\" Redistribution and use in source and binary forms are permitted
5.\" provided that the above copyright notice and this paragraph are
6.\" duplicated in all such forms and that any documentation,
7.\" advertising materials, and other materials related to such
8.\" distribution and use acknowledge that the software was developed
9.\" by the University of California, Berkeley. The name of the
10.\" University may not be used to endorse or promote products derived
11.\" from this software without specific prior written permission.
12.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14.\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
769112e4 15.\"
0d6797a3
KB
16.\" @(#)gettable.8 6.3 (Berkeley) %G%
17.\"
18.TH GETTABLE 8 ""
769112e4
KM
19.UC 5
20.SH NAME
21gettable \- get NIC format host tables from a host
22.SH SYNOPSIS
23.B /etc/gettable
5261b095
KM
24[
25.B \-v
26]
769112e4 27.I host
5261b095 28[ outfile ]
769112e4
KM
29.SH DESCRIPTION
30.I Gettable
31is a simple program used to obtain the NIC standard
32host tables from a ``nicname'' server. The indicated
33.I host
34is queried for the tables. The tables, if retrieved,
35are placed in the file
5261b095
KM
36.I outfile
37or by default,
769112e4
KM
38.IR hosts.txt .
39.PP
5261b095
KM
40The
41.B \-v
42option will get just the version number instead of the complete host table
43and put the output in the file
44.I outfile
45or by default,
46.IR hosts.ver .
47.PP
769112e4
KM
48.I Gettable
49operates by opening a TCP connection to the port indicated
50in the service specification for ``nicname''. A request
51is then made for ``ALL'' names and the resultant information
52is placed in the output file.
53.PP
54.I Gettable
55is best used in conjunction with the
56.IR htable (8)
57program which converts the NIC standard file format to
58that used by the network library lookup routines.
59.SH "SEE ALSO"
0d6797a3 60intro(3), htable(8), named(8)
769112e4 61.SH BUGS
c4089c4c
MK
62If the name-domain system provided network name mapping well as host
63name mapping,
64.I gettable
65would no longer be needed.