[erlang-bugs] "erl -name app" fails if hostname doesn't contain a dot

Bengt Kleberg bengt.kleberg@REDACTED
Thu Apr 24 15:33:17 CEST 2014


Greetings,

"hostname -f" should display the the FQDN (Fully Qualified Domain Name).
A FQDN consists of a short host name and the DNS domain name. I think
that only "localhost" is not correct.


bengt

 On Thu, 2014-04-24 at 14:01 +0200, Iván Martínez wrote:
> Accordingly to the documentation, "erl -name app" should work by
> taking the domain from the hostame and naming the node "app@REDACTED".
> However, if the hostname doesn't contain a dot, like
> 
> 
> # hostname -f
> 
> localhost
> 
> 
> then
> 
> 
> 
> # erl -name app
> {error_logger,{{2014,4,24},{13,58,11}},"Can't set long node name!
> \nPlease check your configuration\n",[]}
> ...
> 
> 
> However, if the hostname contains a dot, like
> 
> 
> # hostname -f
> 
> localhost.localdomain
> 
> 
> then
> 
> 
> # erl -name app
> Erlang R16B01 (erts-5.10.2) [source-bdf5300] [64-bit] [smp:8:8]
> [async-threads:10] [hipe] [kernel-poll:false]
> ...
> 
> 
> This contradicts the fact
> 
> 
> # erl -name app@REDACTED
> 
> 
> always works.
> 
> Thank you,
> 
> Iván
> 
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://erlang.org/mailman/listinfo/erlang-bugs





More information about the erlang-bugs mailing list