A newbie question on Amazon. I want to install within Amazon EC2 multiple servers based XMPP ejabberd, probably within a cluster and if possible with a load balancer.
The first question that arises is about the DNS:
I have a registered domain (eg example.com) which the XMPP server instances are, for example, xmpp1.example.com, xmpp2.example.com, etc ...
Reading the technical documentation of Amazon EC2, I have seen that says that all instances running in EC2 will have a dns name external and one internal, but as I understand this does not have to coincide with xmpp1.example, com, etc ... In addition, the documentation insists that these values can not be changed.
Further, XMPP needs reverse resolution and documentation of Amazon insists that reverse lookup will always result in the external DNS name of the instance Amazon. Is this correct?
So what solution is there? How can I link the instances running on Amazon EC2 dns names?. I need both reverse zones as in the reverse? Also, how I can include SRV records?
I have also seen that there is the concept of elastic fixed IP address on the Internet. Is it a possible solution, for example, have two IPs for load balancers and can take some external DNS to resolve DNS names?
Anyway, I have many doubts about how this infrastructure can address and meet the XMPP protocol.