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
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.
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:
https://pypi.org/project/python-whois/