Method Protocols.DNS.async_client()->host_to_ips()
- Method
host_to_ips
Request
host_to_ips(string
host
,function
(string
,array
,__unknown__
... :void
)callback
,mixed
...args
)- Description
Looks up the IP number(s) for a host, and when done calls the function callback with the host name and array of IP addresses as arguments. If IPv6 and IPv4 addresses are both available, IPv6 addresses will be earlier in the array.
- Returns
Returns a Request object where progress can be observed from the retries variable and the request can be cancelled using the
cancel
method.
- Method
host_to_ips
variant
Concurrent.Future
host_to_ips(string
host
)- Description
Looks up the IP number for a host. Returns a Concurrent.Future object that resolves into an array of IP addresses as strings, or an empty array if it is missing.