MINOR: dns: Update analysis of TRUNCATED response for SRV records
authorBaptiste Assmann <bedis9@gmail.com>
Fri, 11 Aug 2017 07:58:27 +0000 (09:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 Aug 2017 09:24:35 +0000 (11:24 +0200)
commit251abb9cbe894411856d0f9da7637ea62c0740ba
treeefbe967eadb35ee18e5592adcd63488b3af5d744
parent97148f60b8feec39b76768d1bcfab6d755c12164
MINOR: dns: Update analysis of TRUNCATED response for SRV records

First implementation of the DNS parser used to consider TRUNCATED
responses as errors and triggered a failover to an other query type
(usually A to AAAA or vice-versa).

When we query for SRV records, a TRUNCATED response still contains valid
records we can exploit, so we shouldn't trigger a failover in such case.

Note that we had to move the maching against the flag later in the
response parsing (actually, until we can read the query type....)
src/dns.c