lexrus / MMDB-Swift

A tiny wrapper for libmaxminddb which allows you to lookup Geo data by IP address.
Apache License 2.0
123 stars 59 forks source link

Could not resolve host: geolite.maxmind.com #14

Closed nikolaitarasov closed 4 years ago

nikolaitarasov commented 4 years ago

Starting December 30, 2019, downloads will no longer be served from our public GeoLite2 page, from geolite.maxmind.com/download/geoip/database/*, or from any other public URL. Please fix this as soon as possible. For more details: https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/

zhuhaow commented 4 years ago

Looks like the only solution is to totally remove the bundled geolite2 database.

nikolaitarasov commented 4 years ago

I was able to fix the issue locally by following the steps provided in the link I posted in my original comment.

zhuhaow commented 4 years ago

It's not possible to do it without manual setup.

I'm leaning to removing the bundled database, so at least the framework works.

dvovk commented 4 years ago

the same stuff here, please fix it

nikolaitarasov commented 4 years ago

I updated the following line in the update_database.sh script: curl -L -o $tmpfile "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=XXXXXXX&suffix=tar.gz" To get license_key you need to sign up on maxmind website and create the key. After I did this everything works for me.

zhuhaow commented 4 years ago

I'm going to remove the bundled geolite2 database. The only thing is that this is a breaking change.

@nikolaitarasov We can't distribute geolite2 database with the framework.