secynic / ipwhois

Retrieve and parse whois data for IPv4 and IPv6 addresses
https://ipwhois.readthedocs.io/en/latest
BSD 2-Clause "Simplified" License
555 stars 121 forks source link

Feature Request: Allow use of ASNOrigin lookups without requiring a Net object #318

Open DM1145 opened 2 years ago

DM1145 commented 2 years ago

Performing an ASN Lookup by ASN uses the ASNOrigin object. This object requires as a parameter a Net object - which requires an IP address as a parameter.

If solely querying for ASN properties, any IP address can be used to create the Net object - in fact I dont think that required input parameter is used at all in code to support this functionality.

It seems to me that ASN-level implementations shouldn't have an IP address as a required input. I would think that an ASN would be more likely required and that a lookup using the Net object to get an ASN parameter would be a more straightforward approach.