When you create a Load Balancer on Cloudflare, you have two options:
- Create it with a unique hostname - e.g. lb.example.com - where no existing DNS record shares the same name.
- 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.