[erlang-bugs] Erlang doesn't connect with "short" long names
Erik Søe Sørensen
ess@REDACTED
Fri Jul 29 09:02:56 CEST 2011
Shinji Ikari wrote:
> Hello,
> the problem, on my laptop (Win XP SP3, OTP/R14B3), can be simply
> replicated with starting two nodes with "short" long names and try to
> connect them:
>
> c:\> erl -name a@REDACTED
> (a@REDACTED)1>
>
> and
Does the host in question in fact have the name 'a.b.c'?
I.e. if you run "nslookup a.b.c", do you get the IP of the machine on
which you're starting that node?
Otherwise, what you try is not expected to work.
>
> c:\> erl -name b@REDACTED
> (b@REDACTED)1>net_adm:ping(a@REDACTED).
> pang
> (b@REDACTED)2>nodes().
> [] -----> as expected after a 'pang'!
>
> So Erlang doesn't seem to connect this way. But if you simply:
>
> c:\> erl -name a@REDACTED
> (a@REDACTED)1>
>
> c:\> erl -name b@REDACTED
> (b@REDACTED)1>net_adm:ping(a@REDACTED).
> pong
> (b@REDACTED)1>nodes().
> [a@REDACTED] -----------> as expected after a 'pong'!
>
>
> Really, no clue here, I've also checked standard rules for domain
> names: there is an upper limit (63 characters) but no lower limit, AFAIK.
>
> Thanks in advance!
>
> Vincent
More information about the erlang-bugs
mailing list