The problem is that IPv4 address space and AS numbers don't carry any country information. Some clues about the region can be made, still it doesn't guarantee that an IP address or AS number assigned by RIPE NCC won't be used within US, while ARIN addresses might be used in Europe ...
But inetnum has "country" field which is mandatory and if I look for related "route" object, it has "origin" field with AS number. It is possible to make script working in this way, but I hoped, that RIPE has such list with AS numbers. Regards, Bart
Furthermore, one AS can span among more than one single country.
So - if you're looking for a certain method, the answer is: no, there is NO way to precisely define the country element of IP/AS numbers.
Regards, Beri
--------- Berislav Todorovic, Network Engineer --------- ------- KPNQwest N.V. - IP NOC (formerly EUnet NOC) ------- ---- Wilhelmina van Pruisenweg 78, 2595 AN Den Haag, NL ---- --- Phone: +31-70-379-3990; Mobile: +31-651-333-641 --- -- Email: beri@kpnqwest.net <=> beri@EU.net -- --- _ _ ____ _ .--. ____ ____ __/_ --- ----- /__/ /___/ /\ / / / | / /___/ /___ / ------ ------ _/ \_ / _/ \/ (__.\ |/\/ /___ ____/ (__. -----