Subdomain setup

Creating a Subdomain That Uses Amazon Route 53 as the DNS Service without Migrating the Parent Domain


You can create a subdomain that uses Amazon Route 53 as the DNS service without migrating the parent domain from another DNS service.

The procedure shall involve following steps:

  • Create subdomain hosted zone
  • Create NS record on the parent domain hosted zone

In this example, we use example.com as parent hosted zone.

Create Subdomain

You want to keep those parent domain hosted zone records, so now lets create the subdomain.

On your route 53 create the subdomain :

Create Hosted zone

Fill up the box Domain Name: with your subdomain : k8s.example.com

Route 53 should generate your NS server like below in subdomain management console:

  1. ns-613.<example-aws-dns>-13.net.
  2. ns-75.<example-aws-dns>-04.com.
  3. ns-1022.<example-aws-dns>-35.co.uk.
  4. ns-1149.<example-aws-dns>-27.org.

Take note on these records.

Create NS record on Parent domain hosted zone

Add / Create a NS record on the parent domain hosted zone with previous noted subdomain NS server records via parent domain management console.

After done, the result should like this from cli:

dig ns k8s.example.com

  1. ;; ANSWER SECTION:
  2. k8s.example.com. 172800 IN NS ns-613.<example-aws-dns>-13.net.
  3. k8s.example.com. 172800 IN NS ns-75.<example-aws-dns>-04.org.
  4. k8s.example.com. 172800 IN NS ns-1022.<example-aws-dns>-35.com.
  5. k8s.example.com. 172800 IN NS ns-1149.<example-aws-dns>-27.co.uk.

Wait until the NS replication is ok