inet
or inet6
to limit the results to the given
family.stream
or dgram
.true
(default false
), return the canonical host name
in the frist answerIn mode (+,-,+) Address is unified to a dict with the following keys:
inet
or inet6
. The underlying getaddrinfo()
calls
this family
. We use domain
for consistency with
socket_create/2.stream
or dgram
.canonname(true)
is specified on the first
returned address. Holds the official canonical host name.