diff options
| author | Mike Barcroft <mike@FreeBSD.org> | 2002-11-10 16:58:56 +0000 |
|---|---|---|
| committer | Mike Barcroft <mike@FreeBSD.org> | 2002-11-10 16:58:56 +0000 |
| commit | a5d96e6d20116f3e941534851017ec60f03df896 (patch) | |
| tree | 798cb6141b668c22e2215e7759e5a230d516fcc1 | |
| parent | 95af37edb5795c5942b62767ad2f40bae9f2c31d (diff) | |
Notes
| -rw-r--r-- | usr.bin/whois/whois.1 | 12 | ||||
| -rw-r--r-- | usr.bin/whois/whois.c | 10 |
2 files changed, 16 insertions, 6 deletions
diff --git a/usr.bin/whois/whois.1 b/usr.bin/whois/whois.1 index f3153426835e..521690ac6f76 100644 --- a/usr.bin/whois/whois.1 +++ b/usr.bin/whois/whois.1 @@ -40,7 +40,7 @@ .Nd "Internet domain name and network number directory service" .Sh SYNOPSIS .Nm -.Op Fl aAdgimQrR6 +.Op Fl aAdgilmQrR6 .Op Fl c Ar country-code | Fl h Ar host .Op Fl p Ar port .Ar name ... @@ -108,7 +108,8 @@ Registry for Internet Numbers If a query to .Tn ARIN references -.Tn APNIC +.Tn APNIC , +.Tn LACNIC , or .Tn RIPE , that server will be queried also, provided that the @@ -148,7 +149,12 @@ can be looked up by prefixing to the .Tn NIC handle in the query.) -.Pp +.It Fl l +Use the Latin American and Caribbean IP address Regional Registry +.Pq Tn LACNIC +database. +It contains network numbers used in much of Latin America and the +Caribbean. .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 372fc1c19a50..c0473aa29d9a 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -65,6 +65,7 @@ __FBSDID("$FreeBSD$"); #define DNICHOST "whois.nic.mil" #define GNICHOST "whois.nic.gov" #define ANICHOST "whois.arin.net" +#define LNICHOST "whois.lacnic.net" #define RNICHOST "whois.ripe.net" #define PNICHOST "whois.apnic.net" #define MNICHOST "whois.ra.net" @@ -79,7 +80,7 @@ __FBSDID("$FreeBSD$"); #define ishost(h) (isalnum((unsigned char)h) || h == '.' || h == '-') -const char *ip_whois[] = { RNICHOST, PNICHOST, BNICHOST, NULL }; +const char *ip_whois[] = { LNICHOST, RNICHOST, PNICHOST, BNICHOST, NULL }; const char *port = DEFAULT_PORT; static char *choose_server(char *); @@ -101,7 +102,7 @@ main(int argc, char *argv[]) country = host = qnichost = NULL; flags = use_qnichost = 0; - while ((ch = getopt(argc, argv, "aAc:dgh:imp:QrR6")) != -1) { + while ((ch = getopt(argc, argv, "aAc:dgh:ilmp:QrR6")) != -1) { switch (ch) { case 'a': host = ANICHOST; @@ -124,6 +125,9 @@ main(int argc, char *argv[]) case 'i': host = INICHOST; break; + case 'l': + host = LNICHOST; + break; case 'm': host = MNICHOST; break; @@ -315,7 +319,7 @@ static void usage(void) { fprintf(stderr, - "usage: whois [-aAdgimQrR6] [-c country-code | -h hostname] " + "usage: whois [-aAdgilmQrR6] [-c country-code | -h hostname] " "[-p port] name ...\n"); exit(EX_USAGE); } |
