HI everyone:<br><br>I'm sorry to ask a newbie question but I have run out of ideas, and just don't know what I'm missing.<br><br>I'm trying to replicate Joe Armstrong's name server example on page 172 of "Programming Erlang", which is my favorite book at the moment :).
<br><br>I've got two PCs: one is running Fedora 8, the other SuSE 9.3. I've used /etc/hosts to configure their names and I've verified that the names (kodiak.abcd.home and arcturus.abcd.home) work in both 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 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">
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 including IP addresses and various name combinations.
<br><br>For example I tried starting erl with fully qualified names on both sides, e.g.:<br><br>erl -name <a href="mailto:gandalf@kodiak.abcd.home">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 its name resolution and before I start wading through the code trying to figure it out, I wanted to see if anybody could straighten me out. Thanks in advance for any suggestions.
<br><br>Best,<br>Jim<br><br>