FreeBSD Bugzilla – Attachment 26053 Details for
Bug 44448
Add support for whois to automagically query whois.lacnic.net
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.93 KB, created by
david
on 2002-10-25 03:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
david
Created:
2002-10-25 03:20:01 UTC
Size:
1.93 KB
patch
obsolete
>Index: whois.1 >=================================================================== >RCS file: /cvs/freebsd/src/usr.bin/whois/whois.1,v >retrieving revision 1.27 >diff -u -r1.27 whois.1 >--- whois.1 20 Apr 2002 12:18:02 -0000 1.27 >+++ whois.1 25 Oct 2002 02:02:10 -0000 >@@ -108,7 +108,8 @@ > 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 >@@ -149,6 +150,12 @@ > .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 >Index: whois.c >=================================================================== >RCS file: /cvs/freebsd/src/usr.bin/whois/whois.c,v >retrieving revision 1.31 >diff -u -r1.31 whois.c >--- whois.c 18 Sep 2002 07:51:46 -0000 1.31 >+++ whois.c 25 Oct 2002 02:13:33 -0000 >@@ -65,6 +65,7 @@ > #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 @@ > > #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 @@ > > 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; >@@ -123,6 +124,9 @@ > break; > case 'i': > host = INICHOST; >+ break; >+ case 'l': >+ host = LNICHOST; > break; > case 'm': > host = MNICHOST;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 44448
: 26053