]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: DNS client query type failover management
authorBaptiste Assmann <bedis9@gmail.com>
Wed, 2 Sep 2015 20:20:56 +0000 (22:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 Sep 2015 13:04:17 +0000 (15:04 +0200)
commit90447582d79a773f66dc3ef1ea2c0cbbc8da5ad3
treedbb07c82bea829b01dc156c9edc84a887d5c2a84
parent3440f0da2a47a765fbcb450195120daaef00a68d
MINOR: DNS client query type failover management

In the first version of the DNS resolver, HAProxy sends an ANY query
type and in case of issue fails over to the type pointed by the
directive in 'resolve-prefer'.
This patch allows the following new failover management:
1. default query type is still ANY
2. if response is truncated or in error because ANY is not supported by
   the server, then a fail over to a new query type is performed. The
   new query type is the one pointed by the directive 'resolve-prefer'.
3. if no response or still some errors occurs, then a query type fail over
   is performed to the remaining IP address family.
src/server.c