Skip to content

How to connect AWS Lightsail Domains with Other Domains

0

Hello,

I would like to link a different domain to the one I am currently using in AWS Lightsail. In order to do that, I hear that I need to configure the A record and CNAME record in AWS Lightsail, but I’m not sure how to proceed.

Could you please let me know how to set this up?

Thank you.

asked a year ago251 views

1 Answer
0

To link a different domain to your AWS Lightsail instance, you'll need to configure DNS records properly. Here's how to do it:

If you're using Lightsail DNS zones:

  1. Sign in to the Lightsail console
  2. Go to the "Domains & DNS" tab
  3. Select the DNS zone for your domain
  4. Choose "Add record" in the DNS records section
  5. For the apex domain (example.com), create an A record:
  • Select "A record" as the record type
  • Leave the subdomain field empty (for apex domain) or enter your subdomain name
  • In the "Resolves to" field, enter the static IP address of your Lightsail instance
  1. For subdomains (like www.example.com), create a CNAME record:
  • Select "CNAME" as the record type
  • Enter the subdomain name (e.g., "www")
  • Point it to your domain or another subdomain

If you're using a Lightsail distribution with custom domains:

  1. Sign in to the Lightsail console
  2. Go to the "Networking" section
  3. Select your distribution
  4. Choose the "Custom domains" tab
  5. Click "Attach certificate" (you'll need to create an SSL/TLS certificate first if you don't have one)
  6. Select a valid certificate for your domain(s)
  7. Choose "Attach"
  8. After the status changes to "Enabled," click "Add domain assignment"
  9. Verify the information and choose "Add assignment"

Remember that DNS changes can take some time to propagate through the internet, sometimes up to 48 hours, though often much faster.
Sources
Point a domain to your Lightsail instance using Amazon Route 53 - Amazon Lightsail
how to add a subdomain to a LIghtsail instance | AWS re:Post
Serve content with custom domains for your Lightsail distribution - Amazon Lightsail

answered a year ago

EXPERT

reviewed a year ago

AWS
EXPERT

revised a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.