Skip to content
AnswerWell geo Documentation

Research · 10 min read · Answerwell

DNS Record Proxy Status, Traffic Routing, Bulk Edits, and Enforce DNS-Only

How proxied and DNS-only A, AAAA, and CNAME records change DNS answers, HTTP routing, security features, and account-level enforce DNS-only.

This page summarizes Cloudflare documentation on proxy status: whether HTTP/HTTPS traffic for a hostname routes through Cloudflare’s reverse proxy (orange cloud, Proxied) or resolves to your origin IP in public DNS (gray cloud, DNS-only). It also covers bulk proxy edits and the account API setting enforce_dns_only, which temporarily makes every proxied record behave like DNS-only without changing your DNS table.

Proxy status: what DNS answers mean for visitors

Section titled “Proxy status: what DNS answers mean for visitors”

Proxy status controls whether HTTP/HTTPS traffic for a record goes through Cloudflare or straight to your origin, while the DNS record still describes where your service lives.

While your DNS records contain information about your domain, the proxy status controls whether HTTP/HTTPS traffic for that record routes through Cloudflare’s network or goes directly to your origin server.

— Cloudflare, Proxy status

When your zone is active and a record is Proxied, Cloudflare answers DNS with anycast IPs, not the origin IP in the record:

If your domain’s status is active and the queried DNS record is set to proxied, Cloudflare responds with an anycast IP address, instead of the origin IP address defined in your DNS table.

— Cloudflare, How Cloudflare DNS works

Only A, AAAA, and CNAME records used for IP resolution can be proxied; types such as MX and TXT are always DNS-only. See DNS record types and Proxying limitations.

Proxied records (orange cloud): routing, benefits, and TTL

Section titled “Proxied records (orange cloud): routing, benefits, and TTL”

Why a dig shows Cloudflare IPs instead of my origin

Section titled “Why a dig shows Cloudflare IPs instead of my origin”

With Proxied records, lookups return Cloudflare anycast addresses so clients connect to Cloudflare first; Cloudflare then forwards HTTP/HTTPS to your origin.

When you add a domain to Cloudflare and proxy its DNS records, visitors who look up your domain receive a Cloudflare IP address instead of your origin server’s real IP address. This hides your origin server’s IP address and allows Cloudflare to optimize, cache, and protect all requests before forwarding them to you.

— Cloudflare, Cloudflare IP addresses

Proxied names share Cloudflare’s published anycast ranges (unless you use BYOIP, where proxied answers can use your own announced prefixes). Your origin firewall sees traffic from Cloudflare IPs, not each visitor; blocking those ranges breaks the site. See Allow Cloudflare IP addresses.

Cloudflare describes proxied (orange-clouded) records as the basis for edge security and performance:

When you set a DNS record to Proxied — shown as an orange cloud icon in the dashboard, also known as “orange-clouded” — Cloudflare can:

Protect your origin server (the server hosting your website or application) from DDoS attacks ↗︎. Optimize, cache, and protect all requests to your application. Apply your Cloudflare product configurations (such as WAF rules, caching, and redirect rules) to incoming traffic.

— Cloudflare, Proxy status

Universal SSL edge certificates are issued only when the matching record is Proxied; with DNS-only, the origin must terminate TLS.

HTTP/HTTPS analytics in About Cloudflare Analytics reflect traffic proxied through Cloudflare (orange-clouded), as configured in DNS—not unproxied record traffic.

Proxied records use TTL Auto (300 seconds) and you cannot edit it:

By default, all proxied records have a time to live (TTL) of Auto, which is set to 300 seconds. This value cannot be edited.

— Cloudflare, Proxy status

Local caches may keep old answers longer than five minutes; see Time to Live (TTL).

DNS-only records (gray cloud): direct resolution and trade-offs

Section titled “DNS-only records (gray cloud): direct resolution and trade-offs”

What changes when proxy status is DNS-only

Section titled “What changes when proxy status is DNS-only”

DNS-only (gray cloud) means Cloudflare returns the record’s real target in DNS and does not proxy HTTP/HTTPS through its network:

When an A, AAAA, or CNAME record is DNS-only — shown as a gray cloud icon in the dashboard, also known as “gray-clouded” — DNS queries for these will resolve to the record’s actual origin IP address

