Closed messutied closed 6 years ago
It looks like there are some change in the inet_dns
module. What's your version of Erlang, Elixir and elixir-dns
?
Hi @tungd, my Erlang version is Erlang/OTP 20 [erts-9.3.1]
, Elixir (1.4.5)
and elixir-dns 2.1.0.
Hi, I'm so sorry for the late reply, and also sorry for the confusion. We have a breaking change in 2.x that resolve
now include the record type. If you want to specify the DNS server you'll also need to include the record type. For example:
DNS.resolve("google.com", :a, {"8.8.8.8", 53}) # --> {:ok, [{172, 217, 24, 206}]}
I've updated the README to reflect this change.
Hi, I'm testing the package locally, running
DNS.resolve("google.com")
works, but runningDNS.resolve("google.com", {"8.8.8.8", 53})
gives me the following error:Any ideas? by the examples in the readme it looks like this should work. Thanks