Warning about exposing your origin IP address via DNS records

When you have grey-clouded DNS records, Cloudflare may warn you that your DNS records might reveal your origin server’s IP address. This is most common with A, AAAA, CNAME, and MX DNS records.


When your DNS records are orange-clouded, Cloudflare speeds up and protects your site.

A dig query against your orange-clouded root domain returns a Cloudflare IP address. This way, your origin server’s IP address remains concealed from the public. Remember that orange cloud benefits only apply to HTTP traffic.

Under certain circumstances, the DNS Records panel in the Cloudflare dashboard DNS app displays a warning whenever you have grey-clouded DNS records that may expose your origin server’s IP address. This warning does not block, or in any way affect, traffic destined to your site.

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

Below are two cases where you might see an IP exposure warning from Cloudflare.

Case 1 - DNS records that should be orange-clouded

If you see the following warning:

This record is exposing your origin server’s IP address. To hide your origin IP address, and increase your server security, click on the grey cloud to change it to orange.

Cloudflare recommends orange-clouding the record so that any dig query against that record returns a Cloudflare IP address and your origin server IP address remains concealed from the public.

To take advantage of Cloudflare’s performance and security benefits, we recommend you orange-cloud DNS records that handle HTTP traffic, including A, AAAA, and CNAME. Do not orange-cloud MX records.

Case 2 - DNS records that need to be grey-clouded

When you have a grey-clouded A, AAAA, CNAME, or MX record pointing to the same origin server hosting your site, Cloudflare displays one of the following warnings:

An A, AAA, CNAME, or MX record is pointed to your origin server exposing your origin IP.

This record is exposing your origin server’s IP address, potentially exposing it to denial of service.

Wildcard "*" DNS records can only be proxied to Cloudflare for domains on the Enterprise plan. For all other plans, a wildcard DNS record reveals the origin IP.

A dig query against these records reveals your origin server’s IP address. This information makes it easier for potential attackers to target your origin server directly.

However, there are times when some of your DNS records need to remain grey-clouded. For example:

  • MX records must be orange-clouded because email isn’t routed via HTTP; otherwise, email routing won’t work
  • When you have to host multiple services (for example, a website and email) on the same physical server

To mitigate this risk, we recommend that you:

  • Host your email service in a server (in-house or external) that is different from your site’s origin server
  • Analyze the impact of hosting multiple services on the same origin server in cases when having grey-clouded DNS records can’t be avoided
  • Orange-cloud all records that share the same origin IP address as your root domain and can be safely proxied through Cloudflare

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.