Project

General

Profile

Actions

Bug #2415

closed

util::dns::Resolver fails on some platforms

Added by Alex Afanasyev almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Utils
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

When making DNS resolution query, the current code adds query::all_matching parameter to the query constructor.
With this parameter, the resolver supposed to return all IPv4 and IPv6 matches on a system that does not have a working IPv4 and/or IPv6 address (the default behavior is to return addresses that can potentially work). This addition was made primarily for the sake of unit tests.

At least on FreeBSD and Android platforms it is known that this addition causes DNS resolution failure.

My proposal here is to remove query::all_matching parameter from the query completely. On a working system, the default behavior for the resolution is the correct one. For the test cases we can add a requirement to have both IPv4 and IPv6 configured (there just need to be an interface with non-localhost address). We can also make DNS resolution test cases optional or conditional.

Actions

Also available in: Atom PDF