resolveHost

Resolves the given host name/IP address string.

Setting use_dns to false will only allow IP address strings but also guarantees that the call will not block.

  1. NetworkAddress resolveHost(string host, AddressFamily address_family, bool use_dns)
  2. NetworkAddress resolveHost(string host, ushort address_family, bool use_dns)
    @safe
    resolveHost
    (
    string host
    ,,
    bool use_dns = true
    )

Meta