hadiasghari / pyasn

Python IP address to Autonomous System Number lookup module. (Supports fast local lookups, and historical lookups using archived BGP dumps.)
Other
275 stars 71 forks source link

Getting an organization name from ASN #53

Closed seanthegeek closed 6 years ago

seanthegeek commented 6 years ago

Is it possible to get an organization name from ASN offline?

hadiasghari commented 6 years ago

Hi @seanthegeek, have a look at the get_as_name() method.

It uses a file set by the as_names_file parameter during module initialization. The input file can be downloaded with the pyasn_util_asnames.py utility script.

aaronkaplan commented 6 years ago

Yes in principle it is. Take a look at the RIR dumps (ftp)


Mobile

On 16.12.2017, at 16:45, Sean Whalen notifications@github.com wrote:

Is it possible to get an organization name from ASN offline?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

gabrielmocan commented 6 years ago

Wasn't that feature implemented on #24 ?

hadiasghari commented 6 years ago

@gabrielmocan thanks for the correction, I had totally forgotten that, I edited my answer.

gabrielmocan commented 6 years ago

You're welcome @hadiasghari. And I have to admit, it works like a charm!