Anyone knows where I can get list of Autonomous system number users by country ? If it is not possible to get it by country, any kind of list will suffice. thnx
One good list can be found at: http://bgp.potaroo.net/cidr/autnums.html
Its harder to get them sorted by "country" since lots of organisations span several continents and might use the same AS globally, but the world is split up into regional registries so you can see atleast what region gave out the specific AS number. So for Europe, for example, you have RIPE. A list of AS numbers and what region they were given out to can be found at:
If you want to do some manual processing you can get information from this file too:
Fields are split by
To search for Russia replace SE with RU.
A bit more advanced from a Linux prompt, to download the RIPE database file, to sort out all AS numbers from russia, then prepare an input file for an AS number lookup service (from Team Cymru), then send the request file and save the output to asn.ru you you can do something like this, line by line into your Linux shell:
Then your asn.ru will output something like this:
You can get all AS-numbers registered to a given country using the services on cc2asn.com. Input a two-letter country code (ISO 3166-1 Alpha-2), and all ASNs are returned. Options available to get IPv4 or IPv6 prefixes. Examples:
Using whois to get all ASNs for Sweden:
Or you can use curl to get the same data:
You can also get the entire database, for offline lookups:
This database is updated on a daily basis (the frequency of the RIRs updating their delegations files).
Source code available on github: http://github.com/toringe/cc2asn