<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Accordingly to the documentation, "erl -name app" should work by taking the domain from the hostame and naming the node "app@hostname". However, if the hostname doesn't contain a dot, like<br>
<br></div># hostname -f<br></div>localhost<br><br></div>then<br></div><div><br></div># erl -name app<br>{error_logger,{{2014,4,24},{13,58,11}},"Can't set long node name!\nPlease check your configuration\n",[]}<br>
...<br><br></div>However, if the hostname contains a dot, like<br><br></div># hostname -f<br></div>localhost.localdomain<br><br></div>then<br><br></div># erl -name app<br>Erlang R16B01 (erts-5.10.2) [source-bdf5300] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]<br>
...<br><br></div>This contradicts the fact<br><br></div># erl -name app@localhost<br><br></div>always works.<br></div>Thank you,<br></div>Iván<br></div>