Lookup AS by IP? #18
Replies: 4 comments 3 replies
-
|
Hi, this it not planned at the moment but you could always write an offline-ish CLI to reverse the data. Here's an example: https://github.com/ipverse/tools/tree/master/ip2as |
Beta Was this translation helpful? Give feedback.
-
|
It‘s a lot of data. You can trade speed for RAM usage but would have to come up with some custom sort/filter logic. |
Beta Was this translation helpful? Give feedback.
-
|
Hey, I just came across this same issue and had a question by your comment here.
I took a look at your example at https://github.com/ipverse/tools/tree/master/ip2as as well. I suspect that reading from the filesystem is a lot more computer intensive than just using a light database like SQLite or Postgres. Was there any reason a database wasn't used for faster lookups and less memory usage? |
Beta Was this translation helpful? Give feedback.
-
|
Hey @markcellus, no worries. Mainly wanted to keep it dependency-free and simple to consume. Flat files can be piped through grep, used from scripts, etc. without needing a DB layer. But yeah, if you need fast lookups at scale, throwing it into SQLite would make sense. The format is simple enough that you could vibe code an import script in about a minute. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, great package! Is there a way to look up IPs by AS? There is as-ip-blocks, but you have to already know the AS. Is there anyway to find out the AS by the IP address? Similar to when I type IP into https://lens.ipverse.net/ and it returns the AS along with additional data. Thank you for any information!
Beta Was this translation helpful? Give feedback.
All reactions