[erlang-questions] receiving pang from net_adm:ping/1 even though net_adm:names/0 shows the other node

Per Melin per.melin@REDACTED
Sun Apr 19 20:03:16 CEST 2009


On Sun, Apr 19, 2009 at 7:52 PM, Dennis Byrne <dennisbyrne@REDACTED> wrote:
> Is there any way to force erlang to just use an IP address rather than
> do a DNS lookup?  I always find myself wanting to do this when I debug
> issues like this.

It will use an IP if you do.

$ erl -name foo@REDACTED

and

$ erl -name bar@REDACTED

(bar@REDACTED)1> net_adm:ping('foo@REDACTED').
pong
(bar@REDACTED)2> nodes().
['foo@REDACTED']

Note that you need the single tick quotes around the nodename here to
make it a parsable atom.



More information about the erlang-questions mailing list