Hi everyone, how are you?
I have an application with a domain hosted on Cloudflare and two different internet links:
Algar (primary IP)
CTI (secondary IP)
Currently, when the Algar link becomes unavailable, I need to manually change the A record in the Cloudflare panel to point to the CTI IP. This generates downtime and is laborious.
My question is: is there a way to automate this failover, so that:
The Algar IP is used while it is available
The CTI IP automatically takes over when the Algar link goes down
The process is transparent to end users
I saw that Cloudflare offers Load Balancing, but I don't want full traffic balancing, just active-passive failover.
Has anyone here done something similar? Is there a guide or script that works to automate the IP change in DNS when a link goes down?
I appreciate any help!