[erlang-questions] detection of hostname

Vlad Dumitrescu <>
Tue Oct 23 08:32:57 CEST 2012

Thank you all for the advice! I will use some of it to improve the detection.

I would still want to know how is it possible to run "erl -name foo"
and "erl -name bar" and these nodes can connect to each other all
right (the hostname erlang assigns being "desktop.domain.com"), but on
the same machine "ping desktop.domain.com" can't resolve the name...

The conclusion I draw is that the only way to know is to start a node
and try to connect to it.

best regards,

More information about the erlang-questions mailing list