New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
Yes, you can use Hetrixtools webhooks to call a script when a server goes down that changes the A Record via CF API:
https://docs.hetrixtools.com/uptime-monitoring-webhook-notifications/
https://api.cloudflare.com/
This is what I do for most of my sites.
can you share your Cloudflare script?
First results from Google search:
https://gist.github.com/Ara4Sh/dece9f4a92b74085967d75b94eeb3fe3
https://gist.github.com/Tras2/cba88201b17d765ec065ccbedfb16d9a
https://lowendspirit.com/discussion/1486/bash-script-to-update-all-dns-records-on-cloudflare-zone-if-hetrixtools-api-return-offline