Properly handle errors when DNS lookups

Previously if one of the resolvers would fail then the queries for the remaining resolvers would not get executed.

This is a test critical bugfix.