— Cloudflare, Proxy status

That exposes the origin IP to anyone who queries DNS and removes proxy-layer protection for that hostname’s web traffic. Cloudflare also cannot optimize, cache, or protect those HTTP/HTTPS requests the same way, and does not provide HTTP/HTTPS analytics for them (DNS analytics may still apply in some setups—see About Cloudflare Analytics).

Common DNS-only cases are listed in Use cases:

Scenario Why DNS-only
MX and mail-only A/AAAA SMTP is not proxied on port 25 by default; proxying breaks delivery unless you use Spectrum for SMTP
Domain verification CNAME/TXT Proxied verification CNAMEs return Cloudflare IPs; third parties cannot verify (e.g. Google Workspace, ACM, Squarespace)
SaaS-hosted sites (Wix, etc.) Double SSL termination, redirect loops, or broken assets unless the platform supports Cloudflare proxy (Use cases — SaaS)
FTP, SSH, RDP, games Proxy handles HTTP/HTTPS only; non-HTTP connections fail at the edge
Webhooks/API with strict origin IP checks Remote party may not accept Cloudflare IP ranges

Full setup notes proxied vs DNS-only on each A/AAAA/CNAME toggle. For zones that should never proxy HTTP, DNS setups documents account or per-zone zone_mode: dns_only via API (distinct from temporary enforce DNS-only below).

Mixed proxy status: same name, CNAME chains, and SaaS priority

Section titled “Mixed proxy status: same name, CNAME chains, and SaaS priority”

Multiple A or AAAA records on one hostname

Section titled “Multiple A or AAAA records on one hostname”

If any A or AAAA on the same name is proxied, all of them are treated as proxied:

If you have multiple A or AAAA records on the same name and at least one of them is proxied, Cloudflare will treat all A or AAAA records on this name as being proxied.

— Cloudflare, Proxy status

Round-robin DNS recommends using either all proxied or all unproxied on a name to avoid surprises when you add or remove one orange-cloud record.

If any hostname in a CNAME chain is proxied, traffic for names upstream in the chain can still be treated as proxied (see examples in Proxy status — Mix proxied and unproxied). CNAME to a different Cloudflare account is prohibited (Error 1014).

Multiple proxied records and Cloudflare for SaaS

Section titled “Multiple proxied records and Cloudflare for SaaS”

When the same hostname is proxied in more than one zone (often Cloudflare for SaaS), Certificate and hostname priority defines which record controls zone settings and origin. An unproxied (gray) record means that zone’s settings are not applied and the client may reach another origin directly.

Proxy status in the dashboard: bulk edit on selected records

Section titled “Proxy status in the dashboard: bulk edit on selected records”

To change many records in one zone, use Batch record changes:

  1. Open DNS → Records for the zone (Records).

  2. Select A, AAAA, and/or CNAME records (only those types can be proxied).

  3. Choose Edit records, set Proxied or DNS only, then Save.

Bulk edit only toggles between Proxied and DNS only; mixed selections may leave some rows unchanged if they already match the chosen status. Import/export preserves status via cf-proxied:true|false tags (Import and export records).

For per-record edits, Pause Cloudflare also documents turning Proxy status off on one record instead of pausing the whole zone.

Account enforce_dns_only: emergency DNS-only without editing records

Section titled “Account enforce_dns_only: emergency DNS-only without editing records”

enforce_dns_only is an account-level break-glass control: while enabled, DNS answers for proxied A/AAAA/CNAME records return underlying record content (origin IPs or CNAME targets), not Cloudflare anycast IPs—functionally like setting every proxied record to DNS-only without changing the DNS table.

The enforce DNS-only setting is an account-level break-glass mechanism that allows you to bypass Cloudflare’s reverse proxy for all zones in your account in a single action. When enabled, Cloudflare responds to DNS queries with the underlying record content — origin IP addresses for proxied A and AAAA records, and CNAME targets for proxied CNAME records — instead of Cloudflare’s anycast IP addresses

— Cloudflare, Enforce DNS-only

Characteristics (Enforce DNS-only — Key characteristics):

  • Account-level — all zones in the account at once (one API call).
  • Non-destructive — DNS rows stay proxied in the UI; disabling restores normal proxy answers.
  • API-only — not available in the dashboard (changelog).

