maxmind / mmdbinspect

look up records for one or more IPs/networks in one or more .mmdb databases
Apache License 2.0
135 stars 14 forks source link

lookup all ip network by ASN number #38

Closed CaledoniaProject closed 1 year ago

CaledoniaProject commented 1 year ago

This library looks up ASN by IP address, how can I do the reverse lookup? Can you implement a method to do that?

oschwald commented 1 year ago

The database only indexes by IP. It isn't possible to do efficient lookups by ASN. I would suggest using the ASN CSV file for this.