Web and technology

Cloudflare DNS: orange or gray cloud, what to proxy and what not to

By Edgar Jaimes 4 min read

Data center racks with dozens of colorful cables and green lights in the dark

What the orange or gray cloud means in Cloudflare DNS, which records can be proxied (A, AAAA, CNAME) and which to leave DNS only, like MX and TXT.

You open your domain's DNS panel and see a column full of clouds: some orange, some gray. You change one out of curiosity and suddenly your email stops arriving or your website loses its protection. That little cloud decides far more than it seems.

The orange or gray cloud changes the path each record's traffic takes, so you should choose it record by record.

What do the orange and gray clouds mean?

Orange means “proxied” and gray means “DNS only”. According to Cloudflare's documentation, the proxy status controls whether the record's HTTP and HTTPS traffic goes through Cloudflare's network. With the orange cloud, Cloudflare can protect, cache and optimize it. With the gray one, the query returns your server's real IP and Cloudflare does not route that web traffic.

Blue and gray network cables connected to a numbered patch panel
Each record decides whether traffic goes through Cloudflare or straight to your server. Photo: Unsplash

Which records can be proxied?

Only A, AAAA and CNAME. The documentation clarifies that only records used to resolve IP addresses support proxying, and that other types, like MX or TXT, are always DNS only. To get your bearings:

RecordWhat it doesCan it be proxied?
APoints a name to an IPv4 addressYes
AAAAPoints a name to an IPv6 addressYes
CNAMEPoints a name to another (canonical) nameYes, with restrictions
MXSays where email is deliveredNo, always DNS only
TXTStores text, such as verificationsNo, always DNS only

The definitions come from the DNS record types reference. If your domain is new, it also helps to decide beforehand whether .co or .com suits you.

When should you leave the cloud gray?

When the record does not serve web traffic or when something external needs to see your server as it is. Cloudflare states that certain records must be DNS only because they are incompatible with the HTTP proxy, and cites email records as a typical example. You also should not proxy the records that prove you own the domain. In addition, Cloudflare may show a warning or prevent proxying a CNAME, for example when it points to another CDN provider or is a DKIM validation record.

Common mistake: turning on the orange cloud on the subdomain where your mail server lives. Email does not travel over HTTP, so the proxy does not apply and you can end up with failed deliveries. If you want to understand what else protects your email, check SPF, DKIM and DMARC.

What is the risk with the gray cloud?

That anyone who queries that record can see your server's real IP. Cloudflare warns about it: with DNS only, the origin address is exposed. With the orange cloud, whoever queries gets Cloudflare addresses and not yours. There is also an easily overlooked detail: if a name has several A or AAAA records and you proxy one, Cloudflare treats all of that name's records as proxied.

Circuit board with a central processor surrounded by small components
Behind every address there is a real server: the orange cloud keeps it from being exposed. Photo: Unsplash

What about TTL and changes?

Proxied records have an automatic TTL of 300 seconds and it cannot be edited. According to Cloudflare, that short time makes changes to Anycast addresses apply quickly. It is useful if you change servers, but it does not replace checking the encryption between Cloudflare and your origin: for that, see Cloudflare's SSL/TLS modes. And if you are setting up a new domain, protection stays pending until ownership is verified, which according to Cloudflare can take up to 24 hours.

How do I decide record by record?

Ask yourself one question: does this name serve a web page? If the answer is yes and it is A, AAAA or CNAME, it normally goes orange. If it is email, verification or any record that is not web traffic, it goes gray. Before touching anything, write down what you have today, because setups like domain email with Email Routing add MX and TXT records that you should not alter. If you want to see what else the account includes at no cost, review what Cloudflare's free plan includes.

In short

That little orange or gray cloud is not decoration: it defines whether your website goes through Cloudflare's protection and whether your server stays in plain sight. Proxy what serves pages, leave email and verifications as DNS only, and write everything down before changing anything. If you would rather we review it with you, check out our hosting and domains service.

Frequently asked questions

What does the orange cloud mean in Cloudflare?

It means the record is proxied: according to Cloudflare, that record's HTTP and HTTPS traffic goes through its network, which can protect, cache and optimize it.

Which DNS records can be proxied?

Only those used to resolve IP addresses: A, AAAA and CNAME. Cloudflare states that other types, like MX or TXT, are always DNS only.

Why does my email fail if I turn on the orange cloud?

Email records are incompatible with the HTTP proxy. Leave them as DNS only and do not proxy the hostname your MX points to.

What TTL do proxied records have?

According to Cloudflare, all proxied records have TTL set to Auto, equal to 300 seconds, and that value cannot be edited.

What happens if I leave a record as DNS only?

The query returns your server's real IP and Cloudflare does not route web traffic, so you lose its protection and its HTTP analytics on that record.

Do not stop at the theory: apply it to your business

We implement hosting and domains end to end, with your real operation. The first conversation is free.

Keep reading