diff options
author | ache <ache@FreeBSD.org> | 1999-02-02 01:49:14 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1999-02-02 01:49:14 +0000 |
commit | c97188153abd2cd4375d716062ff304be4849d4e (patch) | |
tree | b2f942ea623a0aeb222d645a86b4ab110e42ed62 /usr.bin/whois | |
parent | fabccb3cbdd997300d00c13e22558e2fc1a8ec17 (diff) | |
download | FreeBSD-src-c97188153abd2cd4375d716062ff304be4849d4e.zip FreeBSD-src-c97188153abd2cd4375d716062ff304be4849d4e.tar.gz |
Add -R for .RU domains
Diffstat (limited to 'usr.bin/whois')
-rw-r--r-- | usr.bin/whois/whois.1 | 10 | ||||
-rw-r--r-- | 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 5443438..1113839 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 df6fa1a..321136c 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 <sys/types.h> @@ -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); } |