Sign inSign up

extrawurst/ip2country

By extrawurst

Updated about 9 hours ago

fast ip -> country lookup using asn database

Image
1

500K+

extrawurst/ip2country repository overview

ip2country

uses free (CC0) APNs lookup tables for ip to country lookup based on OpenGeoFeed.com.

find the docker image on docker hub.

features

  • lightweight and fast using rust
  • supports ipv4 and ipv6
  • free APNs tables, no license mess
  • nightly updated with fresh APNs tables

example

docker run -d --rm --name ip2country -p 5000:5000 extrawurst/ip2country:latest

curl http://0.0.0.0:5000/2a00:1450:4005:800::200e
US

curl http://0.0.0.0:5000/172.217.16.78
US

docker kill ip2country

use PORT env variable to change the default port (5000):

docker run -p 9000:9000 -e PORT=9000 extrawurst/ip2country

Tag summary

Content type

Image

Digest

sha256:d722a38ca

Size

76.7 MB

Last updated

about 9 hours ago

docker pull extrawurst/ip2country