public inbox for gentoo-server@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jos Houtman <jos@hyves.nl>
To: gentoo-server@lists.gentoo.org
Subject: Re: [gentoo-server] Failover-capable DNS server?
Date: Mon, 21 Nov 2011 11:02:36 +0100	[thread overview]
Message-ID: <CACJ_V85YvTU8AshYa-7p5KH5ETZ1pr6eiiW8psw3g_zJ-TgJFQ@mail.gmail.com> (raw)
In-Reply-To: <CAA2qdGXpBUzz7Q0HQ3JqawemdQhQmBJUUEiQAGpVFMvmq2cRnQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1890 bytes --]

Hi,

Why don't you create a short lived (say 5 minutes) A record for
target.example.com.
Under normal circumstances both ns1 and ns2 will return 11.22.33.44

You can then create a script that monitors the internet connection of isp A.
If that is down, it will update the A records for target.example.com to the
secondary IP adress.

Because your A record has a short timeout, downstream clients should pick
up the new ip address relatively quickly.
However you have to be aware that some ISP ignore such short lived A
records and cache the resolved address for a longer period of time.

Depending on your internet connection, I might consider offloading this
burden to a hosting company.

Jos

On Mon, Nov 21, 2011 at 10:52 AM, Pandu Poluan <pandu@poluan.info> wrote:

> Hello all, I'm in need of some suggestions.
>
> You see, I have 2 Internet connections with public IP addresses, let's
> say ISP A 11.22.33.44 and ISP B 22.33.44.66
>
> Now, I want outside parties trying to connect to "target.example.com"
> by default resolves to 11.22.33.44, but if ISP A's connection goes
> down for any reason, the DNS server will instead return "22.33.44.66".
>
> The nameserver itself will be located in the company, accessible from
> the world via "ns1.example.com" = 11.22.33.44:53 or "ns2.example.com"
> = 22.33.44.66:53. This allows the nameserver to monitor the state of
> the connections to ISP A and ISP B.
>
> I've been perusing pages discussing BIND, and came to the conclusion
> that BIND is incapable of doing that.
>
> Anyone can recommend me a DNS server that has such capability? Or how
> to implement this ability with maybe Python or (*shivers*) Perl?
>
> Rgds,
> --
> FdS Pandu E Poluan
> ~ IT Optimizer ~
>
>  • LOPSA Member #15248
>  • Blog : http://pepoluan.tumblr.com
>  • Linked-In : http://id.linkedin.com/in/pepoluan
>
>

[-- Attachment #2: Type: text/html, Size: 2867 bytes --]

  reply	other threads:[~2011-11-21 10:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-21  9:52 [gentoo-server] Failover-capable DNS server? Pandu Poluan
2011-11-21 10:02 ` Jos Houtman [this message]
2011-11-21 10:16   ` Pandu Poluan
2011-11-21 10:03 ` [gentoo-server] " Pandu Poluan
2011-11-21 10:20   ` Kalin KOZHUHAROV
2011-11-21 10:32   ` Christian Parpart
2011-11-21 10:20 ` [gentoo-server] " Chris Firth
2011-11-21 17:16 ` Alan Hodgson
2011-11-21 17:39   ` Pandu Poluan
2011-11-21 18:19     ` Alan Hodgson
2011-11-21 18:32     ` RES: " Eduardo Schoedler
2011-11-22  1:19       ` Pandu Poluan
2011-11-22  6:15 ` Norman Rieß
2011-11-22  6:48   ` Pandu Poluan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACJ_V85YvTU8AshYa-7p5KH5ETZ1pr6eiiW8psw3g_zJ-TgJFQ@mail.gmail.com \
    --to=jos@hyves.nl \
    --cc=gentoo-server@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox