$ pkg_add GeoIP
$ geoiplookup 129.128.5.194
GeoIP Country Edition: CA, Canada