Making Route 53 the DNS service for an inactive domain
If you want to migrate DNS service to Amazon Route 53 for a domain that isn't getting any traffic (or is getting very little traffic), perform the procedures in this section.
Topics
Step 1: Get your current DNS configuration from the current DNS service provider (inactive domains)
When you migrate DNS service from another provider to Route 53, you reproduce your current DNS configuration in Route 53. In Route 53, you create a hosted zone that has the same name as your domain, and you create records in the hosted zone. Each record indicates how you want to route traffic for a specified domain name or subdomain name. For example, when someone enters your domain name in a web browser, do you want traffic to be routed to a web server in your data center, to an Amazon EC2 instance, to a CloudFront distribution, or to some other location?
The process that you use depends on the complexity of your current DNS configuration:
If your current DNS configuration is simple – If you're routing internet traffic for just a few subdomains to a small number of resources, such as web servers or Amazon S3 buckets, then you can manually create a few records in the Route 53 console.
If your current DNS configuration is more complex, and you just want to reproduce your current configuration – You can simplify the migration if you can get a zone file from the current DNS service provider, and import the zone file into Route 53. (Not all DNS service providers offer zone files.) When you import a zone file, Route 53 automatically reproduces the existing configuration by creating the corresponding records in your hosted zone.
Try asking customer support with your current DNS service provider how to get a zone file or a records list. For information about the required format of the zone file, see Creating records by importing a zone file.
If your current DNS configuration is more complex, and you're interested in Route 53 routing features – Review the following documentation to see whether you want to use Route 53 features that aren't available from other DNS service providers. If so, you can either create records manually, or you can import a zone file and then create or update records later:
Choosing between alias and non-alias records explains the advantages of Route 53 alias records, which route traffic to some AWS resources, such as CloudFront distributions and Amazon S3 buckets, for no charge.
Choosing a routing policy explains the Route 53 routing options, for example, routing based on the location of your users, routing based on the latency between your users and your resources, routing based on whether your resources are healthy, and routing to resources based on weights that you specify.
Note
You can also import a zone file and later change your configuration to take advantage of alias records and complex routing policies.
If you can't get a zone file or if you want to manually create records in Route 53, the records that you're likely to migrate include the following:
A (Address) records – associate a domain name or subdomain name with the IPv4 address (for example, 192.0.2.3) of the corresponding resource
AAAA (Address) records – associate a domain name or subdomain name with the IPv6 address (for example, 2001:0db8:85a3:0000:0000:abcd:0001:2345) of the corresponding resource
Mail server (MX) records – route traffic to mail servers
CNAME records – reroute traffic for one domain name (example.net) to another domain name (example.com)
Records for other supported DNS record types – For a list of supported record types, see Supported DNS record types.
Step 2: Create a hosted zone (inactive domains)
To tell Amazon Route 53 how you want to route traffic for your domain, you create a hosted zone that has the same name as your domain, and then you create records in the hosted zone.
Important
You can create a hosted zone only for a domain that you have permission to administer. Typically, this means that you own the domain, but you might also be developing an application for the domain registrant.
When you create a hosted zone, Route 53 automatically creates a name server (NS) record and a start of authority (SOA) record for the zone. The NS record identifies the four name servers that Route 53 associated with your hosted zone. To make Route 53 the DNS service for your domain, you update the registration for the domain to use these four name servers.
Important
Don't create additional name server (NS) or start of authority (SOA) records, and don't delete the existing NS and SOA records.
To create a hosted zone
Sign in to the AWS Management Console and open the Route 53 console at https://console.aws.amazon.com/route53/
. If you're new to Route 53, choose Get started.
If you're already using Route 53, choose Hosted zones in the navigation pane.
Choose Create hosted zone.
In the Create hosted zone pane, enter a domain name and, optionally, a comment. For more information about a setting, pause the mouse pointer over its label to see a tool tip.
For information about how to specify characters other than a-z, 0-9, and - (hyphen) and how to specify internationalized domain names, see DNS domain name format.
For Record type, accept the default value of Public hosted zone.
Choose Create hosted zone.
Step 3: Create records (inactive domains)
After you create a hosted zone, you create records in the hosted zone that define where you want to route traffic for a domain (example.com) or subdomain (www.example.com). For example, if you want to route traffic for example.com and www.example.com to a web server on an Amazon EC2 instance, you create two records, one named example.com and the other named www.example.com. In each record, you specify the IP address for your EC2 instance.
You can create records in a variety of ways:
- Import a zone file
This is the easiest method if you got a zone file from your current DNS service in Step 1: Get your current DNS configuration from the current DNS service provider (inactive domains). Amazon Route 53 can't predict when to create alias records or to use special routing types such as weighted or failover. As a result, if you import a zone file, Route 53 creates standard DNS records using the simple routing policy.
For more information, see Creating records by importing a zone file.
- Create records individually in the console
If you didn't get a zone file and you just want to create a few records with a routing policy of Simple to get started, you can create the records in the Route 53 console. You can create both alias and non-alias records.
For more information, see the following topics:
- Create records programmatically
You can create records by using one of the AWS SDKs, the AWS CLI, or AWS Tools for Windows PowerShell. For more information, see AWS Documentation.
If you're using a programming language that AWS doesn't provide an SDK for, you can also use the Route 53 API. For more information, see the Amazon Route 53 API Reference.
Step 4: Update the domain registration to use Amazon Route 53 name servers (inactive domains)
When you've finished creating records for the domain, you can change the DNS service for your domain to Amazon Route 53. Perform the following procedure to update settings with the domain registrar.
To update the name servers for the domain
In the Route 53 console, get the name servers for your Route 53 hosted zone:
Open the Route 53 console at https://console.aws.amazon.com/route53/
. In the navigation pane, choose Hosted zones.
On the Hosted zones page, choose the radio button (not the name) for the hosted zone, then choose View details.
On the details page for the hosted zone, choose Hosted zone details.
Make note of the four servers listed for Name servers.
Use the method provided by the registrar for the domain to change the name servers for the domain to use the four Route 53 name servers that you got in step 2 of this procedure.
If the domain is registered with Route 53, see Adding or changing name servers and glue records for a domain.