BSD Ports

net/p5-IP-Country 2.28.20190301p0 OpenBSD

fast lookup of country codes by IP address

System
OpenBSD
Repository
OpenBSD ports
Maintainer
Giovanni Bechis <[email protected]>
Categories
net, perl5

Description

Finding the home 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.

In the other systems

SystemPortVersion
OpenBSDnet/p5-IP-Country2.28.20190301p0
FreeBSDnet/p5-IP-Country2.28_1
NetBSDnet/p5-IP-Country2.28nb12
DragonFlynet/p5-IP-Country2.28_1
MidnightBSDnet/p5-IP-Country2.28_1
HardenedBSDnet/p5-IP-Country2.28_1
GhostBSDnet/p5-IP-Country2.28_1

Install

Binary package:

pkg_add p5-IP-Country

From the ports tree:

cd /usr/ports/net/p5-IP-Country && make install

Dependencies

Build dependencies 1
Run dependencies 1

No port depends on this one.