crockk / graphical-traceroute

Track changes in network traceroutes graphically over time with a friendly web interface built on Svelte, backend using Prometheus and Network Exporter.
GNU General Public License v3.0
2 stars 1 forks source link

Integrate ASN lookup to map hop IP to ASN/network name #5

Open crockk opened 2 years ago

crockk commented 2 years ago

Possibly using one of the tools from here? https://ipdata.co/blog/asn-data-lookup-apis-and-tools/

This one looks particularly promising (lookup ASN just from api request with IP) https://docs.ipdata.co/overview/asn-data edit: jk that's paid :(

Maybe:

Cymru
Cymru provides an easy-to-use whois compatible API. This means we can switch the whois host to whois.cymru.com and use it to look up IP addresses.

whois -h whois.cymru.com 17.253.144.10

AS      | IP               | AS Name
714     | 17.253.144.10    | APPLE-ENGINEERING, US
The output is short and easy to read - this IP address’ ASN is AS714, which is owned by Apple. However, it’s very limited and missing a lot of useful information, so let’s look at PeeringDB and CAIDA, which can enrich the data.

https://pypi.org/project/python-whois/

andrewmgee commented 2 years ago

+1 for cymru

https://team-cymru.com/community-services/ip-asn-mapping/