Commit | Line | Data |
---|---|---|
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 | |
21 | gettable \- 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 | |
31 | is a simple program used to obtain the NIC standard | |
32 | host tables from a ``nicname'' server. The indicated | |
33 | .I host | |
34 | is queried for the tables. The tables, if retrieved, | |
35 | are placed in the file | |
5261b095 KM |
36 | .I outfile |
37 | or by default, | |
769112e4 KM |
38 | .IR hosts.txt . |
39 | .PP | |
5261b095 KM |
40 | The |
41 | .B \-v | |
42 | option will get just the version number instead of the complete host table | |
43 | and put the output in the file | |
44 | .I outfile | |
45 | or by default, | |
46 | .IR hosts.ver . | |
47 | .PP | |
769112e4 KM |
48 | .I Gettable |
49 | operates by opening a TCP connection to the port indicated | |
50 | in the service specification for ``nicname''. A request | |
51 | is then made for ``ALL'' names and the resultant information | |
52 | is placed in the output file. | |
53 | .PP | |
54 | .I Gettable | |
55 | is best used in conjunction with the | |
56 | .IR htable (8) | |
57 | program which converts the NIC standard file format to | |
58 | that used by the network library lookup routines. | |
59 | .SH "SEE ALSO" | |
0d6797a3 | 60 | intro(3), htable(8), named(8) |
769112e4 | 61 | .SH BUGS |
c4089c4c MK |
62 | If the name-domain system provided network name mapping well as host |
63 | name mapping, | |
64 | .I gettable | |
65 | would no longer be needed. |