I am trying to add multiple ip address under a sub domain in route 54. It is enough un the UI and it is easy to add one ip address using area54 or in boto.
e.g. master.hui.com
10.130.149.247
10.130.149.248
Using area54
ipaddress = '10.130.149.247'
entry = 'master.hui.com'
zone = route53.get_zone('hui.com')
add_dns = zone.add_record('A',entry, [ipaddress], ttl='60')
In boto:
conn = Route53Connection(aws_access_key_id, aws_secret_access_key)
changes = ResourceRecordSets(conn, zone_id)
change = changes.add_change("CREATE",sub_domain, "A", 60)
change.add_value(ip_address)
So…how do I add two or more ip address under a sub domain using either area53 or boto?
Thanks
You need to use WRRs. From the boto CLI:
or from the API:
See http://docs.amazonwebservices.com/Route53/latest/DeveloperGuide/WeightedResourceRecordSets.html
Finally, what you are calling a “sub domain” is a “resource record”. “sub domain” implies a zone which left me confused when you sent this question to the boto-users mailing list.