[erlang-bugs] net_kernel:start/1 going its own way
Tuncer Ayaz
tuncer.ayaz@REDACTED
Thu Apr 12 11:03:52 CEST 2012
On Wed, Apr 11, 2012 at 11:53 PM, Ulf Wiger wrote:
>
> On 11 Apr 2012, at 23:25, Ulf Wiger wrote:
>
>> I just noticed this confusing behavior:
>>
>> uwair: uwiger$ erl -name n1
>> Erlang R15B (erts-5.9) [source] [64-bit] [smp:4:4]
>> [async-threads:0] [hipe] [kernel-poll:false]
>>
>> Eshell V5.9 (abort with ^G)
>> (n1@REDACTED)1>
>> BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
>> (v)ersion (k)ill (D)b-tables (d)istribution
>> a
>> uwair: uwiger$ erl
>> Erlang R15B (erts-5.9) [source] [64-bit] [smp:4:4]
>> [async-threads:0] [hipe] [kernel-poll:false]
>>
>> Eshell V5.9 (abort with ^G)
>> 1> net_kernel:start([n1, longnames]).
>> {ok,<0.33.0>}
>> (n1@REDACTED)2>
>>
>> When starting erlang the normal way, I get the node name
>> 'n1@REDACTED', but when I start the net_kernel manually, I get
>> 'n1@REDACTED'.
>
> Having experimented a bit, I found the following workaround:
>
> Eshell V5.9 (abort with ^G)
> 1> inet_config:do_load_resolv(os:type(),longnames).
> ok
> 2> net_kernel:start([n1,longnames]).
> {ok,<0.34.0>}
> (n1@REDACTED)3>
>
> Comments?
Try this
$ sudo scutil --set HostName `hostname -s`.local
More information about the erlang-bugs
mailing list