Skip to content

generate the IP addresses from the ASN database #55

@randomgambit

Description

@randomgambit

Hello and thanks for this wonderful package.

I know I can use this:


with geoip2.database.Reader('/path/to/GeoLite2-ASN.mmdb') as reader:
 response = reader.asn('1.128.0.0')
 response.autonomous_system_organization

to get the autonomous_system_organization for a given IP.

Something I was not able to figure out is whether this package can generate all the possible IPs for each autonomous_system_organization in the maxmind ASN database. For instance, can we get the IPs by iterating over the IP networks in CIDR format that are in the data? Is there a method for that?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions