On 04/04/2021 13.59, Bengt Gördén wrote:
On 2021-04-04 13:11, Carlos E. R. wrote:
I notice that the "--geoinfo" option does not produce output, but it would surprise me if it actually worked.
It's sort of useless if you want accuracy but if you just want to see if it's 80% "certain" which country it thinks it knows about you can use it. But you need the GeoLite2-City.mmdb and GeoLite2-Country.mmdb. It should be in /usr/share/GeoIP/
An strace without them gives: openat(AT_FDCWD, "/usr/share/GeoIP/GeoLite2-Country.mmdb", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/usr/share/GeoIP/GeoLite2-City.mmdb", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
Maybe it should print that those files are missing if the --geoinfo option is given. But that is something for upstream.
$ ipcalc -g 79.158.162.23 COUNTRYCODE=ES COUNTRY=Spain COORDINATES="40.417200,-3.684000"
Heh - the country is correct :-) -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)