Closed YugoCode closed 4 years ago
Hi YugoCode,
from what I can see you can only search by AS NAME, not by company name on the search engine you mentioned.
A lookup, for instance, for level 3
won't bear you the expected result (e.g. ASNs for company Level 3 Parent, LLC). On the other hand, searching for LVLT
will output what you're looking for, since they prefix their autonomous systems names with LVLT.
If mapping AS name to number is the functionality you're looking for, that should be trivial to implement. I don't know if you can do that by using Team Cymru's data (doubt it), but for sure one could simply grep cidr-report's ASN-To-Name dataset.
The problem with that approach is that the dataset is rather slow to download, and thus a "curl + grep" approach is rather clumsy (plus one should be sure not to break any usage policy by constantly accessing it). The obvious alternative would be to mirror the dataset locally (it's tiny after all, we're talking about ~10MBs), and maybe refresh it on a scheduled basis, but this doesn't fit nicely within the logic of this script.
Ideas?
@YugoCode, I think latest revision implements what you asked for - if not, feel free to reopen or comment further.
Thanks for your feedback!
One option I'm missing is to get results by providing the (company) name. Sometimes you don't even know the full name so you would provide a substring and get all results which contain the substring.
This option is e.g. available here: https://bgpview.io
btw. Thanks for the great tool :)