Web lists-archives.com

Re: how to keep geoip database uptodate




On Tue, May 01, 2018 at 07:14:47PM -0400, kamaraju kusumanchi wrote:
> How do I keep geoip database up to date on Debian stable? Currently, I
> am not able to get information on some IP addresses. For example,
> 
>  % geoiplookup 45.229.2.42
> GeoIP Country Edition: IP Address not found
> 
> I tried geoipupdate, but it is looking for a license.
> 
>  % geoipupdate -v
> geoipupdate 2.3.1
> Can't open license file /etc/GeoIP.conf
>  % ls -al /etc/GeoIP.conf
> ls: cannot access '/etc/GeoIP.conf': No such file or directory
> 
> % dpkg -l \*geoip\* | grep ^ii
> ii  geoip-bin       1.6.9-4      amd64        IP lookup command line
> tools that use the GeoIP library
> ii  geoip-database  20170512-1   all          IP lookup command line
> tools that use the GeoIP library (country database)
> ii  geoipupdate     2.3.1-1      amd64        MaxMind GeoIP/GeoIP2
> database updates
> ii  libgeoip1:amd64 1.6.9-4      amd64        non-DNS IP-to-country
> resolver library
> 
> % cat /etc/debian_version
> 9.4
> 
> 
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


-H
 



-- 
Henning Follmann           | hfollmann@xxxxxxxxxxxxxxx