skip to content

Domains & Traffic

Cloudflare answers for a zone's names and sends proxied records' traffic through its network, where load balancers pick healthy origins. Interviewers ask what the orange cloud changes.

on this pageshow

explore

questions

17

In Cloudflare DNS, what changes when an A, AAAA or CNAME record is Proxied instead of DNS-only?

level: juniorimportance: must knowfreq 75%

answer

  1. what the resolver gets back
  2. shared addresses, nearby data center
  3. only address records qualify
  4. TTL locked at Auto

basics

~20 s

A Proxied (orange-cloud) record is answered with Cloudflare anycast IPs, so its HTTP and HTTPS traffic passes through Cloudflare's cache, WAF and DDoS protection; a DNS-only (gray-cloud) record returns the real origin address and bypasses all of it.

solid answer

~40 s

Proxy status is a per-record switch that only `A`, `AAAA` and `CNAME` records have; `MX`, `TXT` and every other type are always DNS-only. When a record is **Proxied**, Cloudflare's answer contains Cloudflare anycast addresses instead of the record's content, so clients connect to a nearby Cloudflare data center. That data center applies caching, WAF rules, redirect rules and DDoS mitigation, then opens its own connection to the origin, which sees Cloudflare's IPs and finds the visitor's address in `CF-Connecting-IP`. A **DNS-only** record answers with the real IP or CNAME target: clients talk to the origin directly, anyone running `dig` learns the address, and Cloudflare reports only DNS analytics for it. Proxied records also carry a fixed TTL of Auto, 300 seconds, which cannot be edited.

go deeper

for a junior

Recall the two states and what a query returns in each: Cloudflare anycast IPs for Proxied, the real content for DNS only. Know that only A, AAAA and CNAME records can be proxied.

for a middle

Explain what happens on the request path: TLS terminates at Cloudflare, rules apply, a new connection reaches the origin, and the visitor IP moves into CF-Connecting-IP. Mention the fixed Auto TTL.

for a senior

Show which records belong gray-clouded and why, and what proxying changes for the origin: source-address logging, client certificates, firewalls that throttle Cloudflare's ranges.

for a principal

Frame proxy status as a default the team enforces: proxy every web record, keep a short list of justified DNS-only records, and review that list when services move.

## What proxy status is Every `A`, `AAAA` and `CNAME` record in a Cloudflare zone has a **proxy status** beside its name and content. The dashboard draws it as a cloud: **orange** for **Proxied**, **gray** for **DNS only**. In the DNS records API the same switch is the boolean `proxied` field, and the `proxiable` field in API responses says whether the record could be proxied at all. Only the address records qualify: `MX`, `TXT`, `SRV`, `CAA` and the other types are always DNS-only, because Cloudflare's proxy handles HTTP and HTTPS and nothing else. When a domain is onboarded through the dashboard, proxying starts switched on; in the API, `proxied` defaults to `false` when it is omitted. ## What a proxied answer contains A query for a proxied name never returns the record's content. Cloudflare answers with **anycast IP addresses**: addresses from Cloudflare's published ranges that are announced from data centers worldwide and shared by all proxied hostnames. A browser that resolves the name therefore connects to a nearby Cloudflare data center, which: - terminates the visitor's TLS connection with an edge certificate; - applies the zone's configuration, such as caching, WAF custom and managed rules, redirect rules and DDoS mitigation; - opens a separate connection to the address in the record and forwards whatever is left of the request. A proxied `CNAME` is **flattened** by default: Cloudflare follows the chain itself and answers with its own anycast addresses rather than exposing the target name. ## What DNS-only means A DNS-only record behaves like a record at any authoritative DNS provider. The answer is the record's content: the origin's IP for `A` and `AAAA`, the target name for `CNAME`. Clients connect straight to that address, so: 1. the origin IP is visible to anyone who queries the record; 2. none of the proxy features apply to that traffic, because it never reaches Cloudflare's HTTP layer; 3. Cloudflare can show DNS analytics for the name, but no HTTP analytics. DNS-only is the right choice for records that do not carry web traffic: mail hosts, domain-verification CNAMEs, hosts for SSH or other non-HTTP protocols, and hostnames pointing at a SaaS platform or another CDN that terminates TLS itself. | | Proxied (orange) | DNS only (gray) | |---|---|---| | Answer to a query | Cloudflare anycast IPs | The record's real content | | HTTP features (cache, WAF, DDoS) | Applied | Not applied | | TTL | Auto, fixed at 300 seconds | Editable: 60 seconds (30 on Enterprise) to 1 day, or Auto | | Origin IP visible in DNS | No | Yes | | Analytics | HTTP and DNS | DNS only | ## Side effects the origin notices Putting a proxy in front of a server changes what the server sees: - **Source address**: every request arrives from a Cloudflare IP. The visitor's address travels in the `CF-Connecting-IP` and `X-Forwarded-For` request headers, so logging, rate limits and geolocation at the origin must read those instead of the socket address. - **TLS**: the visitor's TLS session ends at Cloudflare, and Cloudflare opens its own to the origin, so an origin that validated client certificates no longer receives them. - **Headers**: Cloudflare adds and modifies request headers, which breaks software that parses headers by position. - **Firewalls**: traffic from a few Cloudflare ranges can look like an attack to an origin firewall; those ranges must be allowed. ## Checking a record from outside Two quick checks tell which state a name is really in, whatever the dashboard says: - **The DNS answer.** `dig +short www.example.com A` returns addresses from Cloudflare's published IP ranges for a proxied name, and the record's own content for a DNS-only one. - **The HTTP response.** A response that went through the proxy carries a `Cf-Ray` header, a Ray ID ending in the three-letter code of the data center that handled it. A DNS-only name answers straight from the origin, normally without one. A name can be set to Proxied and still answer with the origin while the zone is pending, which is why the outside view is worth checking after onboarding. ## Rules worth remembering - **Fixed TTL.** A proxied record's TTL is Auto, 300 seconds, and cannot be edited, so that Cloudflare can change the anycast addresses quickly. - **Mixed records on one name.** If several `A` or `AAAA` records share a name and at least one is proxied, Cloudflare treats all of them as proxied. - **CNAME chains.** If any hostname on a CNAME chain within the same account is proxied, the request is proxied. - **Pending zones.** Until a newly added zone is activated, every record answers as DNS-only, even those set to Proxied. - **Refused targets.** Cloudflare warns about, or refuses, proxying some CNAME targets known to belong to other CDNs, DKIM or domain validation, because a proxied version would break them.

  • In Cloudflare DNS, what happens when a name has two A records and only one of them is Proxied?
    Cloudflare treats every `A` and `AAAA` record on that name as proxied. Queries are answered with anycast addresses and requests to both origins go through the proxy. The same holds along a CNAME chain in one account: if any hostname on the chain is proxied, the request is proxied.
  • Why should a CNAME that proves domain ownership to a third-party service, or points at a SaaS-hosted site, usually stay DNS-only?
    A proxied CNAME returns Cloudflare's addresses instead of the expected target, so the verifier cannot match it and verification fails. For a SaaS host, both Cloudflare and the platform try to terminate TLS and redirect to HTTPS, which causes certificate errors and redirect loops, unless the platform supports Cloudflare's proxy, for example through Cloudflare for SaaS.
  • After switching a record to Proxied, why do an origin's access logs show only a handful of client IPs?
    Every request now arrives from Cloudflare's IP ranges, not from visitors. Cloudflare passes the visitor's address in `CF-Connecting-IP` and `X-Forwarded-For`; the origin's logging, allowlists and rate limits must read those headers, and its firewall must allow Cloudflare's ranges so it does not block them.

