netty5/resolver-dns/src
Ben Evans 7b9a97a81f Only fall back to CNAME on A/AAAA queries (#11216)
Motivation:

DNS resolver falls back to trying CNAME if no records found, but should
only try this for A/AAAA queries. Does not make sense for other query
types, results in a redundant CNAME query that is just going to fail.

Modification:

Check query type before deciding to try CNAME. Only proceed if type is A
or AAAA.

Added unit test to verify CNAME is only tried after A/AAAA queries.

Result:

Fixes #11214.
2021-05-04 07:45:30 +02:00
..
main Only fall back to CNAME on A/AAAA queries (#11216) 2021-05-04 07:45:30 +02:00
test Only fall back to CNAME on A/AAAA queries (#11216) 2021-05-04 07:45:30 +02:00