DNS.resolve

You're seeing just the function resolve, go back to DNS module for more information.
Link to this function

resolve(domain, type \\ :a, dns_server \\ {"8.8.8.8", 53}, proto \\ :udp)

View Source

Specs

resolve(String.t(), atom(), {String.t(), :inet.port()}, :tcp | :udp) ::
  {atom(), :inet.ip()} | {atom(), list()} | {atom(), atom()}

Resolves the answer for a DNS query.

Examples

iex> DNS.resolve("tungdao.com")
{:ok, [{1, 1, 1, 1}]}

iex> DNS.resolve("tungdao.com", :txt)
{:ok, [['v=spf1 a mx ~all']]}

iex> DNS.resolve("tungdao.com", :a, {"8.8.8.8", 53})
{:ok, [{1, 1, 1, 1}]}

iex> DNS.resolve("tungdao.com", :a, {"8.8.8.8", 53}, :tcp)
{:ok, [{1, 1, 1, 1}]}