mirror of
https://github.com/rfc1036/whois.git
synced 2026-05-03 06:51:09 +00:00
Imported Debian version 4.7.18
This commit is contained in:
parent
3a305f1926
commit
1ea7943996
2
config.h
2
config.h
@ -1,6 +1,6 @@
|
||||
/* Program version */
|
||||
/* not for the inetutils version */
|
||||
#define VERSION "4.7.17"
|
||||
#define VERSION "4.7.18"
|
||||
|
||||
/* Configurable features */
|
||||
|
||||
|
||||
1
data.h
1
data.h
@ -24,7 +24,6 @@ const char *ripe_servers[] = {
|
||||
"whois.nic.ir",
|
||||
"whois.nic.ck",
|
||||
"whois.ra.net",
|
||||
"whois.radb.net",
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
10
debian/changelog
vendored
10
debian/changelog
vendored
@ -1,3 +1,13 @@
|
||||
whois (4.7.18) unstable; urgency=medium
|
||||
|
||||
* whois.radb.net does not understand the RIPE protocol anymore.
|
||||
* Added support for IPv6 Teredo addresses, contributed by Rémi
|
||||
Denis-Courmont. (Closes: #384373)
|
||||
* Updated the .mobi and .gs TLD servers. (Closes: #389880, 391447)
|
||||
* Added the .gd TLD server.
|
||||
|
||||
-- Marco d'Itri <md@linux.it> Fri, 6 Oct 2006 18:47:53 +0200
|
||||
|
||||
whois (4.7.17) unstable; urgency=medium
|
||||
|
||||
* 4.7.16 did not ask whois.denic.de for the complete data. Fixed.
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
# The parser is very simple-minded and wants the two first components of
|
||||
# addresses. It does not deal with networks == 0 or > 24 bit.
|
||||
|
||||
2001:0000::/32 teredo
|
||||
2001:0200::/23 apnic
|
||||
2001:0400::/23 arin
|
||||
2001:0600::/23 ripe
|
||||
|
||||
@ -26,6 +26,8 @@ while (<>) {
|
||||
print $s;
|
||||
} elsif ($s eq '6to4') {
|
||||
print "\\x0A";
|
||||
} elsif ($s eq 'teredo') {
|
||||
print "\\x0B";
|
||||
} elsif ($s eq 'UNALLOCATED') {
|
||||
print "\\006";
|
||||
} else {
|
||||
|
||||
@ -37,7 +37,7 @@ e164.arpa whois.ripe.net
|
||||
.coop whois.nic.coop
|
||||
.info whois.afilias.info
|
||||
.jobs whois.jobs
|
||||
.mobi WEB http://pc.mtld.mobi/whois/
|
||||
.mobi whois.dotmobiregistry.net
|
||||
.museum whois.museum
|
||||
.name whois.nic.name
|
||||
.pro whois.registrypro.pro
|
||||
@ -121,7 +121,7 @@ e164.arpa whois.ripe.net
|
||||
#.fx
|
||||
.ga NONE # www.nic.ga
|
||||
.gb NONE
|
||||
#.gd # NO NIC (UPR)
|
||||
.gd whois.adamsnames.tc
|
||||
.ge WEB http://whois.sanet.ge/
|
||||
.gf whois.nplus.gf
|
||||
.gg whois.channelisles.net
|
||||
@ -133,7 +133,7 @@ e164.arpa whois.ripe.net
|
||||
.gp whois.nic.gp
|
||||
#.gq # NO NIC http://www.getesa.gq/
|
||||
.gr WEB https://grweb.ics.forth.gr/Whois?lang=en
|
||||
.gs whois.adamsnames.tc
|
||||
.gs whois.nic.gs
|
||||
.gt WEB http://www.gt/whois.htm
|
||||
.gu WEB http://gadao.gov.gu/domainsearch.htm
|
||||
#.gw # no NIC?
|
||||
|
||||
20
whois.c
20
whois.c
@ -248,6 +248,12 @@ const char *handle_query(const char *hserver, const char *hport,
|
||||
/* XXX should fail if server[0] < ' ' */
|
||||
qstring = p; /* XXX leak */
|
||||
break;
|
||||
case 0x0B:
|
||||
p = convert_teredo(qstring);
|
||||
printf(_("\nQuerying for the IPv4 endpoint %s of a Teredo IPv6 address.\n\n"), p);
|
||||
server = whichwhois(p);
|
||||
qstring = p ;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -842,6 +848,20 @@ char *convert_6to4(const char *s)
|
||||
return new;
|
||||
}
|
||||
|
||||
char *convert_teredo(const char *s)
|
||||
{
|
||||
char *new = malloc(sizeof("255.255.255.255"));
|
||||
unsigned int a, b;
|
||||
|
||||
if (sscanf(s, "2001:%*[^:]:%*[^:]:%*[^:]:%*[^:]:%*[^:]:%x:%x", &a, &b) != 2)
|
||||
return (char *) "0.0.0.0";
|
||||
|
||||
a ^= 0xffff;
|
||||
b ^= 0xffff;
|
||||
sprintf(new, "%d.%d.%d.%d", a >> 8, a & 0xff, b >> 8, b & 0xff);
|
||||
return new;
|
||||
}
|
||||
|
||||
unsigned long myinet_aton(const char *s)
|
||||
{
|
||||
unsigned long a, b, c, d;
|
||||
|
||||
1
whois.h
1
whois.h
@ -27,6 +27,7 @@ int domcmp(const char *, const char *);
|
||||
int domfind(const char *, const char *[]);
|
||||
char *normalize_domain(const char *);
|
||||
char *convert_6to4(const char *);
|
||||
char *convert_teredo(const char *);
|
||||
const char *handle_query(const char *server, const char *port,
|
||||
const char *qstring, const char *fstring);
|
||||
void split_server_port(const char *const input, const char **server,
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Summary: Enhanced WHOIS client
|
||||
Name: whois
|
||||
Version: 4.7.17
|
||||
Version: 4.7.18
|
||||
Release: 1
|
||||
License: GPL
|
||||
Vendor: Marco d'Itri <md@linux.it>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user