Quantcast

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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Nevar
This post has NOT been accepted by the mailing list yet.
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@hell.DI-604UP)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@localhost.localdomain)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@hell.DI-604UP)3>

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