summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_peer_discovery_dns.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_peer_discovery_dns.erl b/src/rabbit_peer_discovery_dns.erl
index 554c914466..05102bebab 100644
--- a/src/rabbit_peer_discovery_dns.erl
+++ b/src/rabbit_peer_discovery_dns.erl
@@ -72,7 +72,7 @@ discover_hostnames(SeedHostname, LongNamesUsed) ->
IPs = inet_res:lookup(SeedHostname, in, a),
rabbit_log:info("Addresses discovered via A records of ~s: ~s",
[SeedHostname, string:join([inet_parse:ntoa(IP) || IP <- IPs], ", ")]),
- Hosts = [extract_host(inet_res:gethostbyaddr(A), LongNamesUsed, A) ||
+ Hosts = [extract_host(inet:gethostbyaddr(A), LongNamesUsed, A) ||
A <- IPs],
lists:filter(fun(E) -> E =/= error end, Hosts).