I have a zone in Route 53; let's call it example.com
. I have three A records in that zone:
server1.example.com --> elastic_ip_1
server2.example.com --> elastic_ip_2
server3.example.com --> elastic_ip_3
I want to add a new record to Route 53 with the name server.example.com
so that a DNS lookup of server.example.com
will return one of the three Elastic IP's listed above, chosen randomly and with equal probability.
How do I add this new record?
(Note: these services are UDP-based, so we cannot use the Elastic Load Balancer.)
UPDATE: I would prefer not to use an A record with multiple IP addresses as this would have to be updated each time one of the underlying A records changes.