Anycast IP Geolocation: Why 1.1.1.1 Shows the US

Blog / Edge & CDN

Anycast IP Geolocation: Why 1.1.1.1 Shows the US

Look up the location of 1.1.1.1, 8.8.8.8 or some CDN address and the answer is often "United States", and some databases say Australia. The lookup isn't wrong. These are anycast addresses: the same IP is announced from many data centers around the world at once, while a geolocation database can only attach one location to one IP. So the geolocation of an anycast IP is of little use by itself. The useful question is "which node did I reach this time, and how far away is it?", and you can answer that yourself with the colo field from a trace request plus latency.

What is anycast, and how is it different from a normal IP?

A normal unicast address maps to one machine or one data center, and routers know exactly one route to it. With anycast, the same address block is announced via BGP from several locations at once, and each location says "this block is here". Routers on the internet follow BGP path selection and send your packets to whichever announcement point they consider "closest".

"Closest" here is in the routing sense: AS path length, interconnection between carriers, and each network's routing policy. It is not necessarily the closest geographically. Two broadband subscribers in the same city, hitting the same anycast IP, can land in different data centers.

Public DNS, CDN edge nodes and the entry points of many large services use anycast. The upside is that requests are served nearby and traffic shifts to other nodes when one fails. The cost is that "where is this IP?" no longer has a single answer.

Why does 1.1.1.1 show up in the US or Australia?

An IP geolocation database is basically "address block → one location". Its data comes from a few kinds of sources: registration records from the RIRs (APNIC, ARIN and so on), geofeeds that network operators publish themselves (RFC 8805 declarations of where a block is), and user-reported and measured data. For where geolocation data comes from and why sources disagree, see Why 11 IP databases give different locations.

For an anycast address, each of these sources can only supply a single point:

  • Registration data says who owns the block and where it is registered. 1.1.1.0/24 is registered under APNIC, so some databases show Australia.
  • The operator is Cloudflare, headquartered in the US, so some databases write the US, based on the operator or the geofeed's registered location.
  • Measurement data, if it comes from only a few probes, may place the address in the city of whichever node those probes most often reach.

Each of these results has a reason behind it, but none is where your connection actually went. A geolocation lookup returns the "registered location", not the "serving location". Ordinary IPs have similar errors, and Why IP geolocation is inaccurate explains them more fully. Anycast just magnifies the problem.

How do I confirm which node I actually reached?

The four methods below go from simple to detailed. The first two are the most direct for Cloudflare's network; the last two work for any anycast address.

Method 1: read the colo field of the Cloudflare trace

Most sites behind Cloudflare serve the path /cdn-cgi/trace. It returns plain text, and colo is the code of the data center that handled the request, using the IATA three-letter airport code.

curl -s https://1.1.1.1/cdn-cgi/trace
curl -s https://www.cloudflare.com/cdn-cgi/trace

The output looks like this (an example, with some fields removed):

ip=203.0.113.10
colo=NRT
loc=JP
http=http/2
tls=TLSv1.3

Here colo=NRT means this request landed on a node near Tokyo Narita. ip is your egress IP as Cloudflare sees it. loc is Cloudflare's country guess for your egress IP, which is your location, not the node's. The values above are only an example; go by your own output.

If the service you use is also behind Cloudflare, swap in that service's domain and check again. Different domains and different times can land on different colos, which is normal behavior for anycast.

The "multi-egress check" on cdnping's IP and environment check page reads the Cloudflare trace of sites such as Claude, ChatGPT and Grok, and shows the egress IP and node you get when visiting each of them in one place. It is useful for working out why a service is taking a different route.

Method 2: ask the DNS resolver where it is

Many anycast DNS services support a kind of CHAOS query that returns an identifier of the node that answered:

dig @1.1.1.1 id.server CH TXT +short
dig @<DNS address> hostname.bind CH TXT +short
# Windows
nslookup -type=txt -class=chaos id.server 1.1.1.1

For id.server, Cloudflare's 1.1.1.1 returns the data center's three-letter code. Not every public DNS service supports this query, and no response doesn't mean something is wrong. Move on to method 3.

Method 3: look at last-hop latency and reverse DNS in traceroute

# macOS / Linux
traceroute -n 1.1.1.1
mtr -rwc 50 1.1.1.1
# Windows
tracert -d 1.1.1.1

Look at two things:

  1. Latency on the last few hops. Light travels about 200 km per millisecond in fiber, so a round-trip time (RTT) of 10 ms means the target is at most about 1,000 km away; real routes detour, so the true distance is shorter. This physical upper bound doesn't depend on any database, and it is the most reliable way to tell whether a node is nearby.
  2. Reverse DNS names of the intermediate hops. Run again without -n: the PTR records of many backbone and data center routers contain a city or airport code. What reverse DNS can and cannot tell you is covered in How to do a reverse IP (PTR) lookup.

How to read asterisks and intermediate hops whose latency jumps around is explained item by item in How to read traceroute and mtr results, so I won't repeat it here.

Method 4: tell whether an address is anycast

