Find the answer to your Linux question:
Results 1 to 3 of 3
Hello I have a domain and two providers (2 different ip's) What i want to do is to set my server in such way that when a connection fails my ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    1

    backup connection for my domain


    Hello

    I have a domain and two providers (2 different ip's)
    What i want to do is to set my server in such way that when a connection fails my www domain can be accesed on the other provider.
    I think the steps are:
    - set the dns at the registrar so it will point (in some way) to both ip's
    - configure bind
    - maybe also configure apache
    - and configure the routing in linux

    Any ideea how to actually do this?

    Thanks.

  2. #2
    Linux User
    Join Date
    May 2008
    Location
    NYC, moved from KS & MO
    Posts
    251
    Adding an additional A record for the www.whateverdomain.name to the bind zone file should be enough. Check out Round Robin DNS Load Balancing - WebsiteGear for detail [ section titled "DNS load balancing implementation (Multiple A Records)" ]

  3. #3
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    While adding a second record to DNS will allow both ISP's to be used there is a down side. The down side is that when one of the routes goes away there is no way for DNS to know this and it will still give out the downed IP address. Thus half of all connections will fail.

    The only way I can think this will work is some sort of Dynamic DNS entries with a script that watches both connection and removes the down record from DNS.

    The problem here is the TTL of your records. Once a record is cached it is held until the TTL is reached then discarded. If this record is given out and then 1 second later the link goes down the cached record will be used until it expires.

    The best option would be a load balancer. It will know about both IP's and when one goes away it will direct all connection to the live one. While both are present it will use both IP'S.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •