BUG/MINOR: resolvers: new callback to properly handle SRV record errors
authorBaptiste Assmann <bedis9@gmail.com>
Thu, 19 Nov 2020 21:38:33 +0000 (22:38 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 24 Feb 2021 21:35:00 +0000 (22:35 +0100)
commit826060e383b34661a91bf3350f6e1137c603e9f5
treeb6e73674520e6162c9dbd50ac14e7177c93eb330
parentc22e27c3704b3be497608ed36585381a4f30cefc
BUG/MINOR: resolvers: new callback to properly handle SRV record errors

When a SRV record was created, it used to register the regular server name
resolution callbacks. That said, SRV records and regular server name
resolution don't work the same way, furthermore on error management.

This patch introduces a new call back to manage DNS errors related to
the SRV queries.

this fixes github issue #50.

Backport status: 2.3, 2.2, 2.1, 2.0

(cherry picked from commit b4badf720ce484001f606011aee7cd216e5ce4e3)
[cf: Changes applied in src/dns.c and structures renamed]
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/haproxy/server.h
src/dns.c
src/server.c