Function IPSingleton.resolveHostname

Returns a given hostname's IPv4 or IPv6 address when resolved (blocking-type method). The address type returned depends on the type constant given as ip_type.

String resolveHostname (
  const(String) host,
  const(long) ip_type = 3L
) nothrow @nogc;