Projects / IP::Country


IP::Country is a tool for fast lookup of country codes from IP addresses. Finding out the country of a client using only the IP address can be difficult. Looking up the domain name associated with that address can provide some help, but many IP address are not reverse mapped to any useful domain, and the most common domain (.com) offers no help when looking for country. This module comes bundled with a database of countries where various IP addresses have been assigned. Although the country of assignment will probably be the country associated with a large ISP rather than the client herself, this is probably good enough for most log analysis applications, and under test has proved to be as accurate as reverse-DNS and WHOIS lookup.


Recent releases

  •  13 Mar 2009 23:07

    Release Notes: The database was updated.

    •  05 Mar 2008 07:49

      Release Notes: The country database was updated.

      •  07 Feb 2007 12:25

        Release Notes: The database was updated to the Regional Internet Registries' February 2007 release. Minor bugs were fixed.

        •  06 Apr 2006 17:56

          Release Notes: A database update to the Regional Internet Registries' April 6 2006 release. Minor bugfixes.

          •  29 Apr 2005 16:18

            Release Notes: This release amends LACNIC acceptable use, removes the dependency on Geography::Countries (but not from ip2cc), removes the MaxMind tests, and updates the database.


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.