Hi Luke,
If you happen to see this message, thanks for responding to my previous post. Unfortunately i wasnt able to respond back to your message in my original post.
Setting ERL_EPMD_ADDRESS=<specific-ip-1> and restarting the epmd process worked. I can see that the epmd port 4369 now bound to <specific-ip-1>. However, now I have trouble starting RabbitMQ server. Please see the error below.
The host "us-rabbit-01" is a A-record to another IP (say, <specific-ip-2>). It looks like RabbitMQ is using that hostname to find the IP and then using that IP to talk to epmd process. I currently don't have a A-record or CNAME to the <specific-ip-1>. Is there any workaround other than creating a record to <specific-ip-1> or updating /etc/hosts file? I believe I read somewhere that it is not recommended to use IP for RABBITMQ_NODENAME or HOSTNAME. I am wondering if there is another solution here.
Starting rabbitmq
2023-05-05 18:09:03.072618-05:00 [error] <0.131.0>
2023-05-05 18:09:03.072618-05:00 [error] <0.131.0> BOOT FAILED
2023-05-05 18:09:03.072618-05:00 [error] <0.131.0> ===========
2023-05-05 18:09:03.072618-05:00 [error] <0.131.0> ERROR: epmd error for host us-rabbit-01: address (cannot connect to host/port)
2023-05-05 18:09:03.072618-05:00 [error] <0.131.0>
BOOT FAILED
===========
ERROR: epmd error for host us-rabbit-01: address (cannot connect to host/port)
Thanks
Roy