diff options
author | 2002-09-05 17:22:16 +0000 | |
---|---|---|
committer | 2002-09-05 17:22:16 +0000 | |
commit | df76b66114ff0bf69572ebea5bc990c3b5b2bd6c (patch) | |
tree | 743757bb8f31ae938bb5fa1d6dd59f2919539468 | |
parent | Do not print the ASCII_ESC character. (diff) | |
download | wireguard-openbsd-df76b66114ff0bf69572ebea5bc990c3b5b2bd6c.tar.xz wireguard-openbsd-df76b66114ff0bf69572ebea5bc990c3b5b2bd6c.zip |
lacnic support; from Loic Tortay <loict@bougon.net>.
-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); } |