clean up awk syntax
[unix-history] / usr / src / old / gettable / gettable.8
CommitLineData
769112e4
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.\"
c4089c4c 5.\" @(#)gettable.8 6.2 (Berkeley) %G%
769112e4 6.\"
5261b095 7.TH GETTABLE 8C ""
769112e4
KM
8.UC 5
9.SH NAME
10gettable \- get NIC format host tables from a host
11.SH SYNOPSIS
12.B /etc/gettable
5261b095
KM
13[
14.B \-v
15]
769112e4 16.I host
5261b095 17[ outfile ]
769112e4
KM
18.SH DESCRIPTION
19.I Gettable
20is a simple program used to obtain the NIC standard
21host tables from a ``nicname'' server. The indicated
22.I host
23is queried for the tables. The tables, if retrieved,
24are placed in the file
5261b095
KM
25.I outfile
26or by default,
769112e4
KM
27.IR hosts.txt .
28.PP
5261b095
KM
29The
30.B \-v
31option will get just the version number instead of the complete host table
32and put the output in the file
33.I outfile
34or by default,
35.IR hosts.ver .
36.PP
769112e4
KM
37.I Gettable
38operates by opening a TCP connection to the port indicated
39in the service specification for ``nicname''. A request
40is then made for ``ALL'' names and the resultant information
41is placed in the output file.
42.PP
43.I Gettable
44is best used in conjunction with the
45.IR htable (8)
46program which converts the NIC standard file format to
47that used by the network library lookup routines.
48.SH "SEE ALSO"
49intro(3N),
c4089c4c
MK
50htable(8),
51named(8)
769112e4 52.SH BUGS
c4089c4c
MK
53If the name-domain system provided network name mapping well as host
54name mapping,
55.I gettable
56would no longer be needed.