0
votes

I have one domain name registered in an AWS Hosted zone. It comprises of 5 records viz A, SOA, NS (4 ns addresses), MX and CNAME. But now, I want to create a Subdomain : static.domain.com. I have read Creating a Subdomain That Uses Amazon Route 53 as the DNS Service without Migrating the Parent Domain article from AWS doc but clearly that is not my case. My domain name is configured in the Route53 itself.

So if I have to create a hosted zone for the static.domain.com and update the NS records in the parent's hosted zone domain.com then I can just do that but I am confused if that's gonna work or destroy my whole configuration!

So guys, please tell me how to create the subdomain static.domain.com when my parent domain domain.com is also in the Route53?

FYI : I am creating this subdomain to serve static content from an s3 bucket which will be configured as an static website and will be aliased against this subdomain static.domain.com so that all static requests are can be fetched as http://static.domain.com/resources/path/to/dir/image.png etc.

Thanks very much

1
static.domain.com is not a subdomain. domain.com is a subdomain of .com (really, it is). for static.domain.com to be considered a subdomain, you need to prefix it with a host. For example image.static.domain.com where image would be the host and then static.domain.com could be considered a subdomain. - Erik Philips

1 Answers

1
votes

All you need to do is create a record set in your Hosted Zone, for your desired sub domain.

  1. Go to your Hosted Zone
  2. Click the 'Create Record Set' Button
  3. In the dialog that appears on the right, enter your desired subdomain in the 'name' field. If you want static.domain.com, just enter 'static' in the name field.
  4. Choose the Type of DNS Record you want eg, A, CNAME
  5. Enter a custom TTL if desired, enter value(s) for your record and change the routing policy if also desired.