Commit | Line | Data |
---|---|---|
15637ed4 RG |
1 | .\" Copyright (c) 1983, 1991 The Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
4 | .\" Redistribution and use in source and binary forms, with or without | |
5 | .\" modification, are permitted provided that the following conditions | |
6 | .\" are met: | |
7 | .\" 1. Redistributions of source code must retain the above copyright | |
8 | .\" notice, this list of conditions and the following disclaimer. | |
9 | .\" 2. Redistributions in binary form must reproduce the above copyright | |
10 | .\" notice, this list of conditions and the following disclaimer in the | |
11 | .\" documentation and/or other materials provided with the distribution. | |
12 | .\" 3. All advertising materials mentioning features or use of this software | |
13 | .\" must display the following acknowledgement: | |
14 | .\" This product includes software developed by the University of | |
15 | .\" California, Berkeley and its contributors. | |
16 | .\" 4. Neither the name of the University nor the names of its contributors | |
17 | .\" may be used to endorse or promote products derived from this software | |
18 | .\" without specific prior written permission. | |
19 | .\" | |
20 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | |
21 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
22 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
23 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | |
24 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
25 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
26 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
27 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
28 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
30 | .\" SUCH DAMAGE. | |
31 | .\" | |
32 | .\" @(#)gettable.8 6.5 (Berkeley) 3/16/91 | |
33 | .\" | |
34 | .Dd March 16, 1991 | |
35 | .Dt GETTABLE 8 | |
36 | .Os BSD 4.2 | |
37 | .Sh NAME | |
38 | .Nm gettable | |
39 | .Nd get | |
40 | .Tn NIC | |
41 | format host tables from a host | |
42 | .Sh SYNOPSIS | |
43 | .Nm gettable | |
44 | .Op Fl v | |
45 | .Ar host | |
46 | .Op Ar outfile | |
47 | .Sh DESCRIPTION | |
48 | .Nm Gettable | |
49 | is a simple program used to obtain the | |
50 | .Tn NIC | |
51 | standard | |
52 | host tables from a | |
53 | .Dq nicname | |
54 | server. The indicated | |
55 | .Ar host | |
56 | is queried for the tables. The tables, if retrieved, | |
57 | are placed in the file | |
58 | .Ar outfile | |
59 | or by default, | |
60 | .Pa hosts.txt . | |
61 | .Pp | |
62 | Available option: | |
63 | .Bl -tag -width Ds | |
64 | .It Fl v | |
65 | Get just the version number instead of the complete host table | |
66 | and put the output in the file | |
67 | .Ar outfile | |
68 | or by default, | |
69 | .Pa hosts.ver . | |
70 | .El | |
71 | .Pp | |
72 | .Nm Gettable | |
73 | operates by opening a | |
74 | .Tn TCP | |
75 | connection to the port indicated | |
76 | in the service specification for ``nicname''. A request | |
77 | is then made for | |
78 | .Dq ALL | |
79 | names and the resultant information | |
80 | is placed in the output file. | |
81 | .Pp | |
82 | .Nm Gettable | |
83 | is best used in conjunction with the | |
84 | .Xr htable 8 | |
85 | program which converts the | |
86 | .Tn NIC | |
87 | standard file format to | |
88 | that used by the network library lookup routines. | |
89 | .Sh SEE ALSO | |
90 | .Xr intro 3 , | |
91 | .Xr htable 8 , | |
92 | .Xr named 8 | |
93 | .Sh BUGS | |
94 | If the name-domain system provided network name mapping well as host | |
95 | name mapping, | |
96 | .Nm gettable | |
97 | would no longer be needed. | |
98 | .Sh HISTORY | |
99 | The | |
100 | .Nm | |
101 | command appeared in | |
102 | .Bx 4.2 . |