Edge behavior takes effect immediately at Cloudflare, but resolvers may cache prior anycast answers for up to the proxied Auto TTL (~5 minutes) when toggling on or off.

Preparation before enabling enforce_dns_only

Section titled “Preparation before enabling enforce_dns_only”

From Enforce DNS-only — Preparation:

  • Confirm origins can handle full direct load (no edge caching or filtering).
  • Assume all origin IPs and proxied CNAME targets become visible in DNS.
  • Test the API in a staging account first.
  • For HTTPS to browsers, use publicly trusted origin certificates—not Origin CA certs trusted only by Cloudflare.

Enable (Enforce DNS-only — Enable) — token needs Account DNS Settings Write or Update DNS Settings:

curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/dns_settings" \
--request PATCH \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--json '{
"enforce_dns_only": true
}'

Disable — set "enforce_dns_only": false (Disable enforce DNS-only).

Read current value — GET the same endpoint (Check current status).

Records included and excluded from enforce DNS-only

Section titled “Records included and excluded from enforce DNS-only”
Affected (examples) Not affected (examples)
Proxied LB records in DNS table R2 custom domains (read-only proxied)
Proxied records matching a Worker route Spectrum app records
Cloudflare for SaaS fallback origin Tunnel CNAMEs to tunnel hostnames
Workers custom domains, Web3 gateway records

While active, zone transfers from a primary do not change stored proxy status; when you turn enforce off, records return to proxied behavior (Zone transfers interaction).

Exposed origin IPs, mail, and proxy limitations

Section titled “Exposed origin IPs, mail, and proxy limitations”

Why DNS-only or mixed records leak origin addresses

Section titled “Why DNS-only or mixed records leak origin addresses”

When your server’s IP address is exposed, your server is more vulnerable to direct attacks.

— Cloudflare, Exposed IP addresses

The dashboard warns when records may expose origin IPs (Exposed IP addresses — Dashboard warnings). Mitigations include proxying all web-capable names on the same IP, obfuscating unavoidable DNS-only names (Protect origin IP address), and separating mail from web (Email issues).

If MX points at the same name as a proxied web A record, Cloudflare may inject _dc-mx… names so mail bypasses the HTTP proxy (Unexpected DNS records). Prefer MX → mail.example.com with a DNS-only mail A record.

Proxying limitations blocks some vendor CNAME targets (Mailchimp, Zoho, SES validation hosts, etc.) and documents incompatibility with NTLM/Kerberos through the HTTP proxy.

WAF rules and Bot Management apply once a CNAME is proxied—another reason to keep verification and non-HTTP records DNS-only until you understand the traffic path.

  • Leaving one A proxied on a name while intending other A records on that name to stay public—they are all treated as proxied (Proxy status).
  • Proxying SaaS or verification CNAMEs, causing SSL or ownership failures (Use cases, Vendor-specific DNS records).
  • Blocking Cloudflare IPs at the origin after enabling proxy (Cloudflare IP addresses).
  • Enabling enforce_dns_only in production without origin capacity or public TLS (Enforce DNS-only).
  • Creating Rules for hostnames that are not proxied—dashboard prompts to proxy or add records (Troubleshoot Rules).

Before going live, Minimize downtime recommends an active edge certificate and allowed Cloudflare IPs before switching records to Proxied.

  1. In the Cloudflare dashboard, open DNS → Records and confirm A/AAAA/CNAME web hostnames show Proxied (orange) or DNS only (gray) as intended (Proxy status, Set up a primary zone).

  2. From a resolver outside your network, run dig +short YOUR_HOSTNAME A (and AAAA if used). Proxied names should return Cloudflare anycast IPs, not your origin (Proxy DNS records, FAQ).

  3. If you use account enforce DNS-only, call GET https://api.cloudflare.com/client/v4/accounts/{account_id}/dns_settings and confirm enforce_dns_only is false unless you are in a planned incident (Check current status).

  4. For mail, run dig YOUR_DOMAIN MX +short and follow any _dc-mx target with dig … A +short to see whether mail exposes the same IP as the website (Unexpected DNS records).

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about, and we will follow up.