Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if there is any beenfit from using pyasn over the existing ip to ASN lookup mechanism #239

Open
mrchrisadams opened this issue May 5, 2022 · 0 comments

Comments

@mrchrisadams
Copy link
Member

Topic

At present we determine an AS number for an IP address by using a service that's bundled into the the pythonwhois library.

@roald-teunissen found the pyasn module recently, and this part here was interesting:

pyasn is different from other ASN lookup tools in that it provides offline and historical lookups. It provides utility scripts for users to build their own lookup databases based on any MRT/RIB archive. This makes pyasn much faster than online dig/whois/json lookups.

Source: hadiasghari/pyasn: Python IP address to Autonomous System Number lookup module. (Supports fast local lookups, and historical lookups using archived BGP dumps.)

Is the AS lookup part sufficiently slow, and used often enough to justify relying on this implementation instead?

I'm parking this issue before I forget.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant