skip to Main Content

Creating a SUBDOMAIN in AWS EC2 and ROUTE 53.

I created an AWS EC2 instance on my website amusan.co using WORDPRESS (Bitnami).

But now I want to create a separate SUBDOMAIN like port.amusan.co to create my developer portfolio which I will not be using WORDPRESS, as I plan to use HTML, CSS AND JAVASCRIPT.

How can I make that work?

2

Answers


  1. Create a hosted zone for the subdomain in Route 53
    Create a hosted zone with the same name as the subdomain that you want to route traffic for, such as acme.example.com. To do this:

    Open the Route 53 console.
    In the navigation pane, choose Hosted zones.
    Choose Create hosted zone.
    In the right pane, enter the name of the subdomain (such as some.example.com). Note: For more information, see DNS domain name format.
    For Type, accept the default value of Public hosted zone.
    Choose Create hosted zone.

    Find the name servers that were assigned to the new hosted zone

    When you create a hosted zone, Route 53 automatically assigns four name servers to the zone. To start using the records in the hosted zone for the subdomain, create a new name server (NS) record in the hosted zone for the domain (example.com). The name of the NS record must be the same as the name of the subdomain (acme.example.com).

    After creating the hosted zone for the subdomain, expand the Hosted zone details dropdown list for the subdomain in the hosted zone (acme.example.com). In the right pane, copy the names of the four servers listed as the Name servers under Hosted zone details.

    Add NS records to route traffic to your subdomain

    Select the hosted zone for the domain (example.com). Be sure not to select the name of the subdomain (some.example.com).
    In the hosted zone for the domain, choose Create record.
    For Name, enter the name of the subdomain.
    For Value, enter the names of the name servers.
    For Record type, choose NS – Name servers for a hosted zone.
    For TTL (Seconds), select a more common value for an NS record, such as 172,800 seconds.
    For Route Policy, choose Simple routing.
    Choose Create Records.

    Login or Signup to reply.
  2. you have to create hosted zone for your domain than you have to create the records in that you can select policy simple or as per your requirement and than there is option to name sub-domain in record name and put there your subdomain name and in the value save your ip address to which you want to route traffic thats it and click on save

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search