[erlang-bugs] net_adm:ping annoying messages due to /etc/hosts content

PAILLEAU Eric eric.pailleau@REDACTED
Sun Apr 15 19:27:34 CEST 2012


Hi,

I don't know if it is a bug but I get very annoying SASL error messages
as below when I use net_adm:ping() :

---8<----------------------------------------------------
=ERROR REPORT==== 15-Apr-2012::19:07:44 ===
** System running to use fully qualified hostnames **
** Hostname localhost is illegal **
---8<----------------------------------------------------

because I have in my /etc/hosts

---8<----------------------------------------------------
127.0.0.1  localhost
---8<----------------------------------------------------

I understand that hostnames known by Erlang should be fully qualified
when node is starting with -name but I wonder why it cares about
shortnames and especially to localhost because :

the strange thing is that when I change to :
---8<----------------------------------------------------
127.0.0.1  mylocalhost
---8<----------------------------------------------------

I do not have the messages, even if it is not fully qualified too ...

Regards





More information about the erlang-bugs mailing list