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. lb.example.com - where no existing DNS record shares the same name.
  2. Create it with the same hostname as an existing DNS record - e.g. www.example.com (Load Balancer) - where www.example.com 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.

 

Still not finding what you need?

The CloudFlare team is here to help. 95% of questions can be answered using the search tool, but if you can’t find what you need, submit a support request.

Powered by Zendesk