A long node name identifies a BEAM instance with a prefix and fully qualified host name, such as node1@some_host.some_domain or node1@127.0.0.1. The host portion must resolve to the machine’s IP address when nodes connect. section 12.3.1
Use long names when distributed nodes need fully qualified host or IP addressing:
- Start IEx with --name instead of --sname. section 12.3.1
- Connect only to nodes using the same naming mode; long-named and short-named nodes cannot connect. section 12.3.1
- Configure releases with RELEASE_NODE and set RELEASE_DISTRIBUTION=name for long-name operation. section 13.2.2
Start a long-named node
Run $ iex --name node1@some_host.some_domain, or use an IP address such as node1@127.0.0.1. The shell prompt displays the resulting node name. section 12.3.1
$ iex --name node1@127.0.0.1 iex(node1@127.0.0.1)1> #1
Compare long-name startup with the resulting IEx prompt. section 12.3.1