A proxied record is like publishing a company switchboard number instead of an employee's direct line: callers reach the switchboard, which screens and routes them, and the direct line stays private. A DNS-only record prints the direct line in the phone book.

  • MX and TXT records can be switched to Proxied like A records.
  • A gray-cloud record still gets WAF and DDoS protection for its web traffic.
  • You can raise a proxied record's TTL to cut DNS query volume.
  • With the orange cloud, the origin still sees each visitor's IP as the source address.
  • A proxied answer returns the origin IP along with a Cloudflare IP.
open as a page

In a Cloudflare full setup, what must change at the registrar to activate a zone, and why does it stay Pending until then?

level: juniorimportance: must knowfreq 45%

basics

~20 s

Replace the domain's nameservers at the registrar with exactly the two Cloudflare nameservers assigned to the zone. Until the parent zone delegates to them and Cloudflare's activation check sees it, the zone stays Pending Nameserver Update and proxies nothing.

open as a page

With Cloudflare Load Balancing steering set to Off, how does traffic move between pools as endpoints fail, and when does the fallback pool take over?

level: middleimportance: must knowfreq 42%

basics

~20 s

Off steering sends traffic to the first healthy pool in list order. A pool below its Health Threshold goes Critical and the next pool takes over; when every pool is Critical, the fallback pool serves without any health check.

open as a page

A site's apex and www records are proxied on Cloudflare, yet attackers reach the origin directly; which records in the zone could have exposed its IP?

level: seniorimportance: must knowfreq 60%

basics

~20 s

Any answer carrying the origin's address: a DNS-only A, AAAA or CNAME for another service on that server, a mail host or _dc-mx answer, a DNS-only wildcard, and every record while the zone was pending activation.

open as a page

In Cloudflare Load Balancing, what roles do the load balancer, its pools, their endpoints and the health monitors each play?

level: juniorimportance: should knowfreq 36%

basics

~20 s

A Cloudflare load balancer is a hostname on a zone that picks a pool for each request. A pool groups endpoints, the origin addresses with weights. A monitor attached to the pool probes those endpoints so only healthy ones receive traffic.

open as a page

How do Cloudflare Load Balancing's traffic steering policies (Off, Random, Geo, Dynamic, Proximity, Least Outstanding Requests) pick a pool, and what does endpoint steering add?

level: middleimportance: should knowfreq 34%

basics

~20 s

