rfc1036 / whois

Intelligent WHOIS client
GNU General Public License v2.0
486 stars 113 forks source link

APNIC IP inter RIR transfert not properly handled #95

Open bressiers opened 3 years ago

bressiers commented 3 years ago

Hello folks, Seems an IP range transfert from APNIC to at least RIPE, but probably to any other RIR they have agreements with, is not properly handled on whois response, as not yet managed on the exceptions. for example:

whois 1.179.112.0

returns:

% for more information on IANA, visit http://www.iana.org
% This query returned 1 object

refer:        whois.apnic.net

inetnum:      1.0.0.0 - 1.255.255.255
organisation: APNIC
status:       ALLOCATED

whois:        whois.apnic.net

changed:      2010-01
source:       IANA

# whois.apnic.net

% [whois.apnic.net]
% Whois data copyright terms    http://www.apnic.net/db/dbcopyright.html

% Information related to '1.179.112.0 - 1.179.127.255'

% Abuse contact for '1.179.112.0 - 1.179.127.255' is 'no-email@apnic.net'

inetnum:        1.179.112.0 - 1.179.127.255
netname:        STUB-1-179-112SLASH20
descr:          Transferred to the RIPE region on 2020-12-08T07:54:04Z.
country:        ZZ
admin-c:        STUB-AP
tech-c:         STUB-AP
status:         ALLOCATED PORTABLE
mnt-by:         APNIC-STUB
mnt-irt:        IRT-STUB-AP
last-modified:  2020-12-07T22:00:28Z
source:         APNIC

The APNIC has implemented, back in 2019, "stub" records (link to their blog) , that returns the information related to an inter RIR transfert, and the destination can be found with: descr: Transferred to the RIPE region on 2020-12-08T07:54:04Z.

Would be an interesting improvement I guess to follow such redirection ?

rfc1036 commented 3 years ago

I am not sure, since this would require parsing free-form text. Do you want to try?

bressiers commented 3 years ago

I'm not C skilled myself, I'll dig around internally if there's a C master to propose a PR

rfc1036 commented 3 years ago

I have downloaded ftp://ftp.apnic.net/apnic/whois/apnic.db.inetnum.gz and there are only 231 inetnum objects with that comment, so this does not look like something urgent to implement.

zappiehost commented 1 year ago

I have downloaded ftp://ftp.apnic.net/apnic/whois/apnic.db.inetnum.gz and there are only 231 inetnum objects with that comment, so this does not look like something urgent to implement.

The list is growing more and more as IPs are getting transferred cross RIRs,

$ zgrep "Transferred to the" apnic.db.inetnum.gz | wc -l
606

Just chucked a pretty small and safe PR here: https://github.com/rfc1036/whois/pull/152 that will solve the whois for all APNIC space that has been transferred out.

C0RD commented 8 months ago

as i now came over this (49.12.0.0 - 49.13.255.255) it would be nice if whois could support this.