You are not logged in.

#1 2019-01-20 21:12:42

fictitiousexistence
Member
Registered: 2019-01-20
Posts: 2

[SOLVED] Geoip / geoiplookup

Hello All-

Geoip seems to have stopped support of the old .dat files and moved to .mmdb >> https://support.maxmind.com/geolite-leg … on-notice/

When i do geoiplookup <ipaddress> I only get the country info back like this

geoiplookup 1.1.1.1

GeoIP Country Edition: AU, Australia 

I installed geoip2-database and have the .mmdb city file located in /usr/share/GeoIP. Also used the geoip-updater (https://dev.maxmind.com/geoip/geoipupdate/) to download the .mmdb files as well.

I found an old arch machine that has some of the old .dat files in /usr/share/GeoIP. If I copy those files over to my other machine then I get the normal output:

geoiplookup 1.1.1.1

GeoIP Country Edition: AU, Australia
GeoIP City Edition, Rev 1: AU, 07, Victoria, Research, 3095, -37.700001, 145.183304, 0, 0
GeoIP ASNum Edition: AS13335 Cloudflare Inc

I don't know anything about the geoip program and couldn't find any answers.

Does anyone know how to use geoiplookup with the new mmdb's?


Thanks for any ideas.

Last edited by fictitiousexistence (2019-01-20 22:58:51)

Offline

#2 2019-01-20 22:23:43

chr0mag
Member
From: Vancouver, Canada
Registered: 2017-02-02
Posts: 94

Re: [SOLVED] Geoip / geoiplookup

There is a mmdblookup package available. Once installed you can inspect the mmdb like this:

mmdblookup --file /usr/share/GeoIP/GeoLite2-City.mmdb  --ip 1.1.1.1

Offline

#3 2019-01-20 22:57:30

fictitiousexistence
Member
Registered: 2019-01-20
Posts: 2

Re: [SOLVED] Geoip / geoiplookup

chr0mag wrote:

There is a mmdblookup package available. Once installed you can inspect the mmdb like this:

mmdblookup --file /usr/share/GeoIP/GeoLite2-City.mmdb  --ip 1.1.1.1

Why thank you! smile

Offline

Board footer

Powered by FluxBB