diff options
author | Marco d'Itri <md@linux.it> | 2005-03-24 14:33:10 +0100 |
---|---|---|
committer | Marco d'Itri <md@linux.it> | 2013-03-30 02:31:31 +0100 |
commit | 64ad70cad1a2eeb9e861907bd1044f450f98f3c8 (patch) | |
tree | 2917da9694f66b4b0659ecb8287155c13ee4a8ed | |
parent | ec5ce735c6839ac7e9e790659ba4713cdd181918 (diff) | |
download | whois-64ad70cad1a2eeb9e861907bd1044f450f98f3c8.tar.gz |
Imported Debian version 4.7.2v4.7.2
-rw-r--r-- | data.h | 1 | ||||
-rw-r--r-- | debian/changelog | 8 | ||||
-rw-r--r-- | ip_del_list | 2 | ||||
-rw-r--r-- | tld_serv_list | 4 | ||||
-rw-r--r-- | whois.1 | 3 | ||||
-rw-r--r-- | whois.c | 5 |
6 files changed, 16 insertions, 7 deletions
@@ -16,7 +16,6 @@ const char *ripe_servers[] = { "whois.nic.fr", "whois.nic.it", "whois.telstra.net", - "whois.metu.edu.tr", "whois.restena.lu", "rr.level3.net", /* 3.0.0a13 */ "whois.ripn.net", diff --git a/debian/changelog b/debian/changelog index cd88607..bf18a0f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +whois (4.7.2) unstable; urgency=high + + * whois.metu.edu.tr does not accept anymore RIPE-like queries. + * Updated the .bg and .jp TLD servers. (Closes: #301187) + * Updated the IPv4 allocations. + + -- Marco d'Itri <md@linux.it> Thu, 24 Mar 2005 14:33:10 +0100 + whois (4.7.1) unstable; urgency=medium * Added new ASN allocations. diff --git a/ip_del_list b/ip_del_list index 1cc7452..66cdbf5 100644 --- a/ip_del_list +++ b/ip_del_list @@ -151,6 +151,8 @@ 211.176.0.0/12 whois.nic.or.kr 211.192.0.0/10 whois.nic.or.kr # => 211.255.255.255 210.0.0.0/7 apnic +213.154.32.0/19 afrinic +213.154.64.0/19 afrinic 212.0.0.0/7 ripe 214.0.0.0/7 arin # DoD 216.0.0.0/8 arin diff --git a/tld_serv_list b/tld_serv_list index 49ea309..d30583f 100644 --- a/tld_serv_list +++ b/tld_serv_list @@ -59,7 +59,7 @@ .bd NONE # http://www.bttb.net/ .be whois.dns.be .bf NONE # NIC? http://www.onatel.bf/ -.bg whois.ripe.net +.bg whois.register.bg #.bh NONE # NIC? www.inet.com.bh .bi WEB http://www.nic.bi/Nic_search.asp #.bj # NIC? www.opt.bj @@ -151,7 +151,7 @@ .je whois.channelisles.net #.jm # NIC? uwimona.edu.jm http://nic.jm .jo WEB http://www.nis.jo/dns/ # old: http://amon.nic.gov.jo/dns/ -.jp whois.nic.ad.jp +.jp whois.jprs.jp .ke whois.kenic.or.ke .kg whois.domain.kg .kh NONE # http://www.mptc.gov.kh/ http://www.nic.net.kh/ @@ -81,7 +81,8 @@ current system locale and converted to the IDN ASCII Compatible Encoding. /etc/whois.conf .SH "ENVIRONMENT" .IP LANG -When querying \fIwhois.nic.ad.jp\fP english text is requested unless the +When querying \fIwhois.nic.ad.jp\fP and \fIwhois.jprs.jp\fP english text +is requested unless the \fILANG\fP environment variable specifies a Japanese locale. .IP "WHOIS_SERVER" This server will be queried if the program cannot guess where some kind @@ -379,8 +379,6 @@ const char *whichwhois(const char *s) if (strncasecmp(s, "as", 2) == 0 && /* it's an AS */ (isasciidigit(s[2]) || s[2] == ' ')) return whereas(atoi(s + 2)); - else if (strncasecmp(p - 2, "jp", 2) == 0) /* JP NIC handle */ - return "whois.nic.ad.jp"; if (*s == '!') /* NSI NIC handle */ return "whois.networksolutions.com"; else @@ -461,7 +459,8 @@ char *queryformat(const char *server, const char *flags, const char *query) strncasecmp(query, "AS", 2) == 0 && isasciidigit(query[2])) /* FIXME: /e is not applied to .JP ASN */ sprintf(buf, "AS %s", query + 2); /* fix query for DDN */ - else if (!isripe && strcmp(server, "whois.nic.ad.jp") == 0) { + else if (!isripe && (strcmp(server, "whois.nic.ad.jp") == 0 || + strcmp(server, "whois.jprs.jp") == 0)) { char *lang = getenv("LANG"); /* not a perfect check, but... */ if (!lang || (strncmp(lang, "ja", 2) != 0)) sprintf(buf, "%s/e", query); /* ask for english text */ |