Module net/dns
net/dns
Async DNS resolution.
Functions
lookup_host
function
resolve
function
fn(host : String, port : u16, using(io : IO)) -> Impl(Future(ArrayList(SocketAddr), IO, Exception))
Resolve a hostname and port to a list of socket addresses.
Parameters
| Name | Type | Notes |
|---|---|---|
host | String | |
port | u16 |
Effects
| Name | Type | Notes |
|---|---|---|
io | IO | comptime, implicit |
Returns: Impl(Future(ArrayList(SocketAddr), IO, Exception))