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

whois and country ID from IP Address

Options
  • 13-08-2009 3:01pm
    #1
    Registered Users 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 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 Posts: 135 ✭✭pleuraXeraphim


    Great Thanks a lot for your suggestions.

    Regards Dave


  • Registered Users Posts: 135 ✭✭pleuraXeraphim


    Brilliant

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


Advertisement