async fn lookup_host_with_cache(
    context: &Context,
    hostname: &str,
    port: u16,
    timeout_val: Duration,
    load_cache: bool
) -> Result<Vec<SocketAddr>>
Expand description

Looks up hostname and port using DNS and updates the address resolution cache.

If load_cache is true, appends cached results not older than 30 days to the end or entries from fallback cache if there are no cached addresses.