Configuring DNS failover
When you have more than one resource performing the same functionāfor example, more than one HTTP server or mail serverāyou can configure Amazon RouteĀ 53 to check the health of your resources and respond to DNS queries using only the healthy resources. For example, suppose your website, example.com, is hosted on six servers, two each in three data centers around the world. You can configure RouteĀ 53 to check the health of those servers and to respond to DNS queries for example.com using only the servers that are currently healthy.
RouteĀ 53 can check the health of your resources in both simple and complex configurations:
-
In simple configurations, you create a group of records that all have the same name and type, such as a group of weighted records with a type of A for example.com. You then configure RouteĀ 53 to check the health of the corresponding resources. RouteĀ 53 responds to DNS queries based on the health of your resources. For more information, see How health checks work in simple Amazon RouteĀ 53 configurations.
-
In more complex configurations, you create a tree of records that route traffic based on multiple criteria. For example, if latency for your users is your most important criterion, then you might use latency alias records to route traffic to the Region that provides the best latency. The latency alias records might have weighted records in each Region as the alias target. The weighted records might route traffic to EC2 instances based on the instance type. As with a simple configuration, you can configure RouteĀ 53 to route traffic based on the health of your resources. For more information, see How health checks work in complex Amazon RouteĀ 53 configurations.