Releases: haxqer/ip2geo
Releases · haxqer/ip2geo
Release list
Test databases — DB-IP Lite (2026-07)
Ready-to-use sample databases so you can try ip2geo without registering for or purchasing any data. Converted from the DB-IP IP-to-City Lite dataset (2026-07) into the compact .geoc format — no changes to the underlying geolocation data.
Files
| Asset | Size (gz) | Detail |
|---|---|---|
dbip-country-lite.geoc.gz |
1.7 MB | Country ISO code + name |
dbip-region-lite.geoc.gz |
11 MB | + region / subdivision |
dbip-city-lite.geoc.gz |
32 MB | + city, latitude / longitude |
Verified against the source database: 200,000 random IPs, 0 mismatches.
Usage
# download + decompress (city shown; swap in country/region as needed)
curl -LO https://github.com/haxqer/ip2geo/releases/download/data-2026-07/dbip-city-lite.geoc.gz
gunzip dbip-city-lite.geoc.gz
# look up an address with the CLI
go run github.com/haxqer/ip2geo/cmd/ip2geo@latest lookup -db dbip-city-lite.geoc 8.8.8.8
# 8.8.8.8: US / California / Mountain View (37.4220, -122.0850)// zero third-party dependencies
db, _ := ip2geo.Open("dbip-city-lite.geoc")
rec, ok := db.Lookup(netip.MustParseAddr("8.8.8.8"))Attribution & license
IP Geolocation by DB-IP — https://db-ip.com
Licensed under Creative Commons Attribution 4.0 (CC BY 4.0). See ATTRIBUTION.txt.
These files are provided for testing and evaluation. For production use, download a current DB-IP database or use your own MaxMind GeoIP2/GeoLite2 file with mmdb.Open.