Automatic failover using Bind

Posted on 2005-05-06
Last Modified: 2008-02-26

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?

Question by:manojoswal
    LVL 40

    Accepted Solution

    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.

    Author Comment

    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?

    LVL 10

    Assisted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
    Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now