[util] allow DnsResolver to refresh DNS addresses

This patch introduces functionality to the DnsResolver to refresh an
address, rather than looking it up in the cache. It does this by
removing any cached entry and performing the lookup.

This will be used in a follow-up change to refresh the address on
certain transient failures.

A new --dns_addr_resolution_override flag is also introduced for testing
purposes.

Change-Id: I0616f3e6fb50aba271f106b05d1926fc46a53ed0
Reviewed-on: http://gerrit.cloudera.org:8080/17849
Tested-by: Kudu Jenkins
Reviewed-by: Alexey Serbin <aserbin@cloudera.com>
5 files changed