Add -R for .RU domains

This commit is contained in:
Andrey A. Chernov 1999-02-02 01:49:14 +00:00
parent 9112ae0f0e
commit 04d04825cc
2 changed files with 15 additions and 5 deletions

View File

@ -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

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.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);
}