How to Create a Subdomain in Amazon Route 53?

In this post, I will show you how to set up a new subdomain using Route 53 in 4 easy steps. The setup is straightforward and will take less than 2 minutes to have your subdomain up and running. :)

Step 1: Make a hosted zone for your original domain

Make sure that you have already created a hosted zone for your original domain. If you need guidance, you can refer to this blog post, where I set up a hosted zone for

Web Hosting using PHP and MySQL on AWS

Step 2: Create a new hosted zone for your subdomain

Click on Create Hosted Zoneto create a new hosted zone. Enter the domain name as api.aloudapp.inand enter anything you want in the comment section. Set the type as Public Hosted Zoneand click Create.

Step 3: Create a new NS record set for your original domain

  1. Click into your hosted zone, and select the recordset with type NS.

  2. Copy the nameservers in the value box on the right.

  1. Go back to your original hosted zone and click on Create Record Set.

  2. Create a new NS record set with the name same as your subdomain and the value that you just copied. Click on Createto create it.

Step 4: Create an A record set for your subdomain

Return to your subdomain’s hosted zone and click on Create Record Setto create a new recordset. Leave the name empty and set the type as A. In the value field, you can enter any IP address that you want it to point to. Click on Createto create it.

That’s it. Your subdomain should be up and running. :)

You can buy me a coffee if this post really helped you learn something or fix a nagging issue!

Written on November 4, 2019 by Vivek Maskara.

Originally published on Medium

Vivek Maskara
Vivek Maskara
SDE @ Remitly

SDE @ Remitly | Graduated from MS CS @ ASU | Ex-Morgan, Amazon, Zeta