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

Dennis Byrne dennisbyrne@REDACTED
Sun Apr 19 20:36:45 CEST 2009


Thanks Per, that gets me there.

Dennis

On Sun, Apr 19, 2009 at 1:03 PM, Per Melin <per.melin@REDACTED> wrote:
> 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.
>



-- 
Dennis Byrne



More information about the erlang-questions mailing list