<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hi Lukas,<br>thanks for the tip, I'll look into it ASAP.<br><br>Vincenzo<br><br><div><hr id="stopSpelling">Date: Fri, 29 Jul 2011 12:31:33 +0200<br>From: lukas@erix.ericsson.se<br>To: erlang-bugs@erlang.org; maggio.vincenzo@hotmail.it<br>Subject: Re: [erlang-bugs] Erlang doesn't connect with "short" long names<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
Hello!<br>
<br>
If you feel like something is missing to the documentation, please
take the time to add it and submit a patch so that it will be
clearer to others how Erlang/OTP works. <br>
<br>
The source for the documentation in question can be found here:
<a class="ecxmoz-txt-link-freetext" href="https://github.com/erlang/otp/blob/dev/erts/doc/src/epmd.xml" target="_blank">https://github.com/erlang/otp/blob/dev/erts/doc/src/epmd.xml</a><br>
<br>
Lukas<br>
<br>
On 29/07/11 12:14, Vincenzo Maggio wrote:
<blockquote cite="mid:DUB107-W27FE1EE5D1217437D9285E9B370@phx.gbl">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<div dir="ltr">
Hi,<br>
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.<br>
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.<br>
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.<br>
I think that it should be pointed out in erlang docs that epmd
uses nslookup to route requests between nodes.<br>
As far as you know, is this the right place for this kind of
suggestions?<br>
<br>
Many thanks for the help!!!<br>
<br>
Vincent<br>
<br>
<div>> Date: Fri, 29 Jul 2011 09:02:56 +0200<br>
> From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:ess@trifork.com">ess@trifork.com</a><br>
> To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:maggio.vincenzo@hotmail.it">maggio.vincenzo@hotmail.it</a><br>
> CC: <a class="ecxmoz-txt-link-abbreviated" href="mailto:erlang-bugs@erlang.org">erlang-bugs@erlang.org</a><br>
> Subject: Re: [erlang-bugs] Erlang doesn't connect with
"short" long names<br>
> <br>
> Shinji Ikari wrote:<br>
> > Hello,<br>
> > the problem, on my laptop (Win XP SP3, OTP/R14B3),
can be simply <br>
> > replicated with starting two nodes with "short" long
names and try to <br>
> > connect them:<br>
> ><br>
> > c:\> erl -name <a class="ecxmoz-txt-link-abbreviated" href="mailto:a@a.b.c">a@a.b.c</a><br>
> > (<a class="ecxmoz-txt-link-abbreviated" href="mailto:a@a.b.c">a@a.b.c</a>)1><br>
> ><br>
> > and<br>
> Does the host in question in fact have the name 'a.b.c'?<br>
> I.e. if you run "nslookup a.b.c", do you get the IP of
the machine on <br>
> which you're starting that node?<br>
> Otherwise, what you try is not expected to work.<br>
> ><br>
> > c:\> erl -name <a class="ecxmoz-txt-link-abbreviated" href="mailto:b@a.b.c">b@a.b.c</a><br>
> > (<a class="ecxmoz-txt-link-abbreviated" href="mailto:b@a.b.c">b@a.b.c</a>)1>net_adm:ping(<a class="ecxmoz-txt-link-abbreviated" href="mailto:a@a.b.c">a@a.b.c</a>).<br>
> > pang<br>
> > (<a class="ecxmoz-txt-link-abbreviated" href="mailto:b@a.b.c">b@a.b.c</a>)2>nodes().<br>
> > [] -----> as expected after a 'pang'!<br>
> ><br>
> > So Erlang doesn't seem to connect this way. But if
you simply:<br>
> ><br>
> > c:\> erl -name <a class="ecxmoz-txt-link-abbreviated" href="mailto:a@a.mydomain.com">a@a.mydomain.com</a><br>
> > (<a class="ecxmoz-txt-link-abbreviated" href="mailto:a@a.mydomain.com">a@a.mydomain.com</a>)1><br>
> ><br>
> > c:\> erl -name <a class="ecxmoz-txt-link-abbreviated" href="mailto:b@a.mydomain.com">b@a.mydomain.com</a><br>
> >
(<a class="ecxmoz-txt-link-abbreviated" href="mailto:b@a.mydomain.com">b@a.mydomain.com</a>)1>net_adm:ping(<a class="ecxmoz-txt-link-abbreviated" href="mailto:a@a.mydomain.com">a@a.mydomain.com</a>).<br>
> > pong<br>
> > (<a class="ecxmoz-txt-link-abbreviated" href="mailto:b@a.mydomain.com">b@a.mydomain.com</a>)1>nodes().<br>
> > [<a class="ecxmoz-txt-link-abbreviated" href="mailto:a@a.mydomain.com">a@a.mydomain.com</a>] -----------> as expected after
a 'pong'!<br>
> ><br>
> ><br>
> > Really, no clue here, I've also checked standard
rules for domain <br>
> > names: there is an upper limit (63 characters) but
no lower limit, AFAIK.<br>
> ><br>
> > Thanks in advance!<br>
> ><br>
> > Vincent<br>
> <br>
</div>
</div>
<pre><fieldset class="ecxmimeAttachmentHeader"></fieldset>
_______________________________________________
erlang-bugs mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:erlang-bugs@erlang.org">erlang-bugs@erlang.org</a>
<a class="ecxmoz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-bugs" target="_blank">http://erlang.org/mailman/listinfo/erlang-bugs</a>
</pre>
</blockquote></div> </div></body>
</html>