https://bugs.contribs.org/show_bug.cgi?id=9033

--- Comment #23 from Terry Fage <[email protected]> ---
So far so good, however what is command to query GeoIP2 database?

[root@letstest ~]# rpm -qa GeoIP
GeoIP-1.6.5-1.el6.x86_64
[root@letstest ~]#

[root@letstest ~]# yum --enablerepo=openfusion install perl-GeoIP2

[root@letstest ~]# rpm -qa perl-GeoIP2
perl-GeoIP2-2.001002-1.of.el6.noarch

[root@letstest ~]# rpm -qa geoipupdate
geoipupdate-2.2.1-2.el6.x86_64

[root@letstest ~]# geoipupdate -v
geoipupdate 2.2.1
Opened License file /etc/GeoIP.conf
UserId 0
LicenseKey 000000000000
Insert product_id GeoLite2-City
Insert product_id GeoLite2-Country
Read in license key /etc/GeoIP.conf
Number of product ids 2
url:
https://updates.maxmind.com/app/update_getfilename?product_id=GeoLite2-City
md5hex_digest: 00000000000000000000000000000000
url: https://updates.maxmind.com/app/update_getipaddr
Client IP address: 118.209.106.15
md5hex_digest2: 3278554a2a0f2a6d5b0f591393876760
url:
https://updates.maxmind.com/app/update_secure?db_md5=00000000000000000000000000000000&challenge_md5=3278554a2a0f2a6d5b0f591393876760&user_id=0&edition_id=GeoLite2-City
Uncompress file /usr/share/GeoIP/GeoLite2-City.mmdb.gz to
/usr/share/GeoIP/GeoLite2-City.mmdb.test
Rename /usr/share/GeoIP/GeoLite2-City.mmdb.test to
/usr/share/GeoIP/GeoLite2-City.mmdb
url:
https://updates.maxmind.com/app/update_getfilename?product_id=GeoLite2-Country
md5hex_digest: 00000000000000000000000000000000
url: https://updates.maxmind.com/app/update_getipaddr
Client IP address: 118.209.106.15
md5hex_digest2: 3278554a2a0f2a6d5b0f591393876760
url:
https://updates.maxmind.com/app/update_secure?db_md5=00000000000000000000000000000000&challenge_md5=3278554a2a0f2a6d5b0f591393876760&user_id=0&edition_id=GeoLite2-Country
Uncompress file /usr/share/GeoIP/GeoLite2-Country.mmdb.gz to
/usr/share/GeoIP/GeoLite2-Country.mmdb.test
Rename /usr/share/GeoIP/GeoLite2-Country.mmdb.test to
/usr/share/GeoIP/GeoLite2-Country.mmdb

[root@letstest ~]# geoiplookup 178.62.71.12
GeoIP Country Edition: GB, United Kingdom
GeoIP City Edition, Rev 1: GB, H9, London, City of, London, EC4N, 51.509201,
-0.095500, 0, 0
GeoIP ASNum Edition: AS202109 Digital Ocean, Inc.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to