anthonator

anthonator

"Hostname is illegal" when attempting to connect nodes

Hey everyone!

I’m trying to connect two nodes together using hostnames (rather than IP) and I keep getting this error:

** System running to use fully qualified hostnames **
** Hostname <hostname> is illegal **

If I use IP addresses rather than hostnames it works.

Any ideas?

Most Liked

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

Can you provide examples of the host names you’re trying to use?

NobbZ

NobbZ

It seems as if you started your BEAM in “long name” mode, and in long name mode at least one dot is expected in the hostname to make the BEAM recognize it as “fully qualified”, localhost might be an exception of this rule, but I’m not quite sure about that.

cmkarlsson

cmkarlsson

The BEAM don’t think that is good enough. Funnily enough, If I put

127.0.0.1 core_repo. 

in the hosts file. This actually works.

Note the . on the end.

Last Post!

anthonator

anthonator

Using core.repo instead of core-repo or corerepo works :tada::tada::tada:

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" =&gt; #BSON.ObjectId&lt;58eb1a7a9ad169198c3dXXXX&gt;, "email" =&gt; ...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 49084 226
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

We're in Beta

About us Mission Statement