[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1088
  • Last Modified:

Automatic failover using Bind


I've two servers running the same website. A is primary server and B is simply a mirror, and files from server A are constantly mirrored on B.

Now I don't have a automatic failover solution, whenever server A goes down, I have to point the domain's A record to server B and wait for the DNS to get updated. Takes quite a lot of time but the sites hosted on these servers are critical and shouldn't be down for longer than a few minutes.

I've heard about Dyndns? They provide automatic failover if one server does down, what I want to know is if I can do the same using Bind? And if it's possible to do it automatically? Without human intervention.

I don't want a round-robin solution, I want a atuomatic switchover if primary box goes down.

Any suggestions?

2 Solutions
At the expense of a greater rate of DNS queries you can reduce the TTL for that zone to something you can live with, say a few minutes. You could even make the TTL 0. Next you need some sort of watcher that checks to see if the primary server is up and running and if not modifies the zone data and causes bind to reload the zone. This presumes that you have full control of your DNS data and probably means that you have admin rights on the system that hosts the DNS.
manojoswalAuthor Commented:
Hi jlevie,

Yes, I've full control on the DNS. Is there anything you can suggest that would work for me? Or any a third-party application or anything of that sort?


Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now