Cloudflare Docs
Learning Paths
Edit this page
Give us feedback
Set theme to dark (⇧+D)

Proxy DNS records

  2 min read

Since it affect so many other parts of Cloudflare, you should proxy your DNS records through Cloudflare.

What is DNS?

DNS stands for Domain Name System.

Without DNS, we would have to remember long strings of numbers to access our favorite websites. With DNS, you just have to remember something like example.com and your browser goes to an IP address like 192.0.2.1.

For more details on DNS, refer to the Learning Center.

What are DNS records?

DNS records are instructions that live in authoritative DNS servers and provide information about a domain including what IP address is associated with that domain and how to handle requests for that domain.

What is “proxying my DNS through Cloudflare”?

When you proxy specific DNS records through Cloudflare - specifically A, AAAA, or CNAME records — DNS queries for these will resolve to Cloudflare Anycast IPs instead of their original DNS target. This means that all requests intended for proxied hostnames will go to Cloudflare first and then be forwarded to your origin server.


This behavior allows Cloudflare to optimize, cache, and protect all requests to your application, as well as protect your origin server from DDoS attacks.

Because requests to proxied hostnames go through Cloudflare before reaching your origin server, all requests will appear to be coming from Cloudflare’s IP addresses (and could potentially be blocked or rate limited). If you use proxied records, you may need to adjust your server configuration to allow Cloudflare IPs.

Cloudflare Anycast IPs used to proxy traffic on your domain are assigned automatically. These IPs might change at any time for operational reasons. If you need to allowlist Cloudflare IPs on your infrastructure or hosting provider, include the full list of Cloudflare Anycast IPs.

As an Enterprise customer, you have the option to get static IPs or bring your own IPs (BYOIP).

​​ Prerequisites

Before proxying your records, review our guide that explains what proxying does and what limitations it has.

You may also need to allow Cloudflare IP addresses at your origin to prevent requests from being blocked.

​​ How to do it

Then, update your Cloudflare DNS records so their Proxy status is Proxied.

Proxy status affects how Cloudflare treats traffic intended for specific DNS records