Nice to see you here in the group. Here is what found on the internet. See if it works for you. With these steps, each node in the RabbitMQ cluster should be able to perform reverse DNS lookup correctly and retrieve its own hostname. This should enable the cluster to function correctly and avoid any inconsistencies or delays during startup.
1. Set up the hosts file on each node to map the IP address to the hostname. This can be done by editing the /etc/hosts file and adding a line for each node in the cluster. For example:
10.0.0.1
node1.example.com10.0.0.2
node2.example.com10.0.0.3
node3.example.com2. Set the hostname of each node to the fully qualified domain name (FQDN) that was specified in the hosts file. This can be done by running the following command on each node:
sudo hostnamectl set-hostname
node1.example.com3. Enable reverse DNS lookup on each node by editing the /etc/resolv.conf file and adding the following line:
options single-request-reopen
4. Set up DNS resolution for the cluster by creating a DNS A record for each node in the cluster. For example:
node1.example.com A 10.0.0.1
node2.example.com A 10.0.0.2
node3.example.com A 10.0.0.3
5. Configure RabbitMQ to use the fully qualified domain name (FQDN) for the node name instead of the IP address. This can be done by setting the RABBITMQ_NODENAME environment variable in the RabbitMQ configuration file to the FQDN of the node. For example:
RABBITMQ_NODENAME=
rab...@node1.example.com6. Start the RabbitMQ service on each node and verify that they are all running and able to communicate with each other.
Kind regards,
Mahendra Rathod.