ejabberd - Comments for "Can\&amp;#039;t set long node name" https://www.ejabberd.im/node/18 en check your computer name and https://www.ejabberd.im/node/18#comment-66485 <p>check your computer name and your short host name or alias name in /etc/hosts, match this<br /> 1. Check your computer name<br /> <code>[wendy@nyc123]$ </code><br /> nyc123 is your computer name<br /> 2. Check your short hostname<br /> <code>[wendy@nyc123]$ hostname -s</code><br /> <code>[wendy@nyc123]$ nyc456</code><br /> This error could happen because your computer name and short host name didn't match. To match this, you can change the computer hostname or alias name.</p> <p>- Change computer host name<br /> <code>[wendy@nyc123]$ hostname nyc456</code><br /> close your terminal and open again<br /> <code>[wendy@nyc456]$</code><br /> the computer name has changed</p> <p>or</p> <p>- Change alias name in /etc/hosts<br /> <code> 127.0.0.1&nbsp;&nbsp;&nbsp;&nbsp; nyc123.com&nbsp;&nbsp;&nbsp;&nbsp; nyc123</code><br /> save and check again<br /> <code> [wendy@nyc123]$ hostname -s</code><br /> <code> [wendy@nyc123]$ nyc123</code></p> <p>Restart your ejabberd!<br /> <code> [root@nyc123]$ ejabberdctl start</code><br /> <code> [root@nyc123]$ ejabberdctl status</code><br /> <code> The node &#039;ejabberd@nyc123.com&#039; is started with status: started</code><br /> <code> ejabberd 15.09 is running in that node</code></p> Wed, 30 Dec 2015 07:11:02 +0000 raraodd comment 66485 at https://www.ejabberd.im /etc/hosts https://www.ejabberd.im/node/18#comment-2 <p>The above error could also happen if your /etc/hosts is in a wrong format. The login prompt will be in a 'strange' format too, mybox.(none) for example.</p> <p>Using DHCP but still in the need for a fancy hostname?</p> <p>/etc/hosts:<br /> 127.0.0.1 mybox.mydomain mybox localhost</p> Tue, 16 Nov 2004 14:20:20 +0000 Skinkie comment 2 at https://www.ejabberd.im