Erlang not resolving reverse DNS names in docker swarm overlay

96 views
Skip to first unread message

Benoit BARTHELEMY

unread,
Feb 20, 2017, 10:41:09 AM2/20/17
to Erlang Questions
Hi !

I'm trying to setup a correct rabbitMQ cluster un swarm mode 1.13 using an overlay  network and I've got a weird issue : Erlang doesn't resolve reverse DNS correctly using inet_res:gethostbyaddr !
I manage to have correct direct resolution (A record) and both direct and reverse resolution using DIG but not with erlang :

1> inet_res:lookup("tasks.worker", in, a).
[{10,3,250,5},{10,3,250,4},{10,3,250,3}]
2> inet_res:gethostbyaddr({10,3,250,5}).
{error,timeout}
3> 

same works with dig :

bash-4.3$ dig +short tasks.worker
10.3.250.5
10.3.250.4
10.3.250.3
bash-4.3$ dig +short -x 10.3.250.3
rabbit_worker.qza1qo1e965lc6lsjv0a6xl3y.xjcjs6fivxk4dxwxxv7wz3brv.rabbit_cluster.
bash-4.3$ 

Is there any special setup to use in inet_rc to have rDNS working ?

Thanks !

Jay Clark

unread,
Aug 11, 2017, 12:31:04 PM8/11/17
to Erlang Questions


Having exact same issue.


Did you have any luck resolving it? (no pun intended)

brian....@ontrackretail.co.uk

unread,
Sep 19, 2017, 9:47:58 AM9/19/17
to Erlang Questions
Yeah, I'm getting this on Docker swarm 1.2.8 with Erlang v.1.2.8.  My dream of automatic clusters of rabbitmq containers in flames!
Reply all
Reply to author
Forward
0 new messages