ejabberd node name

My EJABBERD_NODE ejabberd@`hostname -s` and i have "Failed RPC connection to the node ejabberd@nodename: nodedown". My domain don't equally hostname -s. How I can use ejabberd@midomain.com? I have record { hosts, ["midomain.com"] } in ejabberd.cfg, but it did not work.
ejabberd 2.1.11

Edit EJABBERD_NODE in the

Edit EJABBERD_NODE in the file ejabberdctl.cfg and put what you want or what you need.

I don't see EJABBERD_NODE in

I don't see EJABBERD_NODE in ejabberdctl.cfg. There is only ERLANG_NODE=ejabberd@localhost. I add EJABBERD_NODE="ejabberd@mydomain.com", but this don't work.
OS: centos 6.

Syndicate content