diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-09-05 17:22:17 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-09-05 17:22:17 +0000 |
commit | a97a80f9090d4cb3c2be1c37a67d5a4b2b2fa5a0 (patch) | |
tree | 17d1542461478165aa52f998c61d05a5dee0879f /usr.bin | |
parent | 605a19f971a42ef55c87e9e23e1e109c04e9305d (diff) |
lacnic support; from Loic Tortay <loict@bougon.net>.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/whois/whois.1 | 8 | ||||
-rw-r--r-- | usr.bin/whois/whois.c | 12 |
2 files changed, 14 insertions, 6 deletions
diff --git a/usr.bin/whois/whois.1 b/usr.bin/whois/whois.1 index 8631fcbb0c6..762e047546f 100644 --- a/usr.bin/whois/whois.1 +++ b/usr.bin/whois/whois.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: whois.1,v 1.16 2002/02/13 08:33:47 mpech Exp $ +.\" $OpenBSD: whois.1,v 1.17 2002/09/05 17:22:16 fgsch Exp $ .\" $NetBSD: whois.1,v 1.5 1995/08/31 21:51:32 jtc Exp $ .\" .\" Copyright (c) 1985, 1990, 1993 @@ -42,7 +42,7 @@ .Nd Internet domain name and network number directory service .Sh SYNOPSIS .Nm whois -.Op Fl adgimpqQrR +.Op Fl adgilmpqQrR .Op Fl h Ar host .Ar name Op Ar ... .Sh DESCRIPTION @@ -86,6 +86,10 @@ It contains network numbers and domain contact information for most of and .Tn \&.EDU domains. +.It Fl l +Use the Latin America and Caribbean Network Information Center +.Pq Tn LACNIC +database. .It Fl m Use the Route Arbiter Database .Pq Tn RADB diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c index 681efd08bec..892b481a9c3 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -1,4 +1,4 @@ -/* $OpenBSD: whois.c,v 1.15 2002/05/29 18:33:40 deraadt Exp $ */ +/* $OpenBSD: whois.c,v 1.16 2002/09/05 17:22:16 fgsch Exp $ */ /* * Copyright (c) 1980, 1993 @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)whois.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: whois.c,v 1.15 2002/05/29 18:33:40 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: whois.c,v 1.16 2002/09/05 17:22:16 fgsch Exp $"; #endif #endif /* not lint */ @@ -68,6 +68,7 @@ static char rcsid[] = "$OpenBSD: whois.c,v 1.15 2002/05/29 18:33:40 deraadt Exp #define PNICHOST "whois.apnic.net" #define RUNICHOST "whois.ripn.net" #define MNICHOST "whois.ra.net" +#define LNICHOST "whois.lacnic.net" #define QNICHOST_TAIL ".whois-servers.net" #define WHOIS_PORT 43 @@ -97,7 +98,7 @@ main(argc, argv) qnichost = NULL; flags = 0; use_qnichost = 0; - while ((ch = getopt(argc, argv, "adgh:impqQrR")) != -1) + while ((ch = getopt(argc, argv, "adgh:ilmpqQrR")) != -1) switch((char)ch) { case 'a': host = ANICHOST; @@ -114,6 +115,9 @@ main(argc, argv) case 'i': host = INICHOST; break; + case 'l': + host = LNICHOST; + break; case 'm': host = MNICHOST; break; @@ -304,6 +308,6 @@ usage() { (void)fprintf(stderr, - "usage: whois [-adgimpqQrR] [-h hostname] name ...\n"); + "usage: whois [-adgilmpqQrR] [-h hostname] name ...\n"); exit(EX_USAGE); } |