[erlang-questions] erl -name test and net_kernel:start([test, longnames])

Nevar YurinVV@REDACTED
Wed Jan 25 16:00:28 CET 2012


yurin@~()$erl -name test
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4]
[async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.8.4  (abort with ^G)
(test@REDACTED)1>

yurin@~()$erl
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4]
[async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.8.4  (abort with ^G)
1> net_kernel:start([test, longnames]).
{ok,<0.34.0>}
(test@REDACTED)2>

It is right that node names are different?

I expected:

yurin@~()$erl
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4]
[async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.8.4  (abort with ^G)
1> inet_config:init(), OsType = os:type(),
inet_config:do_load_resolv(OsType, longnames).
ok
2> net_kernel:start([test, longnames]).
{ok,<0.35.0>}
(test@REDACTED)3>

It seems the inet_config is configured incorrectly when using
net_kernel:start.

--
View this message in context: http://erlang.2086793.n4.nabble.com/erl-name-test-and-net-kernel-start-test-longnames-tp4327469p4327469.html
Sent from the Erlang Questions mailing list archive at Nabble.com.



More information about the erlang-questions mailing list