Kevin: I'm not sure what you mean by "Erlang repl" - see below...<br><br>Hack: I can ping from different nodes on the same host but only if I use localhost.localdomain<br><br>So I set up:<br><br>erl -name gandalf -setcookie abc
<br>erl -name pippin -etcookie abc<br><br>and I can ping with:<br><br>net_adm:ping(<a href="mailto:gandalf@localhost.localdomain" target="_blank">
gandalf@localhost.localdomain</a>).<br><br>I notice that if I run <br><br>inet_db:res_option(lookup).<br><br>I get back [native]<br><br>also if I run (from kodiak)<br><br>inet(gethostbyname(arcturus.abcd.home).<br><br>I get back the correct IP.
<br><br><br><div class="gmail_quote">On Jan 5, 2008 10:53 AM, Kevin A. Smith <<a href="mailto:kevin@hypotheticalabs.com" target="_blank">
kevin@hypotheticalabs.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Can you ping one host from the other using the same host names you use
<br>inside the Erlang repl? Whenever I've gotten a 'pang' (which I think<br>is Swedish for bang - ha ha) it means that I've either got the wrong<br>node name or the hosts cannot see each other.<br><font color="#888888">

<br>--Kevin<br></font><div>On Jan 5, 2008, at 10:25 AM, Jim Cook wrote:<br><br></div><div><div></div><div>> Kevin, Jack:<br>><br>> Thanks for the suggestions. node() returns the expected names on
<br>> both nodes<br>><br>> <a href="mailto:gandalf@kodiak.abcd.home" target="_blank">gandalf@kodiak.abcd.home</a><br>> <a href="mailto:joe@arcturus.abcd.home" target="_blank">joe@arcturus.abcd.home</a><br>>
<br>> but the net_adm:ping command returns the atom 'pang' for both nodes.
<br>> How do I find out what that means? I will search the ref manual, but<br>> all suggestions are greatly appreciated.<br>><br>> Thanks for the help!<br>> Jim<br>><br>><br>> On Jan 5, 2008 9:31 AM, Kevin A. Smith <
<a href="mailto:kevin@hypotheticalabs.com" target="_blank">kevin@hypotheticalabs.com</a>><br>> wrote:<br>> Try pinging one node from the other before doing the rpc call. I've<br>> found that I need to do that so the nodes can find one another. Any
<br>> result other than the atom 'pong' indicates that the nodes are unable<br>> to see each other.<br>><br>> For example, to ping the node running on arcturus from kodiak you'd<br>> enter:<br>
>
<br>> net_adm:ping(<a href="mailto:joe@arcturus.abcd.home" target="_blank">joe@arcturus.abcd.home</a>).<br>><br>> --Kevin<br>> On Jan 5, 2008, at 8:29 AM, Jim Cook wrote:<br>><br>> > HI everyone:<br>
> ><br>> > I'm sorry to ask a newbie question but I have run out of ideas, and
<br>> > just don't know what I'm missing.<br>> ><br>> > I'm trying to replicate Joe Armstrong's name server example on page<br>> > 172 of "Programming Erlang", which is my favorite book at the
<br>> > moment :).<br>> ><br>> > I've got two PCs: one is running Fedora 8, the other SuSE 9.3. I've<br>> > used /etc/hosts to configure their names and I've verified that the<br>> > names (
kodiak.abcd.home and arcturus.abcd.home) work in both<br>> > directions by pinging and by accessing their httpds via a browser.<br>> ><br>> > I start erl on the fedora box (kodiak) with<br>> ><br>
> > erl -name gandalf -setcookie abc
<br>> ><br>> > then I start kvs and store some values just like in the book. Local<br>> > lookups work fine as described on pages 170-172 of the book.<br>> ><br>> > Then I switch to the SuSE box (arcturus) and launch erl like this
<br>> ><br>> > erl -name joe -setcookie abc<br>> ><br>> > Breathless with anticipation (well, nearly) I then run<br>> ><br>> > rpc:call( <a href="mailto:gandalf@kodiak.abcd.home" target="_blank">
gandalf@kodiak.abcd.home
</a>, kvs, lookup, weather).<br>> ><br>> > and I get<br>> ><br>> > {badrpc, nodedown}<br>> ><br>> > I have tried everything I can think of to get the names working<br>> > including IP addresses and various name combinations.
<br>> ><br>> > For example I tried starting erl with fully qualified names on both<br>> > sides, e.g.:<br>> ><br>> > erl -name <a href="mailto:gandalf@kodiak.abcd.home" target="_blank">gandalf@kodiak.abcd.home
</a> -setcookie abc<br>> ><br>> > etc.<br>> ><br>> > Basically I've decided that I just don't understand how erl is doing<br>> > its name resolution and before I start wading through the code
<br>> > trying to figure it out, I wanted to see if anybody could straighten<br>> > me out.  Thanks in advance for any suggestions.<br>> ><br>> > Best,<br>> > Jim<br>> ><br>> > _______________________________________________
<br>> > erlang-questions mailing list<br>> > <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>> > <a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">

http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>><br>><br><br></div></div></blockquote></div><br>