'\"macro stdmacro
.if n .pH g1a.gettable @(#)gettable	40.5 of 10/10/89
.\" Copyright 1989 AT&T
.nr X
.if \nX=0 .ds x} gettable 1M "TCP/IP" "\&"
.if \nX=1 .ds x} gettable 1M "TCP/IP"
.if \nX=2 .ds x} gettable 1M "" "\&"
.if \nX=3 .ds x} gettable "" "" "\&"
.TH \*(x}
.SH NAME
\f4gettable\f1 \- get DoD Internet format host table from a host
.SH SYNOPSIS
\f4gettable\f1
.I host
.SH DESCRIPTION
\f4gettable\f1
is a simple program used to obtain the DoD Internet
host table from a \(lqhostname\(rq server.  The indicated
.I host
is queried for the table.  The table, if retrieved,
is placed in the file
\f4hosts.txt\f1.
.LP
\f4gettable\f1
operates by opening a
.SM TCP
connection to the port indicated
in the service specification for \(lqhostname\(rq.  A request
is then made for all names and the resultant information
is placed in the output file.
.LP
\f4gettable\f1
is best used in conjunction with the
\f4htable\f1(1M)
program which converts the DoD Internet host table format to
that used by the network library lookup routines.
.SH "SEE ALSO"
\f4htable\f1(1M)
.LP
Harrenstien, Ken, Mary Stahl, and Elizabeth Feinler,
.I
.SM HOSTNAME
.I Server,
.SM RFC
953,
Network Information Center,
.SM SRI
International, Menlo Park, Calif.,
October 1985.
.SH NOTES
Should allow requests for only part of the database.
