Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple IP addresses for Resource Record Sets of Route 53

I'm studying aws route53, when I'm creating the resource record set, I can add multiple IP addresses to value of record set.

enter image description here

What is the purpose of multiple IP addresses here? Ex: my domain will route to server 1 and server 2. I tried to stop server 1 and access to my domain, but it did NOT route to server 2.

What is the issue here? Could you please explain multiple IP addresses of record set's value? Thanks!

like image 353
Charles PHAM Avatar asked Nov 28 '16 09:11

Charles PHAM


People also ask

Can an A record have multiple IP addresses?

In either mode, a DNS A record must be defined with more than one IP address (known as DNS A record failover). The first IP address should point to the default, production server, and the other IP addresses should point to identical (or frequently synchronized) redundant servers.

How do you add multiple IP addresses to A record?

To create multiple A (Host Records) with the same IP, simply create a new A (Host) record, and give it IP #1. Then create another A (Host) record, giving it the same IP address. You can add as many as you like. DNS Round Robin feature will rotate responses for each query.

Which AWS Route 53 routing policy would you use to route traffic to multiple resources and also choose how much traffic is routed to each resource?

Weighted routing policy – Use to route traffic to multiple resources in proportions that you specify.

What is a Route 53 resource record set?

Route 53 calculates the sum of the weights for the resource record sets that have the same combination of DNS name and type. Route 53 then responds to queries based on the ratio of a resource's weight to the total.


1 Answers

The correct question is stated in the AWS Route 53 documentation:

https://aws.amazon.com/route53/faqs/#associate_multiple_ip_with_single_record

Q. Can I associate multiple IP addresses with a single record?

Yes. Associating multiple IP addresses with a single record is often used for balancing the load of geographically-distributed web servers. Amazon Route 53 allows you to list multiple IP addresses for an A record and responds to DNS requests with the list of all configured IP addresses.

This method is usually used by Highly Available applications that will parse the results and decide what to do with the results, such as randomly or programmatically return one result only or list all the resources available in a cluster.

The response will vary according to the the specified "Routing Policy", if you specify "Simple" (default) one you all get all the entries for that record in the response.

like image 197
GMartinez Avatar answered Nov 15 '22 18:11

GMartinez