How Does a Load Balancer Interact with Existing DNS Records?

When you create a Load Balancer on Cloudflare, you have two options:

  1. Create it with a unique hostname - e.g. - where no existing DNS record shares the same name.
  2. Create it with the same hostname as an existing DNS record - e.g. (Load Balancer) - where may already exist as an A, AAAA or CNAME record.

In the case of #2, the Load Balancer will supersede the DNS record if the DNS record is an A, AAAA or CNAME record. It will not supersede other record types.

  • Disabling the Load Balancer by toggling it to "Off" in the Cloudflare dashboard, or by setting "enabled": false via the API will cause the existing DNS record to be served again.
  • If there is no existing DNS record with the same name, disabling a Load Balancer will prevent clients from resolving the host and traffic will fail.


Not finding what you need?

95% of questions can be answered using the search tool. This is the quickest way to get a response.

Powered by Zendesk