[erlang-bugs] Erlang doesn't connect with "short" long names

Vincenzo Maggio <>
Fri Jul 29 12:14:57 CEST 2011


Hi,
you are perfectly right, nslookup reckons mydomain.com (what a bad luck, I didn't think that someone could register "mydomain.com"!) but not b.c.
What misled me is the fact that I thought that being on the same host, the epmd deamon could manage to ping the nodes because I added them to hosts file.
Indeed, when you issue 'epmd -nodes' it recognizes the nodes names (like 'a' and 'b') without the host and domain part, so I thought that epmd simply uses a simple host lookup, not a domain lookup.
I think that it should be pointed out in erlang docs that epmd uses nslookup to route requests between nodes.
As far as you know, is this the right place for this kind of suggestions?

Many thanks for the help!!!

Vincent

> Date: Fri, 29 Jul 2011 09:02:56 +0200
> From: 
> To: 
> CC: 
> Subject: Re: [erlang-bugs] Erlang doesn't connect with "short" long names
> 
> 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 
> >     ()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 
> >     ()1>net_adm:ping().
> >     pang
> >     ()2>nodes().
> >     []      -----> as expected after a 'pang'!
> >
> > So Erlang doesn't seem to connect this way. But if you simply:
> >
> >     c:\> erl -name 
> >     ()1>
> >
> >     c:\> erl -name 
> >     ()1>net_adm:ping().
> >     pong
> >     ()1>nodes().
> >     []    -----------> 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
> 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20110729/f1c7ccb1/attachment.html>


More information about the erlang-bugs mailing list