IP2CC

High-performance IP address to ISO country code lookup via global DNS infrastructure

About IP2CC

IP2CC provides near-zero latency IP-to-country lookups. By delivering data natively over standard DNS infrastructure, queries benefit from global edge-caching and high-availability resolution, avoiding slow HTTP REST API roundtrips.

Looking up your own local public IP on mobile? Download our Android application:

Get IP2CC on Google Play

Your Connection Info

Below is your active connection information and computed DNS query domain:

IP Version
Client IP
216.73.217.25
DNS TXT Query Domain
216-73-217-25.free.query.ip2cc.com
Country Code
US πŸ‡ΊπŸ‡Έ

How It Works

To resolve an IP address, query the TXT record (only TXT, never A or MX) of the hyphenated IP address appended to .free.query.ip2cc.com. The DNS response delivers a 2-letter ISO country code.

  1. Replace dots (.) with hyphens (-):
    216.73.217.25216-73-217-25
  2. Append query domain and request the TXT record:
    216-73-217-25.free.query.ip2cc.com
Important: Always execute queries via your operating system's standard recursive DNS resolver. Direct recursive sweeps or non-TXT query types on free endpoints are subject to rate limiting.

CLI Examples

dig
$ dig +short TXT 216-73-217-25.free.query.ip2cc.com
"US"
host
$ host -t TXT 216-73-217-25.free.query.ip2cc.com
216-73-217-25.free.query.ip2cc.com descriptive text "US"
nslookup
$ nslookup -type=TXT 216-73-217-25.free.query.ip2cc.com
216-73-217-25.free.query.ip2cc.com    text = "US"

Integration Examples

PHP Example

Licensing & Commercial Plans

IP2CC offers simple, transparent access depending on your usage requirements:

Non-Profit & Personal

For personal projects, non-profits, open source, and educational uses.

€0
  • Free forever
  • Community DNS resolution
  • Standard rate limits
Get Started

Country Reference Data

Need full country names mapped to ISO 2-letter codes? Download the official Country-to-Code Mapping CSV File (Ensure UTF-8 encoding when saving).

Contact & Support

Have questions, licensing inquiries, or technical support requests? Reach out to our engineering team:

ip2cc [at] calpeconsulting.com