Skip to content

Commit

Permalink
test(inet_res): Switch from any to in
Browse files Browse the repository at this point in the history
  • Loading branch information
tomciopp committed Feb 9, 2022
1 parent 704891b commit 4ca003f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/burnex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ defmodule Burnex do

@spec check_domain_mx_record(binary()) :: :ok | {:error, binary()}
def check_domain_mx_record(domain) do
case :inet_res.lookup(to_charlist(domain), :any, :mx, @inet_res_opts, 5_000) do
case :inet_res.lookup(to_charlist(domain), :in, :mx, @inet_res_opts, 5_000) do
[] -> {:error, "Cannot find MX records"}
mx_records -> check_bad_mx_server_domains(mx_records)
end
Expand Down

0 comments on commit 4ca003f

Please sign in to comment.