Re: how to keep geoip database uptodate
On Wed, May 2, 2018 at 7:01 AM, Henning Follmann
<hfollmann@itcfollmann.com> wrote:
> Hello,
>
> you could download the latest file manually.
> From here:
> http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
> - backup your old GeoIP.dat
> - move the new version into /usr/share/GeoIP.dat
Thanks. It worked.
% wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
...
Saving to: ‘GeoIP.dat.gz’
...
2018-05-02 07:15:54 (11.1 MB/s) - ‘GeoIP.dat.gz’ saved [711428/711428]
% gunzip GeoIP.dat.gz
% geoiplookup -f ./GeoIP.dat 45.229.2.42
GeoIP Country Edition: BR, Brazil
So, all I need is a cron job that regularly updates this file.
--
Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog
Reply to: