In many cases, you might be required to create different
environments for your web application; for example, you might need a
development environment along with your production environment.
Let's say you host your web application at example.com
,
and now your team needs a dev.example.com
to deploy and
test the changes. What's the easiest and quickest way to accomplish
that?
Well, this is what this tutorial covers!
It's quite easy to do this, but when I did it the first time, I got really confused because of the number of available resources online. Some of them went too deep and provided more information than needed. All we need to do is create a hosted zone for that specific sub-domain and reference it in our root domain's hosted zone—that's it!
example.com
, your
subdomain must end with example.com
, for example,
dev.example.com
.
NS
record values. There should be four name
servers.
example.com
) and create a new record.
dev
and then select
NS
record as the record type.This tutorial provides a straightforward approach to achieving this task using AWS Route53. You can efficiently establish the necessary DNS configuration by creating a hosted zone for the specific subdomain and referencing it in the root domain's hosted zone.