How to Create a Subdomain in Amazon Route 53?

Image for post
Image for post

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. :)

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 aloudapp.in.

Step 2: Create a new hosted zone for your subdomain

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

Image for post
Image for post
Create a new hosted zone

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.

Image for post
Image for post
Copy the value of the NS recordset.

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

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

Image for post
Image for post
Create a new NS recordset in your original hosted zone.

Step 4: Create an A record set for your subdomain

Return to your subdomain’s hosted zone and click on Create Record Set to 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 Create to create it.

Image for post
Image for post
Create an A recordset mapping it to some IP address.

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

Written by

Grad Student at ASU | Student Researcher at The Luminosity Lab | Ex Senior Software Engineer, Zeta | Volunteer, Wikimedia Foundation

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store