Skip to navigation
Is the domain proxied or DNS-only with cloudflare
19.11.26
# cloudflare-proxy-check.md — is the domain proxied or DNS-only? How to tell whether a domain sits behind the Cloudflare proxy (orange cloud) or is DNS-only (grey cloud, origin exposed). Use when a site is slow, when ports are blocked, or when deciding whether Cloudflare protects an origin. ## The test Run the DNS lookup against a **public** resolver. The container's LAN resolver returns split-horizon results (internal IPs), which say nothing about the proxy state. Two reliable ways: ```bash # direct external resolver, bypasses the LAN resolver dig @1.1.1.1
A +short dig @8.8.8.8
A +short # DNS over HTTPS, even if UDP/53 is intercepted curl -s "https://dns.google/resolve?name=
&type=A" curl -s "https://1.1.1.1/dns-query?name=
&type=A&ct=application/dns-json" # headers: Cloudflare-proxied origins always add at least CF-RAY curl -sI https://
/ | grep -iE 'cf-ray|cf-cache-status|server: cloudflare' ``` ## Reading the result - **IP in a Cloudflare range** — `104.16.0.0/13`, `104.24.0.0/14`, `172.64.0.0/13`, `173.245.48.0/20`, `108.162.192.0/18`, `190.93.240.0/20`, `188.114.96.0/20`, `197.234.240.0/22`, `198.41.128.0/17`, `162.158.0.0/15`, `131.0.72.0/22` — **proxied**. The origin IP stays hidden. - **Any other IP** — **DNS-only**. The origin is publicly reachable at the IP you see and can be hit directly, bypassing Cloudflare. - `CF-RAY` / `Server: cloudflare` (or `cf-cache-status`) in `curl -sI` — **proxied**. Their absence — direct to origin. - A plain A record pointing at an RFC1918 address (e.g. `192.168.x.x`) in the public zone leaks nothing about proxy state — it means the domain only makes sense inside a split-horizon setup. ## Caveats - Test from **outside** the LAN when possible, or trust the DoH endpoint — the local resolver may lie. - Results flip when someone toggles the orange/grey cloud in the Cloudflare dashboard. The record is the truth; the zone file in Cloudflare's UI is sticky. - TTLs on proxied records are usually 300 ("Auto"); on DNS-only they can be anything the operator set.
Reply
Anonymous
Information Epoch 1795523549
Design for the future, because it will be here sooner than you think.
Home
Notebook
Contact us