Skip to content

Add check for the inter-RIR transfer AS Number #4

@steveyiyo

Description

@steveyiyo

Since some AS numbers has already inter-RIR transfer (e.g. APNIC -> RIPE NCC), so the conventional WHOIS query can not get the correct data.

For example, AS7480 is allocated to APNIC but has been transferred to RIPE NCC.

(⎈|N/A:N/A)➜  ~ curl https://whois.steveyi.net/whois/as7480
% [whois.apnic.net]
% Whois data copyright terms    http://www.apnic.net/db/dbcopyright.html

% Information related to 'AS7467 - AS7722'

as-block:       AS7467 - AS7722
descr:          APNIC ASN block
remarks:        These AS numbers are further assigned by APNIC
remarks:        to APNIC members and end-users in the APNIC region
admin-c:        HM20-AP
tech-c:         HM20-AP
mnt-by:         APNIC-HM
mnt-lower:      APNIC-HM
last-modified:  2008-09-04T06:40:26Z
source:         APNIC

role:           APNIC Hostmaster
address:        6 Cordelia Street
address:        South Brisbane
address:        QLD 4101
country:        AU
phone:          +61 7 3858 3100
fax-no:         +61 7 3858 3199
e-mail:         [email protected]
admin-c:        AMS11-AP
tech-c:         AH256-AP
nic-hdl:        HM20-AP
remarks:        Administrator for APNIC
notify:         [email protected]
mnt-by:         MAINT-APNIC-AP
last-modified:  2013-10-23T04:06:51Z
source:         APNIC

% This query was served by the APNIC Whois Service version 1.88.16 (WHOIS-JP3)

;; Query time: 912 msec
;; WHEN: Mon Jan 30 18:03:14 UTC 2023

If specify RIPE NCC WHOIS Server.

(⎈|N/A:N/A)➜  ~ curl https://whois.steveyi.net/whois/as7480/ripencc
% This is the RIPE Database query service.
% The objects are in RPSL format.
%
% The RIPE Database is subject to Terms and Conditions.
% See http://www.ripe.net/db/support/db-terms-conditions.pdf

% Note: this output has been filtered.
%       To receive output for a database update, use the "-B" flag.

% Information related to 'AS7480 - AS7480'

as-block:       AS7480 - AS7480
descr:          RIPE NCC ASN block
remarks:        These AS Numbers are assigned to network operators in the RIPE NCC service region.
mnt-by:         RIPE-NCC-HM-MNT
created:        2022-03-01T17:14:47Z
last-modified:  2022-03-01T17:14:47Z
source:         RIPE

% Information related to 'AS7480'

% Abuse contact for 'AS7480' is '[email protected]'

aut-num:        AS7480
as-name:        STEVEYI-NETWORK
org:            ORG-TY18-RIPE
admin-c:        YT1698-RIPE
tech-c:         YT1698-RIPE
remarks:        BGP COMMUNITY SUPPORT FOR AS7480 TRANSIT CUSTOMERS:
remarks:        ------------------------------------------------------
remarks:        Routes learned from:
remarks:        Community Action
remarks:        --------- ------
remarks:        7480:100 originated by AS7480
remarks:        7480:101 learned from the route server
remarks:        7480:102 learned from direct peer
remarks:        7480:103 learned from transit providers
remarks:        7480:104 learned from customer
remarks:
remarks:        IXP route servers
remarks:        Community Action
remarks:        --------- ------
remarks:        7480:20x All IXP route servers incl:
remarks:
remarks:        7480:21x STUIX
remarks:        7480:22x ARIX
remarks:        7480:23x Lambda-IX
remarks:
remarks:        Transit providers
remarks:        Community Action
remarks:        --------- ------
remarks:        7480:30x All transit providers incl:
remarks:
remarks:        7480:31x Kirino / AS41378
remarks:        7480:32x Eons Data / AS138997
remarks:        7480:33x Hurricane Electric / AS6939
remarks:
remarks:        Where x is the number of prepends (x=1,2,3) or do NOT announce (x=0)
remarks:
remarks:        Location:
remarks:        --------- ------
remarks:        Asia
remarks:        7480:5001 Taiwan
remarks:        7480:5002 Hong Kong
remarks:        7480:5003 Tokyo, Japan
remarks:        --------- ------
remarks:        North America
remarks:        7480:5101 Fremont, USA
remarks:        7480:5102 Kansas, USA
remarks:        ------------------------------------------------------
status:         ASSIGNED
mnt-by:         RIPE-NCC-END-MNT
mnt-by:         STEVEYI-MNT
created:        2022-03-01T17:15:53Z
last-modified:  2022-06-09T01:32:33Z
source:         RIPE
sponsoring-org: ORG-KL272-RIPE

organisation:   ORG-TY18-RIPE
descr:          SteveYi Network Service
org-name:       Tsung-Yi Yu
country:        TW
org-type:       OTHER
address:        No. 12, Ln. 60, Sec. 2, Zhongshan Rd. Changhua City, Changhua County 500 , Taiwan (R.O.C.)
abuse-c:        YT1698-RIPE
mnt-ref:        STEVEYI-MNT
mnt-by:         STEVEYI-MNT
created:        2020-01-26T17:35:48Z
last-modified:  2022-12-01T17:28:54Z
source:         RIPE # Filtered

role:           Tsung-Yi Yu
address:        No. 12, Ln. 60, Sec. 2, Zhongshan Rd. Changhua City, Changhua County 500 , Taiwan (R.O.C.)
abuse-mailbox:  [email protected]
nic-hdl:        YT1698-RIPE
mnt-by:         STEVEYI-MNT
created:        2020-01-26T19:09:13Z
last-modified:  2023-01-14T07:31:16Z
source:         RIPE # Filtered

% This query was served by the RIPE Database Query Service version 1.105 (BUSA)

;; Query time: 522 msec
;; WHEN: Mon Jan 30 18:04:25 UTC 2023

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions