From 04d04825ccf427008e570ad41fb40fdde3d38709 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Tue, 2 Feb 1999 01:49:14 +0000 Subject: [PATCH] Add -R for .RU domains --- usr.bin/whois/whois.1 | 10 ++++++++-- usr.bin/whois/whois.c | 10 +++++++--- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/usr.bin/whois/whois.1 b/usr.bin/whois/whois.1 index 5443438f086c..11138392cbf7 100644 --- a/usr.bin/whois/whois.1 +++ b/usr.bin/whois/whois.1 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" From: @(#)whois.1 8.1 (Berkeley) 6/6/93 -.\" $Id: whois.1,v 1.4 1998/02/19 19:07:49 wollman Exp $ +.\" $Id: whois.1,v 1.5 1999/02/01 19:22:27 wollman Exp $ .\" .Dd February 1, 1999 .Dt WHOIS 1 @@ -40,7 +40,7 @@ .Nd Internet domain name and network number directory service .Sh SYNOPSIS .Nm whois -.Op Fl adgpr +.Op Fl adgprR .Op Fl h Ar host .Ar name ... .Sh DESCRIPTION @@ -80,6 +80,12 @@ Use the R\(aaeseaux IP Europ\(aaeens .Pq Tn RIPE database. It contains network numbers and domain contact information for Europe. +.It Fl R +Use the Russia Network Information Center +.Pq Tn RIPN +database. It contains network numbers and domain contact information +for subdomains of +.Tn \&.RU . .El .Pp The operands specified to diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c index df6fa1a56f91..321136c6ef1c 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.6 1998/06/12 12:55:46 peter Exp $"; + "$Id: whois.c,v 1.7 1999/02/01 19:22:27 wollman Exp $"; #endif /* not lint */ #include @@ -62,6 +62,7 @@ static const char rcsid[] = #define ANICHOST "whois.arin.net" #define RNICHOST "whois.ripe.net" #define PNICHOST "whois.apnic.net" +#define RUNICHOST "whois.ripn.net" #define WHOIS_PORT 43 static void usage __P((void)); @@ -84,7 +85,7 @@ main(argc, argv) #endif host = NICHOST; - while ((ch = getopt(argc, argv, "adgh:pr")) != -1) + while ((ch = getopt(argc, argv, "adgh:prR")) != -1) switch((char)ch) { case 'a': host = ANICHOST; @@ -104,6 +105,9 @@ main(argc, argv) case 'r': host = RNICHOST; break; + case 'R': + host = RUNICHOST; + break; case '?': default: usage(); @@ -155,6 +159,6 @@ main(argc, argv) static void usage() { - fprintf(stderr, "usage: whois [-adgpr] [-h hostname] name ...\n"); + fprintf(stderr, "usage: whois [-adgprR] [-h hostname] name ...\n"); exit(EX_USAGE); }