Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

whois and country ID from IP Address

  • 13-08-2009 2:01pm
    #1
    Registered Users, Registered Users 2 Posts: 135 ✭✭


    I have a list of IP addresess and I want to be able to determine the 2 letter country code from it via command line on Unix/Linux. Is it possible to use whois and just get back the country code only ? Or is there another command line tool ?
    Thanks a mill


Comments

  • Registered Users, Registered Users 2 Posts: 2,164 ✭✭✭hobochris


    I dont think theres a tool yet(I could be wrong), but what your looking for is called GeoTargeting or more specifically Ip spidering.

    Here's a we based tool if its any use to you:

    http://whatismyipaddress.com/?gclid=CPvIosLnoJwCFZ4A4wodsXh-eA

    Im sure you could right a script to check the above url from command line.


  • Closed Accounts Posts: 1,567 ✭✭✭Martyr


    try GeoIP library, it probably has some test apps you could tweak for your purpose.


  • Registered Users, Registered Users 2 Posts: 135 ✭✭pleuraXeraphim


    Great Thanks a lot for your suggestions.

    Regards Dave


  • Registered Users, Registered Users 2 Posts: 135 ✭✭pleuraXeraphim


    Brilliant

    After a lot of messing about to get it to compile etc etc.
    It works great. Thanks again.


Advertisement