AWS CHR dst-nat to host name

Hello,

I am running a CHR instance as the edge device for my VPC.

I am hosting a web server behind CHR, I use a dst-nat rule to NAT the traffic to the server, I would now like to increase the scalability and implement a load balancer. When creating an ELB, you are given a hostname that resolves to a dynamic IP Address ( IP changes once every two - three days ) so if I use AWS ELB I would have to update my NAT rules frequently.

Has anyone had a similar experience and what was your workaround?

I understand you could use a NAT round-robin load balancer but you would not be able to check the health of an instance before NATting traffic there.

Should this be a feature request for CHR to support hostname in the To Address field?


Thank you.

Just create a small script in Scheduler that will check if IP address changed and will update it in NAT rule