Pointing your domains to your Amazon Lightsail distributions
Last updated: November 1, 2022
You must point your registered domain names to your Amazon Lightsail distribution after you
enabled custom domains for your distribution. You do this by adding an alias record to the DNS
zone of each of the domains specified on the certificate that you're using with your
distribution. All of the records that you add should point to the default domain (e.g.,
123456abcdef.cloudfront.net) of your distribution.
In this guide, we provide you with the procedure to point your domains to your distribution using a Lightsail DNS zone. The procedure to point your domains to your distribution using a different DNS hosting provider, like Domain.com or GoDaddy, may be similar. For more information about Lightsail DNS zones, see DNS in Amazon Lightsail.
For more information about distributions, see Creating Amazon Lightsail distributions.
Step 1: Complete the prerequisite
Before you get started, you should enable custom domains for your Lightsail distribution. For more information, see Enabling custom domains for your Amazon Lightsail distributions.
Step 2: Get the default domain of your distribution
Complete the following procedure to get default domain name of your distribution, which you specify when you add an alias record to the DNS of your domain.
Sign in to the Lightsail console.
On the Lightsail home page, choose the Networking tab.
Choose the name of the distribution for which want get the default domain name.
In the header section of your distribution's management page, make note of your distribution's default domain name. Your distribution's default domain name is similar to
You must add this value as part of an alias record in the DNS of your domains. We recommend that you copy and paste this value into a text file that you can refer to later. Continue to the next Step 3: Add a record to your domain's DNS zone section of this tutorial.
Step 3: Add a record to your domain's DNS zone
Complete the following procedure to add a record to your domain's DNS zone.
On the Lightsail home page, choose the Domains & DNS tab.
Under the DNS zones section of the page, choose the domain name to which you want to add the record that will direct traffic for your domain to your distribution.
Choose the DNS records tab. Then, choose Add record.
Complete one of the following steps depending on the type of domain that you want to point to your distribution:
Choose an address (A) record to point an apex domain (e.g.,
example.com) to your distribution.
If an A record for the apex of your domain is already present in your DNS zone, then you will need to edit that existing record instead of adding another A record.
Choose a canonical name (CNAME) to point a sub domain, such as
website.example.com, to your distribution.
If you're adding an A record, then in the Resolves to text box choose the name of your distribution. If you're adding a CNAME record, then in the Maps to text box enter the default domain name of your distribution.
When you add an A record to your DNS zone, and choose the name of your distribution, you are in fact adding an alias record, which is different than an address record. Lightsail makes it easy for you to add alias records without the additional steps that are typically required at other DNS hosting providers.
Choose the save icon to save the record to your DNS zone.
Repeat these steps to add additional DNS records for domains on your certificate that you are using with your distribution. Allow time for changes to propagate through the Internet’s DNS. After a few minutes, you should see if your domain is pointing to your distribution. You should also test your distribution. For more information, see the following Testing your Amazon Lightsail distribution.
Here are some articles to help you manage distributions in Lightsail: