Menu
AWS WAF and AWS Shield Advanced
Developer Guide (API Version 2015-08-24)

Step 4: Register Your Domain Name and Implement DNS Service Using Amazon Route 53

You can use Amazon Route 53 to register the domain name for your website, route internet traffic to the resources for your domain, and check the health of your web server to verify that it's reachable, available, and functional. Amazon Route 53 helps to protect against DDoS attacks by providing redundancy and load balancing across multiple DNS servers. Amazon Route 53 can also detect anomalies in DNS queries and prioritize requests from users that are known to be reliable and, by extension, deprioritize requests that are from potentially less reliable sources.

Important

You are responsible for the cost of the AWS services implemented in this tutorial. For full details about CloudFront costs, see the Amazon Route 53 pricing page.

Register Your Domain with Amazon Route 53

If you are new to hosting a website, your next step in this tutorial is to register a domain using Amazon Route 53. Following are the steps to do this.

Important

If your domain is already registered with another registrar, you must migrate your existing domain from the other registrar's DNS service to instead use Amazon Route 53 as the DNS service. This tutorial does not cover that transfer process. Instead of following the Amazon Route 53 procedures described in this tutorial, you must perform four steps to transfer an existing domain:

  • Create a hosted zone

  • Get your current DNS configuration from your DNS service provider

  • Create resource records sets

  • Update your registrar's name servers

For more information about transferring an existing domain registration from another registrar, see Transferring Domains.

To register a new domain using Amazon Route 53

  1. Sign in to the AWS Management Console and open the Amazon Route 53 console at https://console.aws.amazon.com/route53/.

  2. Under Domain Registration, choose Get Started Now.

  3. Choose Register Domain.

  4. Type the domain name that you want to register, and choose Check to find out whether the domain name is available. As an example, this tutorial assumes that you register the domain name example.com.

    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.

  5. If the domain is available, choose Add to cart. The domain name appears in your shopping cart.

  6. In the shopping cart, choose the number of years that you want to register the domain for.

  7. To register more domains, repeat steps 4 through 6.

  8. Choose Continue.

  9. On the Contact Details for Your n Domains page, enter contact information for the domain registrant, administrator, and technical contacts. The values that you enter here are applied to all the domains that you're registering.

  10. For some top-level domains (TLDs), we're required to collect additional information. For these TLDs, enter the applicable values after the Postal/Zip Code field.

  11. Choose whether you want to hide your contact information from WHOIS queries. For more information, see the following topics:

  12. Choose Continue.

  13. Review the information that you entered, read the terms of service, and select the check box to confirm that you've read the terms of service.

  14. Choose Complete Purchase.

    For generic TLDs, we typically send an email to the registrant for the domain to verify that the registrant contact can be reached at the email address that you specified. (We don't send an email if we already have confirmation that the email address is valid.) The email comes from one of the following email addresses:

    • noreply@registrar.amazon.com – for TLDs registered by Amazon Registrar.

    • noreply@domainnameverification.net – for TLDs registered by our registrar associate, Gandi. To determine who the registrar is for your TLD, see Domains That You Can Register with Amazon Route 53.

    Important

    The registrant contact must follow the instructions in the email to verify that the email was received, or we must suspend the domain as required by ICANN. When a domain is suspended, it's not accessible on the internet.

    For all TLDs, you receive an email when your domain registration has been approved. To determine the current status of your request, see Viewing the Status of a Domain Registration.

Create Records

Your next step is to create records that tell Amazon Route 53 how you want to route traffic for the domain and subdomain.

To create records

  1. Sign in to the AWS Management Console and open the Amazon Route 53 console at https://console.aws.amazon.com/route53/.

  2. In the navigation pane, choose Hosted zones.

  3. Because you registered your domain using Amazon Route 53, Amazon Route 53 automatically creates a hosted zone for you. Choose this hosted zone.

  4. Choose Create Record Set.

  5. Enter the applicable values:

    • For Name, leave as is (it should already be example.com).

    • For Type, choose A – IPv4 address.

    • For Alias, choose Yes.

    • For Alias Target, type the domain name of your CloudFront distribution that you created earlier in this tutorial.

  6. Choose Create.

Note

Your new record takes time to propagate to the Amazon Route 53 DNS servers. Changes generally propagate to all Amazon Route 53 name servers within 60 seconds.

To test your Amazon Route 53 records

  1. Open the domain name you added to the record, such as example.com, in a browser.

  2. You should see your website.

Next: Step 5: Detect and Filter Malicious Web Requests Using AWS WAF.