Using traffic flow to route DNS traffic - Amazon Route 53
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Using traffic flow to route DNS traffic

Traffic flow greatly simplifies the process of creating and maintaining records in large and complex configurations.

Managing related records in a hosted zone can be challenging in the following circumstances:

  • You have a lot of resources that perform the same operation, such as web servers that serve traffic for the same domain.

  • You want to create a complex tree of records using alias records and a combination of Route 53 routing policies, such as latency, failover, and weighted.

Traffic flow advantages

To make it easier to track the records and their relationships, traffic flow simplifies DNS record creation with the following features:

Visual editor

The traffic flow visual editor lets you create complex trees of records and see the relationships among the records. For example, you might create a configuration in which latency alias records reference weighted records, and the weighted records reference your resources in multiple Amazon Web Services Regions. Each configuration is known as a traffic policy. You can create as many traffic policies as you want at no charge.

Versioning

You can create multiple versions of a traffic policy so you don't have to start all over when your configuration changes. Old versions continue to exist until you delete them; there's a default limit of 1000 versions per traffic policy. You can optionally give each version a description.

Automatic record creation and updating

A traffic policy can represent dozens or even hundreds of records. Traffic flow lets you create all those records automatically by creating a traffic policy record. You specify the hosted zone and the name of the record at the root of the tree, such as example.com or www.example.com, and Route 53 automatically creates all the other records in the tree. The root record—the traffic policy record—appears in the list of records for your hosted zone; all the other records are hidden.

When you create a new version of a traffic policy, you can selectively update traffic policy records that you created using the previous traffic policy version. When you update a traffic policy record, Route 53 automatically updates all the other records in the tree. You can also quickly roll back changes by updating a traffic policy record again to use a previous version of a traffic policy.

Note

You can use traffic flow to create records only in public hosted zones.

Geoproximity routing policy

When using traffic flow, you can more intuitively understand how traffic is routed to each of your global endpoints by using the geoproximity map on the traffic flow visual canvas. For more information, see Geoproximity routing.

Reuse for multiple records in different hosted zones

You can use a traffic policy to automatically create records in multiple public hosted zones. For example, if you're using the same web servers for multiple domain names, you can use the same traffic policy to create traffic policy records in the hosted zones for example.com, example.org, and example.net.

When a client submits a query for the name of the root record, such as example.com or www.example.com, Route 53 responds to the query based on the configuration in the traffic policy that you used to create the corresponding traffic policy record.

There's a monthly charge for each traffic policy record. For more information, see the "Traffic Flow" section of Amazon Route 53 pricing.

To minimize these charges, you can create one or more alias records in a hosted zone that reference a traffic policy record in that hosted zone. For example, you can create a traffic policy record for example.com and then create an alias record for www.example.com that references the traffic policy record.