Setting up Third Party DNS
Registering and setting up a domain
New Domain
Subdomain of Existing Domain

1. Register a Domain Name

This domain name, eg pluraldemo.com can be registered with any registrar, for example Google Domains, GoDaddy, or Namecheap.

2. Create a DNS Zone in Your Cloud Provider Console Corresponding to the registered Domain Name

Follow the instructions for creating a DNS Zone named pluraldemo.com within the DNS service of your cloud provider.
Record the nameservers corresponding to this zone.

3. Update name servers

Go back to where you registered pluraldemo.comand add the nameservers from Step 2 as "custom nameservers" under its DNS configuration.
The domain name registrars will typically provide default name servers and also the ability to set up custom name servers. For example, in Google Domains, you can set custom name servers under the DNS tab once you click into a specific domain name.
The more likely scenario is that you will have an existing company domain, i.e. pinterest.com and you will want to create a subdomain under which you can consolidate all your plural applications, eg plural.pinterest.com

1. Create DNS Zone in Your Cloud Provider Console

Follow the instructions for creating a DNS Zone named plural.pinterest.com within the DNS service of your cloud provider.
Record the nameservers corresponding to this zone.

2. Create NS Record

Go back to where you registered pinterest.com and add a NS record that corresponds to the plural.pinterest.com subdomain -- for the data field of the record, input the nameservers from step 1.
These are the terraform snippets for reference:
1
resource "aws_route53_zone" "test" {
2
name = "plural.pinterest.com"
3
​
4
tags = {
5
Environment = "test"
6
}
7
}
8
​
9
resource "aws_route53_record" "test-ns" {
10
zone_id = data.aws_route53_zone.main.zone_id
11
name = "plural.pinterest.com"
12
type = "NS"
13
ttl = "30"
14
records = aws_route53_zone.test.name_servers
15
}
Copied!
Copy link
Edit on GitHub