Ticket #81 (closed defect: fixed)

Opened 2 years ago

Last modified 7 months ago

forward-zones recursor option takes multiple IPs for a domain.

Reported by: augie.schwer@gmail.com Assigned to: somebody
Priority: normal Milestone:
Component: component1 Version:
Severity: normal Keywords:
Cc: berni@birkenwald.de

Description

It would be helpful if the recursor could forward zones to multiple IPs.

For example I can say:

forward-zones=foozone.com=10.0.0.2

But what if 10.0.0.2 is down? I would like to forward requests to another IP if the first fails, so something like this:

forward-zones=foozone.com=10.0.0.2;192.168.1.2

Attachments

multi-forward.patch (2.4 kB) - added by anon on 06/17/07 10:08:19.
Path that allows multiple IPs per forward zone
multi-forward-snapshot4.patch (3.0 kB) - added by anon on 02/18/08 13:36:14.
Updated patch for snapshot4, also has support for forward-zones-file (separate forwarders with comma)

Change History

05/19/06 18:54:38 changed by augie.schwer@gmail.com

Bind does this:

zone "some.rbl." {

type forward; forward first; forwarders { 10.0.0.1; 10.0.0.2; };

};

Which would make bind forward requests to the two listed forwards and fall back to standard recursion if neither where available.

05/29/06 12:59:26 changed by kkkkoaaa

  • version set to 2.0.
  • milestone set to milestone1.

Keep a good job up! http://quick-adult-links.com

06/01/06 05:42:24 changed by yusufg@outblaze.com

another option would be to use a syntax similar to auth-zones where forward-zones=foozone.com=/var/foozone.com

/var/foozone.com would contain IP's one per line 10.0.0.1 10.0.0.2 and pdns-recursor would randomly send queries to each IP's. This is similar in approach to what dnscache uses for split-horizon DNS

11/27/06 23:04:22 changed by dgamble

At the risk of being a "me too", this feature is singlehandedly preventing us from replacing our internal BIND forwarders with PowerDNS. Being able to forward to multiple servers in case of failure is a requirement for any HA infastructure.

12/06/06 22:34:13 changed by anon

  • cc set to berni@birkenwald.de.
  • version deleted.
  • milestone deleted.

Same here, we have a setup of two recursors used for the mailclusters which are configured to forward to rbldnsd on the same box (another port) or, if not reachable, to the rbldnsd running on the sibling.

The ability to configure not only several IP(v4|v6) addresses but also port numbers would be greatly appreciated.

Thanks for the great work.

(follow-up: ↓ 9 ) 02/24/07 21:13:33 changed by anon

Bert, it looks like your r963 fixes this:

http://wiki.powerdns.com/cgi-bin/trac.fcgi/changeset/963

(in reply to: ↑ 8 ) 02/25/07 03:55:14 changed by anon

Replying to anon:

Bert, it looks like your r963 fixes this: http://wiki.powerdns.com/cgi-bin/trac.fcgi/changeset/963

I don't think so, that allows you to move the definition of forward zones to an external file, but it still only allows exactly one IP per zone. You cannot specify multiple zones according to the sample config, and reading the code in the changeset I'm pretty sure that is not possible yet.

06/17/07 10:08:19 changed by anon

  • attachment multi-forward.patch added.

Path that allows multiple IPs per forward zone

06/17/07 10:15:25 changed by anon

I've attached a patch to allow multiple IPs for each forwarded zone, separated by semi-colons. This works with both the forward-zones and forward-zones-file options.

Since the recursor is already capable of using multiple nameservers for a domain, this was just a matter of passing a vector along instead of a single string. The built-in health/performance tracking of the servers also automatically applies.

-- Aaron Thompson acthompson@gmail.com

02/11/08 10:00:11 changed by anon

Bert, any chance of getting this patch in before the release of 3.1.5? For cleanliness, forward-zones-file should probably also be fixed to support several forwarders per zone..

02/18/08 13:36:14 changed by anon

  • attachment multi-forward-snapshot4.patch added.

Updated patch for snapshot4, also has support for forward-zones-file (separate forwarders with comma)

03/22/08 19:28:27 changed by ahu

  • status changed from new to closed.
  • resolution set to fixed.

Implemented in commit 1168, and documented as well, thanks!