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 aloudapp.in.
Web Hosting using PHP and MySQL on AWS
It’s was a Sunday, and I was bored. Then I came across a custom URL shortener service, YOURLS that I had previously used…
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.
Step 3: Create a new NS record set for your original domain
- Click into your hosted zone, and select the recordset with type
2. Copy the nameservers in the
value box on the right.
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.
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.
That’s it. Your subdomain should be up and running. :)