Module net/dns

net/dns

Async DNS resolution.

Functions

lookup_host function
fn(host : String, using(io : IO)) -> Impl(Future(ArrayList(IpAddr), IO, Exception))

Resolve a hostname to a list of IP addresses.

Parameters

NameTypeNotes
hostString

Effects

NameTypeNotes
ioIOcomptime, implicit

Returns: Impl(Future(ArrayList(IpAddr), IO, Exception))

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

NameTypeNotes
hostString
portu16

Effects

NameTypeNotes
ioIOcomptime, implicit

Returns: Impl(Future(ArrayList(SocketAddr), IO, Exception))