<PackageReference Include="Microsoft.Bcl.Async" Version="1.0.11-beta" />

DnsEx

public static class DnsEx
Provides asynchronous wrappers for the Dns class.
public static Task<IPAddress[]> GetHostAddressesAsync(string hostNameOrAddress)

Asynchronously returns the Internet Protocol (IP) addresses for the specified host.

public static Task<IPHostEntry> GetHostEntryAsync(IPAddress address)

Asynchronously resolves an IP address to an System.Net.IPHostEntry instance.

public static Task<IPHostEntry> GetHostEntryAsync(string hostNameOrAddress)

Asynchronously resolves an IP address to an System.Net.IPHostEntry instance.