Global steering picks a pool: by order (Off), weighted chance (Random), the client's region or country (Geo), probe latency (Dynamic), GPS distance (Proximity) or in-flight requests (Least Outstanding Requests). Endpoint steering then picks an endpoint inside it: Random, Hash or Least Outstanding Requests.

open as a page

In Cloudflare DNS, why can't mail go through the proxy, and what happens when an MX record points at a proxied hostname?

level: middleimportance: should knowfreq 35%

basics

~20 s

Cloudflare's proxy does not carry SMTP, so MX records are always DNS-only; an MX aimed at a proxied name is answered with a generated _dc-mx name resolving to the origin IP, which keeps mail flowing but exposes that IP.

open as a page

Behind a proxied Cloudflare record, which ports reach the origin, and what do an SSH host and a UDP game server need instead?

level: middleimportance: should knowfreq 50%

basics

~20 s

A proxied Cloudflare record accepts HTTP on 80, 8080, 8880, 2052, 2082, 2086, 2095 and HTTPS on 443, 2053, 2083, 2087, 2096, 8443; SSH, UDP game traffic and other ports are dropped, so those hosts need DNS-only or Spectrum.

open as a page

In Cloudflare DNS, how does CNAME flattening let a zone apex point at a hostname, and when does it apply to other records?

level: middleimportance: should knowfreq 35%

basics

~20 s

Cloudflare follows the CNAME chain itself and answers with the final A or AAAA addresses, so an apex CNAME never reaches resolvers as a CNAME. It is on by default at the apex on every plan; paid zones can flatten all or chosen CNAMEs.

open as a page

Once a zone is active on Cloudflare, how do you turn on DNSSEC, and what must happen at the registrar before it takes effect?

level: middleimportance: should knowfreq 40%

basics

~20 s

Select Enable DNSSEC on the zone's DNS Settings page: Cloudflare signs the zone and shows a DS record, which you add at the registrar. DNSSEC stays pending until the DS is published; Cloudflare Registrar domains get theirs automatically.

open as a page

In a Cloudflare partial (CNAME) setup, what does the existing authoritative DNS provider publish, and which plans allow it?

level: middleimportance: should knowfreq 35%

basics

~10 s

The existing provider stays authoritative and publishes a cloudflare-verify TXT record plus, for every hostname to proxy, a CNAME to that hostname under cdn.cloudflare.net. A partial setup needs a Business or Enterprise plan.

open as a page

With Cloudflare Load Balancing cookie affinity (__cflb), what happens to a user's session when their region fails and later recovers, and what do Zero-Downtime Failover and endpoint drain change?

level: seniorimportance: should knowfreq 31%

basics

~20 s

The __cflb cookie pins a user to one endpoint while it is healthy. If it fails, Cloudflare picks another endpoint and sets a new cookie, losing in-memory session state; after recovery, moved users stay put until that cookie expires.

open as a page

A team switched its Cloudflare load balancer for api.example.com to DNS-only; failover now lags, sessions break, and some European users reach the US pool. Why, and what restores it?

level: seniorimportance: should knowfreq 26%

basics

~20 s

A DNS-only load balancer only picks the endpoint address in a DNS answer. Resolvers cache it, so failover waits; without the proxy there is no affinity cookie; clients are located by resolver or ECS subnet. Proxying it again restores all three.

open as a page

A Cloudflare Load Balancing monitor marks the on-premises pool's endpoints unhealthy, yet curl to their /health path returns 200; what do you check, and how do you fix it?

level: seniorimportance: should knowfreq 29%

basics

~20 s

Read the monitor's failure reason, then compare the probe with your curl: Cloudflare IPs blocked or rate limited, a different Host header, an HTTP-to-HTTPS redirect, an expected body beyond the first 10 KB, an untrusted certificate, or Authenticated Origin Pulls without Simulate Zone.

open as a page

An agency switches a client's DNSSEC-signed zone to Cloudflare's nameservers, and validating resolvers now return SERVFAIL; why, and how should the move have run?

level: seniorimportance: should knowfreq 30%

basics

~20 s

The registrar still publishes the old provider's DS record, which matches none of Cloudflare's keys, so validating resolvers reject every answer. Remove the DS and let its TTL expire before switching, or use Cloudflare's multi-signer migration to stay signed throughout.

open as a page

As the lead onboarding a client that wants to keep its current DNS provider, how do you decide between a Cloudflare full setup and a partial setup?

level: principalimportance: should knowfreq 25%

basics

~20 s

Choose full when Cloudflare can be authoritative: any plan, DNS-layer DDoS protection, Cloudflare DNSSEC, one place for records. Choose partial only when the provider must stay authoritative and the client accepts a Business plan, per-hostname CNAMEs and a provider-dependent apex.

open as a page

As the lead for many Cloudflare zones, would you put the account-level enforce DNS-only switch in your incident runbook, and on what terms?

level: principalimportance: nice to knowfreq 15%

basics

~20 s

Only as a tested last resort: enforce_dns_only bypasses Cloudflare's proxy for every zone at once, exposing every proxied origin and removing WAF, cache and DDoS protection, so origins need capacity, publicly trusted certificates and a rotation plan first.

open as a page