Imported Debian version 4.7.22

This commit is contained in:
Marco d'Itri 2007-07-28 23:53:00 +02:00
parent 1e6c14f7fa
commit a4875f3017
9 changed files with 99 additions and 47 deletions

View File

@ -58,7 +58,7 @@
36864 37887 afrinic 36864 37887 afrinic
37888 38911 apnic 37888 38911 apnic
38912 39935 ripe 38912 39935 ripe
40960 41983 ripe 40960 44031 ripe
# catch all: everything else comes from ARIN # catch all: everything else comes from ARIN
1 40959 arin 1 40959 arin

View File

@ -1,6 +1,6 @@
/* Program version */ /* Program version */
/* not for the inetutils version */ /* not for the inetutils version */
#define VERSION "4.7.21" #define VERSION "4.7.22"
/* Configurable features */ /* Configurable features */

12
debian/changelog vendored
View File

@ -1,3 +1,15 @@
whois (4.7.22) unstable; urgency=medium
* Added new IPv4 allocations.
* Added new ASN allocations.
* Updated the Polish translation.
* Updated the .jobs, .ai and .tn TLD and za.net servers.
* Added the za.net server. (Closes: #423549)
* Stop misparsing <as-set>:<hierarchical-name> as an IPv6 address.
* Stop mangling IDN queries with in-query flags. (Closes: #422895)
-- Marco d'Itri <md@linux.it> Sat, 28 Jul 2007 23:53:00 +0200
whois (4.7.21) unstable; urgency=medium whois (4.7.21) unstable; urgency=medium
* Improved myinet_aton to not parse addresses with trailing junk * Improved myinet_aton to not parse addresses with trailing junk

View File

@ -34,7 +34,7 @@
2003:0000::/18 ripe 2003:0000::/18 ripe
2400:0000::/20 kornet 2400:0000::/20 whois.nic.or.kr
2400:0000::/12 apnic 2400:0000::/12 apnic
2600:0000::/12 arin 2600:0000::/12 arin
2610:0000::/23 arin 2610:0000::/23 arin

View File

@ -22,18 +22,16 @@
62.0.0.0/8 ripe 62.0.0.0/8 ripe
77.0.0.0/8 ripe 77.0.0.0/8 ripe
78.0.0.0/7 ripe 78.0.0.0/7 ripe
80.0.0.0/5 ripe # => 87.255.255.255 80.0.0.0/4 ripe # => 95.255.255.255
88.0.0.0/6 ripe # => 91.255.255.254 96.0.0.0/6 arin
92.0.0.0/7 ripe
116.0.0.0/6 apnic 116.0.0.0/6 apnic
121.128.0.0/10 whois.nic.or.kr 121.128.0.0/10 whois.nic.or.kr
125.128.0.0/11 whois.nic.or.kr 125.128.0.0/11 whois.nic.or.kr
120.0.0.0/6 apnic 120.0.0.0/6 apnic
124.0.0.0/7 apnic 124.0.0.0/7 apnic
126.0.0.0/8 apnic 126.0.0.0/8 apnic
96.0.0.0/6 arin
96.0.0.0/3 UNALLOCATED # => 127.215.255.255 96.0.0.0/3 UNALLOCATED # => 127.215.255.255
0.0.0.0/1 arin # all other A classes are managed by ARIN 0.0.0.0/1 arin # all other A class addresses are managed by ARIN
133.0.0.0/8 whois.nic.ad.jp 133.0.0.0/8 whois.nic.ad.jp
139.20.0.0/14 ripe 139.20.0.0/14 ripe
139.24.0.0/14 ripe 139.24.0.0/14 ripe

View File

@ -1,21 +1,21 @@
# Polish translation for whois. # Polish translation for whois.
# Micha³ 'CeFeK' Nazarewicz <cefek@career.pl>, 1999 # Micha³ 'CeFeK' Nazarewicz <cefek@career.pl>, 1999
# Przemys³aw Knycz <djrzulf@pld.org.pl>, 2003 # Przemys³aw Knycz <djrzulf@pld.org.pl>, 2003
# Jakub Bogusz <qboosh@pld-linux.org>, 2003-2004 # Jakub Bogusz <qboosh@pld-linux.org>, 2003-2007
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: whois 4.6.24\n" "Project-Id-Version: whois 4.7.21\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2006-07-15 19:18+0200\n" "POT-Creation-Date: 2007-04-07 14:31+0200\n"
"PO-Revision-Date: 2004-11-28 15:09+0100\n" "PO-Revision-Date: 2007-04-07 14:32+0200\n"
"Last-Translator: Jakub Bogusz <qboosh@pld-linux.org>\n" "Last-Translator: Jakub Bogusz <qboosh@pld-linux.org>\n"
"Language-Team: Polish <translation-team-pl@lists.sourceforge.net>\n" "Language-Team: Polish <translation-team-pl@lists.sourceforge.net>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=iso-8859-2\n" "Content-Type: text/plain; charset=iso-8859-2\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: ../whois.c:114 #: ../whois.c:117
#, c-format #, c-format
msgid "" msgid ""
"Version %s.\n" "Version %s.\n"
@ -26,42 +26,42 @@ msgstr ""
"\n" "\n"
"B³êdy proszê zg³aszaæ na adres %s.\n" "B³êdy proszê zg³aszaæ na adres %s.\n"
#: ../whois.c:164 ../whois.c:257 #: ../whois.c:167 ../whois.c:266
#, c-format #, c-format
msgid "Using server %s.\n" msgid "Using server %s.\n"
msgstr "U¿ycie serwera %s.\n" msgstr "U¿ycie serwera %s.\n"
#: ../whois.c:206 #: ../whois.c:209
msgid "This TLD has no whois server, but you can access the whois database at" msgid "This TLD has no whois server, but you can access the whois database at"
msgstr "" msgstr ""
"Ta g³ówna domena nie ma serwera whois, ale mo¿na u¿yæ bazy danych whois pod" "Ta g³ówna domena nie ma serwera whois, ale mo¿na u¿yæ bazy danych whois pod"
#: ../whois.c:214 #: ../whois.c:217
msgid "This TLD has no whois server." msgid "This TLD has no whois server."
msgstr "Ta g³ówna domena nie ma serwera whois." msgstr "Ta g³ówna domena nie ma serwera whois."
#: ../whois.c:217 #: ../whois.c:220
msgid "No whois server is known for this kind of object." msgid "No whois server is known for this kind of object."
msgstr "Dla tego rodzaju obiektu nie jest znany ¿aden serwer whois." msgstr "Dla tego rodzaju obiektu nie jest znany ¿aden serwer whois."
#: ../whois.c:220 #: ../whois.c:223
msgid "Unknown AS number or IP network. Please upgrade this program." msgid "Unknown AS number or IP network. Please upgrade this program."
msgstr "Nieznany numer AS lub sieæ IP. Proszê uaktualniæ ten program." msgstr "Nieznany numer AS lub sieæ IP. Proszê uaktualniæ ten program."
#: ../whois.c:224 #: ../whois.c:227
msgid "Connecting to whois.crsnic.net." msgid "Connecting to whois.crsnic.net."
msgstr "£±czenie z whois.crsnic.net." msgstr "£±czenie z whois.crsnic.net."
#: ../whois.c:230 #: ../whois.c:233
msgid "Connecting to whois.publicinterestregistry.net." msgid "Connecting to whois.publicinterestregistry.net."
msgstr "£±czenie z whois.publicinterestregistry.net." msgstr "£±czenie z whois.publicinterestregistry.net."
#: ../whois.c:236 #: ../whois.c:239
msgid "Connecting to whois.nic.cc." msgid "Connecting to whois.nic.cc."
msgstr "£±czenie z whois.nic.cc." msgstr "£±czenie z whois.nic.cc."
#. XXX should fail if p = 0.0.0.0 #. XXX should fail if p = 0.0.0.0
#: ../whois.c:243 #: ../whois.c:246
#, c-format #, c-format
msgid "" msgid ""
"\n" "\n"
@ -72,7 +72,18 @@ msgstr ""
"Pytanie o zakoñczenie IPv4 %s adresu IPv6 typu 6to4.\n" "Pytanie o zakoñczenie IPv4 %s adresu IPv6 typu 6to4.\n"
"\n" "\n"
#: ../whois.c:258 #: ../whois.c:253
#, c-format
msgid ""
"\n"
"Querying for the IPv4 endpoint %s of a Teredo IPv6 address.\n"
"\n"
msgstr ""
"\n"
"Pytanie o zakoñczenie IPv4 %s adresu IPv6 Teredo.\n"
"\n"
#: ../whois.c:267
#, c-format #, c-format
msgid "" msgid ""
"Query string: \"%s\"\n" "Query string: \"%s\"\n"
@ -81,7 +92,7 @@ msgstr ""
"Zapytanie: \"%s\"\n" "Zapytanie: \"%s\"\n"
"\n" "\n"
#: ../whois.c:268 #: ../whois.c:277
#, c-format #, c-format
msgid "" msgid ""
"\n" "\n"
@ -94,16 +105,16 @@ msgstr ""
"Znaleziono odniesienie do %s.\n" "Znaleziono odniesienie do %s.\n"
"\n" "\n"
#: ../whois.c:311 ../whois.c:314 #: ../whois.c:320 ../whois.c:323
#, c-format #, c-format
msgid "Cannot parse this line: %s" msgid "Cannot parse this line: %s"
msgstr "Nie mo¿na przeanalizowaæ tej linii: %s" msgstr "Nie mo¿na przeanalizowaæ tej linii: %s"
#: ../whois.c:451 #: ../whois.c:460
msgid "Warning: RIPE flags used with a traditional server." msgid "Warning: RIPE flags used with a traditional server."
msgstr "Uwaga: u¿yto flag RIPE ze starszym serwerem." msgstr "Uwaga: u¿yto flag RIPE ze starszym serwerem."
#: ../whois.c:586 #: ../whois.c:598
msgid "" msgid ""
"Catastrophic error: disclaimer text has been changed.\n" "Catastrophic error: disclaimer text has been changed.\n"
"Please upgrade this program.\n" "Please upgrade this program.\n"
@ -111,26 +122,26 @@ msgstr ""
"Katastrofa! Tekst o¶wiadczenia zosta³ zmieniony.\n" "Katastrofa! Tekst o¶wiadczenia zosta³ zmieniony.\n"
"Proszê uaktualniæ ten program.\n" "Proszê uaktualniæ ten program.\n"
#: ../whois.c:713 #: ../whois.c:725
#, c-format #, c-format
msgid "Host %s not found." msgid "Host %s not found."
msgstr "Serwer %s nie zosta³ znaleziony." msgstr "Serwer %s nie zosta³ znaleziony."
#: ../whois.c:723 #: ../whois.c:735
#, c-format #, c-format
msgid "%s/tcp: unknown service" msgid "%s/tcp: unknown service"
msgstr "%s/tcp: us³uga nieznana" msgstr "%s/tcp: us³uga nieznana"
#: ../whois.c:742 #: ../whois.c:754
msgid "Timeout." msgid "Timeout."
msgstr "Up³yn±³ limit czasu." msgstr "Up³yn±³ limit czasu."
#: ../whois.c:748 #: ../whois.c:760
#, c-format #, c-format
msgid "Interrupted by signal %d..." msgid "Interrupted by signal %d..."
msgstr "Przerwano sygna³em %d..." msgstr "Przerwano sygna³em %d..."
#: ../whois.c:860 #: ../whois.c:888
#, c-format #, c-format
msgid "" msgid ""
"Usage: whois [OPTION]... OBJECT...\n" "Usage: whois [OPTION]... OBJECT...\n"

View File

@ -18,6 +18,7 @@
.uk.net whois.centralnic.net .uk.net whois.centralnic.net
.us.com whois.centralnic.net .us.com whois.centralnic.net
.uy.com whois.centralnic.net .uy.com whois.centralnic.net
.za.net whois.centralnic.net
.za.com whois.centralnic.net .za.com whois.centralnic.net
.jpn.com whois.centralnic.net .jpn.com whois.centralnic.net
.web.com whois.centralnic.net .web.com whois.centralnic.net
@ -36,7 +37,7 @@ e164.arpa whois.ripe.net
.cat whois.cat .cat whois.cat
.coop whois.nic.coop .coop whois.nic.coop
.info whois.afilias.info .info whois.afilias.info
.jobs whois.jobs .jobs jobswhois.verisign-grs.com
.mobi whois.dotmobiregistry.net .mobi whois.dotmobiregistry.net
.museum whois.museum .museum whois.museum
.name whois.nic.name .name whois.nic.name
@ -47,7 +48,7 @@ e164.arpa whois.ripe.net
.ae whois.uaenic.ae .ae whois.uaenic.ae
.af whois.nic.af .af whois.nic.af
.ag whois.nic.ag .ag whois.nic.ag
.ai WEB http://whois.offshore.ai/ .ai whois.ai
.al NONE # http://www.inima.al/Domains.html .al NONE # http://www.inima.al/Domains.html
.am whois.nic.am .am whois.nic.am
.an NONE # http://www.una.net/an_domreg/ .an NONE # http://www.una.net/an_domreg/

54
whois.c
View File

@ -1,4 +1,4 @@
/* Copyright 1999-2003 by Marco d'Itri <md@linux.it>. /* Copyright 1999-2007 by Marco d'Itri <md@linux.it>.
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
@ -363,9 +363,13 @@ const char *whichwhois(const char *s)
if ((colon = strchr(s, ':'))) { if ((colon = strchr(s, ':'))) {
unsigned long v6prefix, v6net; unsigned long v6prefix, v6net;
/* RPSL hierarchical objects like AS8627:fltr-TRANSIT-OUT */ /* RPSL hierarchical objects */
if (strncasecmp(s, "as", 2) == 0 && isasciidigit(s[2])) if (strncasecmp(s, "as", 2) == 0) {
return whereas(atoi(s + 2)); if (isasciidigit(s[2]))
return whereas(atoi(s + 2));
else
return "";
}
v6prefix = strtol(s, NULL, 16); v6prefix = strtol(s, NULL, 16);
@ -778,23 +782,49 @@ int domcmp(const char *dom, const char *tld)
char *normalize_domain(const char *dom) char *normalize_domain(const char *dom)
{ {
char *p, *ret; char *p, *ret;
char *domain_start = NULL;
ret = strdup(dom); ret = strdup(dom);
for (p = ret; *p; p++); p--; /* move to the last char */ for (p = ret; *p; p++); p--; /* move to the last char */
for (; *p == '.' || p == ret; p--) /* eat trailing dots */ /* eat trailing dots and blanks */
for (; *p == '.' || *p == ' ' || *p == '\t' || p == ret; p--)
*p = '\0'; *p = '\0';
#ifdef HAVE_LIBIDN #ifdef HAVE_LIBIDN
if (idna_to_ascii_lz(ret, &p, 0) != IDNA_SUCCESS) { /* find the start of the last word if there are spaces in the query */
for (p = ret; *p; p++)
if (*p == ' ')
domain_start = p + 1;
if (domain_start) {
char *q, *r;
int prefix_len;
if (idna_to_ascii_lz(domain_start, &q, 0) != IDNA_SUCCESS)
return ret;
/* reassemble the original query in a new buffer */
prefix_len = domain_start - ret;
r = malloc(prefix_len + strlen(q) + 1);
strncpy(r, ret, prefix_len);
r[prefix_len] = '\0';
strcat(r, q);
free(q);
free(ret); free(ret);
return ret; return r;
} else {
char *q;
if (idna_to_ascii_lz(ret, &q, 0) != IDNA_SUCCESS)
return ret;
free(ret);
return q;
} }
#else
free(ret);
ret = p;
#endif
return ret; return ret;
#endif
} }
/* server and port have to be freed by the caller */ /* server and port have to be freed by the caller */

View File

@ -1,6 +1,6 @@
Summary: Enhanced WHOIS client Summary: Enhanced WHOIS client
Name: whois Name: whois
Version: 4.7.21 Version: 4.7.22
Release: 1 Release: 1
License: GPL License: GPL
Vendor: Marco d'Itri <md@linux.it> Vendor: Marco d'Itri <md@linux.it>