Yes, they offer free GeoIP databases for everyone, but what if we would like to have a custom, super-lightweight version of GeoLite2-City.mmdb
exclusively for testing purposes? Especially in case of API testing or acceptance testing, when we strive to use real things and “mock nothing”.
MaxMind offers free, micro-size versions of their databases for this purpose.
Just download them here on Github. One more important thing: it is tricky to bruteforce an actual IP which can be practically found in this test db. The problem is that they are using cutting-edge at the time of writing IPv6 IPs. So, if you want some real results from test GeoIP database, just pick up some IP from this document.
For example,2a02:ec00::
is resolved as France for me using this test database.