[erlang-questions] Longnames vs. shortnames (yet again)

Éric Pailleau <>
Sun Feb 14 14:06:44 CET 2016


Hi,
dns timeout can result in a long node start-up and unexpected behaviour of nodes.
Unless your Dns is high available,  I would recommend to force always same IP to machines, and add entries in /etc/hosts.
Regards

Le 14 févr. 2016 12:57 PM, "Matwey V. Kornilov" <> a écrit :
>
> 14.02.2016 13:57, PAILLEAU Eric пишет:
> > Le 13/02/2016 22:02, Matwey V. Kornilov a écrit :
> >> Hello,
> >>
> >> When I should use longnames and when I should use shortnames?
> >>
> >> net_kernel:create_hostpart/2 allows me to understand the difference in
> >> behavior, but I can't understand what is the purpose to have both
> >> longnames and shortnames. I suppose that there are different use-cases
> >> for longnames and shortnames. Unfortunately, Erlang documentation lacks
> >> clear explanation here.
> > Hi,
> > erl manual is clear on this point for -sname :
> > " This  is  sometimes the only way to run distributed Erlang if the DNS
> > (Domain Name System) is not running. "
>
> Should I avoid using -sname until DNS is not running?
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions


More information about the erlang-questions mailing list