public async Task <IPAddress> GetIPAddressAsync(IDnsClient client, string hostname) { return(await client.ResolveHostNameAsync(hostname)); }