Mondoze Knowledge Base

Search our articles or browse by category below

Warning about exposing your origin IP address

Last modified: October 5, 2022
You are here:
Estimated reading time: 2 min

Warning about Exposing your Origin IP Address

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.


Overview

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

dig query against your orange-cloud 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 destine to your site.

When your server’s IP address is expose, 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 AAAAACNAME, 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.

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-cloud because email isn’t route 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 avoide
  • Orange-cloud all records that share the same origin IP address as your root domain and can be safely proxied through Cloudflare
Was this article helpful?
Dislike 0
Views: 99