Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #195248 > unrolled thread
| Started by | kamaraju kusumanchi <raju.mailinglists@gmail.com> |
|---|---|
| First post | 2018-05-02 01:20 +0200 |
| Last post | 2018-05-02 13:30 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.debian.user
how to keep geoip database uptodate kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2018-05-02 01:20 +0200
Re: how to keep geoip database uptodate Henning Follmann <hfollmann@itcfollmann.com> - 2018-05-02 13:10 +0200
Re: how to keep geoip database uptodate kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2018-05-02 13:30 +0200
| From | kamaraju kusumanchi <raju.mailinglists@gmail.com> |
|---|---|
| Date | 2018-05-02 01:20 +0200 |
| Subject | how to keep geoip database uptodate |
| Message-ID | <vKMIW-1ca-1@gated-at.bofh.it> |
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 thanks raju -- Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog
[toc] | [next] | [standalone]
| From | Henning Follmann <hfollmann@itcfollmann.com> |
|---|---|
| Date | 2018-05-02 13:10 +0200 |
| Message-ID | <vKXO2-rv-5@gated-at.bofh.it> |
| In reply to | #195248 |
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@itcfollmann.com
[toc] | [prev] | [next] | [standalone]
| From | kamaraju kusumanchi <raju.mailinglists@gmail.com> |
|---|---|
| Date | 2018-05-02 13:30 +0200 |
| Message-ID | <vKY7n-z8-3@gated-at.bofh.it> |
| In reply to | #195252 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web