source: trunk/athena/bin/hostinfo/hostinfo.1 @ 13429

Revision 13429, 1.4 KB checked in by danw, 25 years ago (diff)
reimplement hostinfo as a perl wrapper around /usr/athena/bin/host (from third/bind). Add a regression test in case host's output changes.
RevLine 
[1763]1.\" All rights reserved. 
2.\"
3.\"
4.\"     @(#)fg.1        6.8 (Berkeley) 11/02/87
5.\"
6.TH HOSTINFO 1 "November 16, 1987"
7.UC 4
8.de sh
9.br
10.ne 5
11.PP
12\fB\\$1\fR
13.PP
14..
15.if n .ds ua ^
16.if t .ds ua \(ua
17.if n .ds aa '
18.if t .ds aa \(aa
19.if n .ds ga `
20.if t .ds ga \(ga
21.if t .tr *\(**
22.SH NAME
[5279]23hostinfo \- ask internet nameserver for a host information
[1763]24.SH SYNOPSIS
25.HP 5
26.B hostinfo
[5279]27[options] [
28.I \-ns <name server>
[1763]29]
[5234]30<
[5279]31.I hostnames
[5234]32>
[5279]33 <
34.I addresses
[5234]35>
[1763]36.PP
37.SH DESCRIPTION
38.br
39By default,
40this command displays
[5234]41the
42.I internet
[5279]43name, all network addresses, host info and MX records for each
[1763]44host specified by
45.I hostname
46or
47.IR address.
[5234]48
[1763]49The command accepts the following options:
50.IP \fB\-h\fP 5
[5234]51The command displays only the hostname.
[1763]52.IP \fB\-a\fP 5
[5234]53The command displays only the address.
[5279]54.IP \fB\-i\fP 5
55The command displays only the host info record.
56.IP \fB\-m\fP 5
57The command displays only the MX records.
58.IP \fB\-q\fP 5
59The command suppresses hostinfo and MX record lookup which require separate
60queries.
[5234]61.PP
[5279]62Options are parsed left to right, with new options overriding previous ones
63and taking effect only for hostnames which appear afterward.
[5234]64.PP
[5279]65You may also query a specific name server by specifying the server name or
66address after the
67.I \-ns
68option.
69.PP
[13429]70.SH "NOTES"
71.B hostinfo
72is simply a perl script that calls
73.BR host (1)\fR.
[1763]74.SH "SEE ALSO"
[13429]75host(1), hesinfo(1), named(8), resolver(3), resolver(5)
Note: See TracBrowser for help on using the repository browser.