Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #206386

GeoIP free databases and Geo::IP

From francis picabia <fpicabia@gmail.com>
Newsgroups linux.debian.user
Subject GeoIP free databases and Geo::IP
Date 2019-03-20 10:30 +0100
Message-ID <xDFHQ-2X8-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

The packages geoip-database in Debian relies
on static databases which are no longer being updated.

https://support.maxmind.com/geolite-legacy-discontinuation-notice/

All I need from this is a quick way on the shell to look up
a country from an IP.

On Debian I could do that with geoiplookup
or use a small perl script using Geo::IP

These tools still work, but the accuracy is drifting off over time.

I could make my own script solution around calls to https://freegeoip.app
but I can't be the only one looking into this issue.  Surely someone has
figured out something to do this well that gets that good ol' 1000 eyeballs
treatment.

Has anyone encountered something like Geo::IP which will work against
the other free resources?  Or has anyone encountered a solution
which will work against the new GeoIP databases available by subscription
from Maxmind, the previous supplier of the free GeoLite DB?

Something like this done in a script would work:

wget -qO - https://freegeoip.app/csv/$IP | awk -F, '{print $3}'

It is limited to 10,000 lookups per hour and it is much slower than
working against a local DB file.

Is there something better?

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

GeoIP free databases and Geo::IP francis picabia <fpicabia@gmail.com> - 2019-03-20 10:30 +0100
  Re: GeoIP free databases and Geo::IP MI <mi.lists.debian@alma.ch> - 2019-06-15 15:20 +0200

csiph-web