]> granicus.if.org Git - pdns/commit
dnsdist: Add a 'source' option to select the source addr/interface
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 7 Jan 2016 11:55:14 +0000 (12:55 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 7 Jan 2016 12:00:47 +0000 (13:00 +0100)
commitfbe2a2e0f26ccb0bc01bbab9f2507d04d1d5f8f9
treed214a5f9db44f63daafe8ff0fa9f0b5bd4a852c2
parent558bf6ab8dbbc996afdf0c3ac3e220e72fabc1eb
dnsdist: Add a 'source' option to select the source addr/interface

It only supports one source address/interface per downstream server.
The more I tried to support more than one, the more I realized I was
in fact having grouping several DS into one, without the benefits
of separate stats and status checking. In particular, having several
sources adresses mean that we would get "random" failures if some
addresses are allowed on the backend and some others are not.
Simply adding the same backend several times with different source
addresses means that only the ones with faulty addresses will be
disabled.
Closes #3138.
12 files changed:
pdns/README-dnsdist.md
pdns/dnsdist-lua.cc
pdns/dnsdist-tcp.cc
pdns/dnsdist.cc
pdns/dnsdist.hh
pdns/dnsproxy.cc
pdns/iputils.cc
pdns/iputils.hh
pdns/misc.cc
pdns/misc.hh
pdns/nameserver.cc
pdns/pdns_recursor.cc