Update the -d flag to use the new .MIL NIC address (from PR 9802)

and add a -g flag to use the new .GOV NIC.  Also convert the
SEE ALSO reference into a proper bibliographic one.

PR:	9802 (in part)
This commit is contained in:
Garrett Wollman 1999-02-01 19:22:27 +00:00
parent f248b38722
commit 2712c396cb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=43506
2 changed files with 23 additions and 10 deletions

View file

@ -30,9 +30,9 @@
.\" SUCH DAMAGE.
.\"
.\" From: @(#)whois.1 8.1 (Berkeley) 6/6/93
.\" $Id$
.\" $Id: whois.1,v 1.4 1998/02/19 19:07:49 wollman Exp $
.\"
.Dd February 19, 1998
.Dd February 1, 1999
.Dt WHOIS 1
.Os BSD 4.3
.Sh NAME
@ -40,7 +40,7 @@
.Nd Internet domain name and network number directory service
.Sh SYNOPSIS
.Nm whois
.Op Fl adpr
.Op Fl adgpr
.Op Fl h Ar host
.Ar name ...
.Sh DESCRIPTION
@ -59,10 +59,13 @@ covered neither by
.Tn APNIC nor by
.Tn RIPE .
.It Fl d
Use the (US Military) Defense Data Network
.Pq Tn DDN
Use the US Department of Defense
database. It contains points of contact for subdomains of
.Tn \&.MIL .
.It Fl g
Use the US non-military federal government database, which contains points of
contact for subdomains of
.Tn \&.GOV .
.It Fl h Ar host
Use the specified host instead of the default NIC
(whois.internic.net).
@ -98,7 +101,13 @@ operands have special meaning, and how to guide the search, use
the special name
.Dq Ar help .
.Sh SEE ALSO
RFC 812: Nicname/Whois
.Rs
.%A Ken Harrenstien
.%A Vic White
.%T NICNAME/WHOIS
.%D 1 March 1982
.%O RFC 812
.Re
.Sh HISTORY
The
.Nm

View file

@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)whois.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
"$Id: whois.c,v 1.5 1998/02/19 19:07:50 wollman Exp $";
"$Id: whois.c,v 1.6 1998/06/12 12:55:46 peter Exp $";
#endif /* not lint */
#include <sys/types.h>
@ -57,7 +57,8 @@ static const char rcsid[] =
#include <unistd.h>
#define NICHOST "whois.internic.net"
#define DNICHOST "nic.ddn.mil"
#define DNICHOST "whois.nic.mil"
#define GNICHOST "whois.nic.gov"
#define ANICHOST "whois.arin.net"
#define RNICHOST "whois.ripe.net"
#define PNICHOST "whois.apnic.net"
@ -83,7 +84,7 @@ main(argc, argv)
#endif
host = NICHOST;
while ((ch = getopt(argc, argv, "adh:pr")) != -1)
while ((ch = getopt(argc, argv, "adgh:pr")) != -1)
switch((char)ch) {
case 'a':
host = ANICHOST;
@ -91,6 +92,9 @@ main(argc, argv)
case 'd':
host = DNICHOST;
break;
case 'g':
host = GNICHOST;
break;
case 'h':
host = optarg;
break;
@ -151,6 +155,6 @@ main(argc, argv)
static void
usage()
{
(void)fprintf(stderr, "usage: whois [-adpr] [-h hostname] name ...\n");
fprintf(stderr, "usage: whois [-adgpr] [-h hostname] name ...\n");
exit(EX_USAGE);
}