Is possbile automatically normal server connection after web server down?

WebReactor Networks bind at
Wed Feb 27 16:21:27 UTC 2002

How about something like this (below)?  It's a little funky, but does anyone
see any reason why a little daemon like this wouldn't work?  - John R. S.

typeset -i status


function update_the_dns {
    echo "update delete $1 IN A"
    echo "update add $1 60 IN A $2"
    echo ""
  } | nsupdate

update_the_dns $domain_name $active_ip

while true; do # repeat forever

  wget http://$domain_name/test.html >/dev/null 2>&1
  if [ $status -ne 0 ]; then
    update_dns $domain_name $active_ip
  sleep 60



From: <arvid at>
Organization: Posted via Supernews,
Reply-To: <arvid at>
Newsgroups: comp.protocols.dns.bind
Date: Wed, 27 Feb 2002 09:51:56 -0000
To: comp-protocols-dns-bind at
Subject: Re: Is possbile automatically normal server connection after web
server down?

"jenny" <mjjung at> wrote in message
news:a5hs0b$dap at
> hi~all.
> we using BIND 8.2.4 on solaris 5.7.
> I wonder the following senario is possible.
> location : A, B(for Disaster Recovery)
> Each location's network is another network.
> Location A : web server-org (
> Location B : web server-bk  ( )
> if original web server( down at A , web server autoimatically
> via backup web server(
> Is possbile above senario ?
> if possbile, how to configure nameserver for above senario?

Using Bind you can map both IP addresses to the same domain name and URL.
This will result is rudimentary load sharing between your two web servers.
It will not, however, avoid the situation where some of your users try to
connect to a web server that is down.

To get the failover you need you should look at a commercial name server
capable of determining which of your web servers are operational and
resolving your domain names accordingly. There are many manufacturers in
this market, and you might start with F5 or Cisco.

> thanks.

More information about the bind-users mailing list