From 27a9da73746c90d1e55e8d9d8d5ec1e3c7ce987b Mon Sep 17 00:00:00 2001 From: wollman Date: Mon, 1 Feb 1999 19:22:27 +0000 Subject: 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) --- usr.bin/whois/whois.1 | 21 +++++++++++++++------ usr.bin/whois/whois.c | 12 ++++++++---- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/usr.bin/whois/whois.1 b/usr.bin/whois/whois.1 index fafd1d0..5443438 100644 --- a/usr.bin/whois/whois.1 +++ b/usr.bin/whois/whois.1 @@ -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 diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c index ed5e5bc..df6fa1a 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -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 @@ -57,7 +57,8 @@ static const char rcsid[] = #include #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); } -- cgit v1.1