MINOR: resolvers: new function find_srvrq_answer_record()
authorBaptiste Assmann <bedis9@gmail.com>
Wed, 10 Mar 2021 11:22:18 +0000 (12:22 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 16 Mar 2021 08:23:48 +0000 (09:23 +0100)
commit99348c3fdaa16980757b2b2afc00ec80c059b13d
tree7cd9d0c33e407d208d414c8ed1b7c8427b34e1f3
parentb8e928194a911c6dfd84d1a2baadca520be9fdd7
MINOR: resolvers: new function find_srvrq_answer_record()

This function search for a SRV answer item associated to a requester
whose type is server.
This is mainly useful to "link" a server to its SRV record when no
additional record were found to configure the IP address.

This patch is required by a bug fix.

(cherry picked from commit 6a8d11dc8051f4fc40c9ab1266cd58367ea1ca19)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/haproxy/dns.h
src/dns.c