ratibor78 / geostat

GeoStat, Python script for parsing Nginx and Apache logs files and getting GEO data from incoming IP's.
MIT License
69 stars 20 forks source link

unable to resolve host address ‘geolite.maxmind.com’ #9

Closed olegsidokhmetov closed 3 years ago

olegsidokhmetov commented 3 years ago

(venv) root@NC-V3:~/geostat# wget https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz --2020-11-12 09:54:44-- https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz Resolving geolite.maxmind.com (geolite.maxmind.com)... failed: Name or service not known. wget: unable to resolve host address ‘geolite.maxmind.com’

I can download file :( (Ошибка при попытке действий загрузки файла)

olegsidokhmetov commented 3 years ago

I think I founded solutions

wget 'https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=YOUR_LICENSE_KEY&suffix=tar.gz'

Do not forget '' YOUR_LICENSE_KEY - your license key :)

And after that you will get some file like 'geoip_download?edition_id=GeoLite2-City&license_key=YOUR_LICENSE_KEY&suffix=tar.gz' To get license key you must be registered on the official site maxmind.com

and then tar -xvzf geoip_download?edition_id=GeoLite2-City&license_key=YOUR_LICENSE_KEY&suffix=tar.gz

and after then :) you should get file GeoLite2-City_20201110