nitefood / asn

ASN / RPKI validity / BGP stats / IPv4v6 / Prefix / URL / ASPath / Organization / IP reputation / IP geolocation / IP fingerprinting / Network recon / lookup API server / Web traceroute server
MIT License
1.31k stars 159 forks source link

Some IPv6 ranges not picked up #36

Closed watervale closed 1 year ago

watervale commented 1 year ago

I love asn, but it misses some IPv6 networks.

As an example, 'asn 5089' displays the network information for Virgin Media (UK), with many IPv4 subnets but no IPv6 subnets.

However a search for 'asn 2a02:8801::1' shows it is part of AS5089 (2a02:8801::/32). Virgin Media also have 2a02:8880::/25, and a search for an address in that subnet also works.

Is there a way to get these IPv6 subnets to show up?

nitefood commented 1 year ago

Hey @watervale!

You're right, some IPv6 ranges are not displayed because I skipped larger-than /29 prefixes in an effort to filter out IPv6 subnets assigned to RIRs. That was a mistake on my behalf, since after further digging it appears that the smallest prefix allocation by IANA to any RIR is a /12 and not a /28 (as detailed here). I'll fix it right away.

Thanks for reporting it!