[rabbitmq-discuss] Naming RabbitMQ nodes with complete domain names

Alvaro Videla videlalvaro at gmail.com
Sat Feb 19 05:32:25 GMT 2011


Have you tried changing the Erlang option -sname to -name?

That's the way Erlang uses to specify long names.

See http://erlang.org/doc/man/erl.html and then modify your rabbitmq-server script accordingly. 

Cheers,

Alvaro

Sent from my iFad

On Feb 19, 2011, at 10:51 AM, Max Bridgewater <max.bridgewater at gmail.com> wrote:

> Hi,
> 
> This is probably a silly question but it really baffles me right now.
> The original issue is this: I'm trying to use JInterface to connect to
> a rabbitmq cluster hosted on EC2. But I keep getting "Cannot connect
> to peer node". My understanding is that this error is happening
> because I'm using the address 'rabbit at domain.org' to contact the
> remote RabbitMQ node named: rabbit at domain. (Note the missing TLD).
> That is, because there is no exact  match between the node name given
> to JInterface and the name of the node it is connecting to, the
> connection fails.
> 
> I desperately tried configuring RabbitMQ to take the complete domain
> name (domain.org) instead of just the short domain name (domain). Any
> suggestion on how to resolve this issue?
> 
> Beyond this, this problem begs the question of how do RabbitMQ nodes
> located on different machines across different domains communicate
> with each other if the only way they can be referred to each other by
> short name? Up until now, I've only clustered nodes on the same
> machine.
> 
> I'm sure missing something. Please enlighten me.
> 
> Sincerely,
> Max.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss


More information about the rabbitmq-discuss mailing list