If you're not sure whether an IP is unicast or anycast, measure its RTT from two places far apart at the same time. For example, if your machine in China and a cloud server on the US West Coast both see only a few milliseconds to the same IP, it has to be anycast: a unicast address can't be within a few hundred kilometers of two continents at once.

Another clue is the ASN. Anycast prefixes are usually announced by the ASN of a CDN, a DNS provider or a large cloud vendor; see What is an ASN and how to look one up. An ASN only hints that it "might be anycast"; confirming still takes latency measurements from multiple places.

Quick reference: symptoms and what to check

What you seeLikely causeWhat to check next
Public DNS geolocates to the US / AustraliaAnycast; the database holds the registered or operator-declared locationid.server query or the trace colo
IPs resolved for a CDN domain geolocate far awayAnycast, or DNS steered you to a node that isn't the nearesttrace colo + last-hop RTT in traceroute
colo is a code near you, but latency is highRoute detour, evening-peak congestion, or your egress is on a proxymtr, to see which hop starts to rise
colo shows overseas, and you're in mainland ChinaTraffic went through a proxy or an overseas egressEgress IP and split-routing check on the /en/ip page
Same IP, different colo than yesterdayThe carrier or service adjusted routing; normalAct only if latency gets clearly worse
RTT is low from two far-apart locationsConfirmed anycastNo need to look up geolocation any more

One more note on the fourth row: colo reflects where your traffic enters Cloudflare's network, so if you have a proxy on, you see the node near the proxy's egress. The mainland-China split-routing check on the /en/ip page reads the client IP echoed back by Chinese CDNs and compares it with the egress Cloudflare sees, which shows what traffic goes through a proxy. The mechanism is explained in How Chinese websites see your real IP.

A real example from cdnping's edge probe data

cdnping's API status probes run on Cloudflare's edge, so each probe itself lands in some colo. Take the data snapshot from 08:40 to 10:05 UTC on October 17, 2026 (242 probe records in total; cdnping only began collecting that day, so the sample is short and doesn't represent long-term behavior). The colo field of the probing node is DEN, which is Denver, USA.

In the same snapshot, the median (p50) probe time from this node to each API entry point is:

API entry pointHostnamep50 (ms)
xAI APIapi.x.ai42
OpenRouteropenrouter.ai54
Gemini APIgenerativelanguage.googleapis.com69
Claude APIapi.anthropic.com73
OpenAI APIapi.openai.com96
DeepSeek APIapi.deepseek.com353
Kimi Open Platform (Moonshot AI)api.moonshot.cn375
Zhipu BigModelopen.bigmodel.cn395
Volcengine Arkark.cn-beijing.volces.com485
Alibaba Cloud Model Studiodashscope.aliyuncs.com615
SiliconFlowapi.siliconflow.cn631

Source: cdnping edge probe data snapshot (2026-10-17, UTC 08:40-10:05); for how it's measured, see Methodology.

From Denver, the overseas entry points in the table are all under 100 ms, so we can infer they have nearby points of presence in North America. The Chinese entry points sit between 350 and 630 ms, and most likely have to cross the Pacific to reach the server. These numbers only show "how far it is from this one Denver node"; they can't prove by themselves which provider uses anycast. For that you would measure from several colos at once, which is the idea of method 4.

From your own location the results will be completely different. To see how fast these APIs are from your network, use the online speed test, which measures "first connection" (including DNS and the TLS handshake) and the "round trip" once the connection is reused. What these two numbers mean is covered in AI API latency breakdown.

For AI APIs and CDNs, is geolocation still worth checking?

For an anycast address you can mostly ignore geolocation. These are better things to look at:

  1. The node you actually reach: the trace colo or the DNS id.server. If the node code is in your region, routing is working as intended.
  2. Latency: estimating how far away the node is from RTT is more reliable than a geolocation database.
  3. Stability: whether latency to the same node jumps around affects you more than "where the IP is registered".

Geolocation is still useful for looking up your own egress IP. When a website decides where you are, or whether you're in a supported region, it looks at the geolocation of your egress IP, not of the anycast address you are visiting. Check that on the /en/ip page, which has 11 geolocation databases vote and reports a confidence level. If an AI service says your region isn't supported, go by the supported regions the provider publishes, and follow its terms of service and local regulations.

A checklist you can follow

  1. Run curl -s https://1.1.1.1/cdn-cgi/trace and note the colo and ip.
  2. Swap in the domain of the service you care about (provided it's on Cloudflare) and check the colo again.
  3. For a DNS address, run dig @<address> id.server CH TXT +short and look at the node code returned.
  4. Run mtr -rwc 50 <address> to get the last-hop RTT, and estimate the upper bound on node distance at about 100 km per millisecond of round-trip time.
  5. If colo is overseas and you are in mainland China, check your proxy and split-routing settings first, then look at latency.
  6. If you're not sure it's anycast, measure RTT from two far-apart locations at the same time.
  7. To see the geolocation of your own egress, use the multi-database vote on the /en/ip page; don't infer anything from the geolocation of an anycast address.

Related articles

Keep reading