My company uses CloudFlare for its DNS, but as our site is HTTPS-secured and we're on the free plan, we can't utilize CloudFlare's CDN services.

Our host has fairly rare but not insignificant downtime. We can't migrate servers just yet, and I'd like to be able to either have the main domain redirect to the status domain, or simply resolve to the alternative status host in the event of downtime so users will stop bugging me asking if the site is down.

Is this possible to do automatically using the free CloudFlare plan, or will I have to manually edit my DNS every time the site goes down?

  • Manually editing your DNS won't help since visitors DNS cache and root zone records may not be updating as quickly as you'd hope. Visitors will still get errors if your site is down. Why can't you migrate servers? There are so many options and i'm sure plenty all within your price range for hosting. If your host is going down that often that you're asking about this. I'd like for a new host.
    – Anagio
    Commented Oct 29, 2013 at 8:25
  • @Anagio CloudFlare's TTL is 5 minutes, so DNS changes are propagated rather quickly. We are unable to switch providers because we also host online gaming servers, and moving providers means that we would have to change our IP addresses. Because our users' favorites lists are stored by IP and not domain, it would be devastating to our player base.
    – Dr. McKay
    Commented Oct 29, 2013 at 17:09

1 Answer 1


I've had a similar problem before and have solved it using CloudFlare's API. I had a Dedicated server and a large VPS for backup. Mirrored the data on the two servers, and used CloudFlare to switch between them (DNS Failover) if the Dedicated went down. Initially did reboots via SSH/IPMI to verify and it worked as configured.

Here's the link to the article: http://blog.booru.org/?p=12

  • Is this your blog? If so, please indicate that in your answer as a disclaimer.
    – dan
    Commented Dec 24, 2013 at 5:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.