‹ Return to How tos

Point your domain to a Lightsail instance

Last updated: November 1, 2022

You can use the DNS zone in Amazon Lightsail to point a registered domain name, like example.com, to your website running on a Lightsail instance, also known as a virtual private server (VPS). You can create up to six DNS zones in you Lightsail account. Not all DNS record types are supported. For more information about Lightsail DNS zones, see DNS in Amazon Lightsail.

If you expect to create more than six DNS zones or use DNS record types that aren’t supported in Lightsail, we recommend using an Amazon Route 53 hosted zone. With Route 53, you can manage the DNS for up to 500 domains. It also supports a greater variety of DNS record types. For more information, see Working with hosted zones in the Amazon Route 53 Developer Guide.

This guide shows you how to edit the DNS records for a domain managed in Lightsail so that it points to your Lightsail instance. Allow up to 48 hours for any DNS zone changes to propagate through the internet's DNS.

Prerequisites

Complete the following prerequisites if you haven’t already done so:

Assign a domain to a Lightsail instance

Use one of the following methods to assign a domain to an instance in Lightsail:

Instance domains tab

Complete the following procedure to assign your domain to a Lightsail instance in the instance Domains tab of the Lightsail console.

To assign your domain by using the instance Domains tab

  1. Sign in to the Lightsail console.

  2. Choose the instance name that you want to assign the domain to.

  3. Choose Assign domain in the Domains tab.

  4. Select the domain that you want to assign to your Lightsail instance.

  5. Verify that the routing information is correct, and then choose Assign.

Optional

To edit or remove your domain assignment from the instance, choose the edit icon or the waste bin icon next to the domain name.

Static IP domains tab

Complete the following procedure to assign your domain to a Lightsail instance in the static IP Domains tab of the Lightsail console.

To assign your domain by using the static IP Domains tab

  1. Sign in to the Lightsail console.

  2. Choose the Networking tab.

  3. Choose the static IP that you want to assign the domain to.

  4. Choose Assign domain in the Domains tab.

  5. Select the domain that you want to assign to your static IP.

  6. Verify that the routing information is correct, and then choose Assign.

Optional

To edit or remove your domain assignment from the static IP, choose the edit icon or the waste bin icon next to the domain name.

DNS zone assignments tab

Complete the following procedure to assign your domain to a Lightsail instance in the Assignments tab of the DNS zone.

To assign your domain by using the Assignments tab

  1. Sign in to the Lightsail console.

  2. Choose the Domains & DNS tab.

  3. Choose the DNS zone for the domain name that you want to use.

  4. Choose Add assignment in the Assignments tab.

  5. Select the domain name that you want to assign to your Lightsail instance. If a static IP isn’t already attached to the instance, you are prompted to attach one.

  6. Verify that the routing information is correct, and then choose Assign.

Optional

To edit or remove your domain assignment from the resource, choose the edit icon or the waste bin icon next to the domain name.

Additional information about domains

The following articles can help you manage domains in Lightsail: