1*47469Scael.\" Copyright (c) 1983, 1991 The Regents of the University of California. 235612Sbostic.\" All rights reserved. 318967Smckusick.\" 443823Strent.\" %sccs.include.redist.man% 518967Smckusick.\" 6*47469Scael.\" @(#)gettable.8 6.5 (Berkeley) 03/16/91 735612Sbostic.\" 8*47469Scael.Dd 9*47469Scael.Dt GETTABLE 8 10*47469Scael.Os BSD 4.2 11*47469Scael.Sh NAME 12*47469Scael.Nm gettable 13*47469Scael.Nd get 14*47469Scael.Tn NIC 15*47469Scaelformat host tables from a host 16*47469Scael.Sh SYNOPSIS 17*47469Scael.Nm gettable 18*47469Scael.Op Fl v 19*47469Scael.Ar host 20*47469Scael.Op Ar outfile 21*47469Scael.Sh DESCRIPTION 22*47469Scael.Nm Gettable 23*47469Scaelis a simple program used to obtain the 24*47469Scael.Tn NIC 25*47469Scaelstandard 26*47469Scaelhost tables from a 27*47469Scael.Dq nicname 28*47469Scaelserver. The indicated 29*47469Scael.Ar host 3018967Smckusickis queried for the tables. The tables, if retrieved, 3118967Smckusickare placed in the file 32*47469Scael.Ar outfile 3318968Smckusickor by default, 34*47469Scael.Pa hosts.txt . 35*47469Scael.Pp 36*47469ScaelAvailable option: 37*47469Scael.Bl -tag -width Ds 38*47469Scael.It Fl v 39*47469ScaelGet just the version number instead of the complete host table 4018968Smckusickand put the output in the file 41*47469Scael.Ar outfile 4218968Smckusickor by default, 43*47469Scael.Pa hosts.ver . 44*47469Scael.El 45*47469Scael.Pp 46*47469Scael.Nm Gettable 47*47469Scaeloperates by opening a 48*47469Scael.Tn TCP 49*47469Scaelconnection to the port indicated 5018967Smckusickin the service specification for ``nicname''. A request 51*47469Scaelis then made for 52*47469Scael.Dq ALL 53*47469Scaelnames and the resultant information 5418967Smckusickis placed in the output file. 55*47469Scael.Pp 56*47469Scael.Nm Gettable 5718967Smckusickis best used in conjunction with the 58*47469Scael.Xr htable 8 59*47469Scaelprogram which converts the 60*47469Scael.Tn NIC 61*47469Scaelstandard file format to 6218967Smckusickthat used by the network library lookup routines. 63*47469Scael.Sh SEE ALSO 64*47469Scael.Xr intro 3 , 65*47469Scael.Xr htable 8 , 66*47469Scael.Xr named 8 67*47469Scael.Sh BUGS 6828556SkarelsIf the name-domain system provided network name mapping well as host 6928556Skarelsname mapping, 70*47469Scael.Nm gettable 7128556Skarelswould no longer be needed. 72*47469Scael.Sh HISTORY 73*47469ScaelThe 74*47469Scael.Nm 75*47469Scaelcommand appeared in 76*47469Scael.Bx 4.2 . 77