mirror of
https://github.com/rfc1036/whois.git
synced 2026-05-03 06:51:09 +00:00
Imported Debian version 4.6.5
This commit is contained in:
parent
570afc2396
commit
cc470e6784
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -1,4 +1,4 @@
|
||||
whois (4.6.4) unstable; urgency=medium
|
||||
whois (4.6.5) unstable; urgency=medium
|
||||
|
||||
* Added may new ASN blocks from MILNET, LACNIC and JP-NIC.
|
||||
* Fixed a bug which broke ASN queries to whois.nic.mil.
|
||||
|
||||
8
whois.c
8
whois.c
@ -428,13 +428,11 @@ char *queryformat(const char *server, const char *flags, const char *query)
|
||||
puts(_("Warning: RIPE flags used with a traditional server."));
|
||||
strcat(buf, flags);
|
||||
}
|
||||
if (!isripe && strcmp(server, "whois.nic.mil") == 0 &&
|
||||
/* FIXME: /e is not applied to .JP ASN */
|
||||
if (!isripe && (strcmp(server, "whois.nic.mil") == 0 ||
|
||||
strcmp(server, "whois.nic.ad.jp") == 0) &&
|
||||
strncasecmp(query, "AS", 2) == 0 && isasciidigit(query[2]))
|
||||
sprintf(buf, "AS %s", query + 2); /* fix query for DDN */
|
||||
else if (!isripe && (strcmp(server, "whois.arin.net") == 0 ||
|
||||
strcmp(server, "whois.nic.ad.jp")) &&
|
||||
strncasecmp(query, "AS", 2) == 0 && isasciidigit(query[2]))
|
||||
sprintf(buf, "AS %s", query + 2); /* always ask for a ASN */
|
||||
else if (!isripe && strcmp(server, "whois.corenic.net") == 0)
|
||||
sprintf(buf, "--machine %s", query); /* machine readable output */
|
||||
else if (!isripe && strcmp(server, "whois.nic.ad.jp") == 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user