- nginx with ngx_http_geoip_module, echo-nginx-module, lua-nginx-module is required; libgeoip needs to be installed and geoip database should be placed under
http://example.com for current GeoIP and
http://example.com/ip for current IP only
http://example.com/x.x.x.x to query any IP.
http://example.com/domain-name for GeoIP of domain-name and
http://example.com/domain-name/ip to return IP of domain-name only. If multiple IPs are set to single domain-name, all of them will be returned. Only
A record will be used.
- Sample requests are:
$ curl http://example.com/