Configure Domain Nameservers

You'd need to set the DNS nameservers for your domain if you configured the CLI to manage the DNS for you, by setting createHostedZoneForDomain to true (the default setting). The DNS is managed using a public Route53 Zone.

The nameservers are displayed as logs at the end of the cli run. If you no longer have access to the logs, you can re-run the CLI apply command and it will display the nameservers again.

Copy the nameservers from the CLI output

Copy the nameserveres from the notops apply output. They look like the part highlighted in red in the following screenshot. There are four nameservers that look like ns-1667.awsdns-16.co.uk. Keep these handy. We'll use them in the steps below.

The last part of the logs from the notops apply command

Set Nameservers with your domain provider

The exact process for setting the nameservers would differ between various domain providers. Following are examples of some common domain providers.

Namecheap

Follow the steps from this article from namecheap documentation.

Select the option to use CustomDNS while following the steps.

Porkbun

Follow the steps from this guide from porkbun documentation.

In the field where the nameservers are specified, remove all of the existing entries. Add the nameservers from the CLI output, one per line.

Godaddy

Please refer to this guide from GoDaddy documentation.

While following those steps, pick the option to use your own, custom, nameservers. This option may be titled "I'll use my own nameservers"

Other Providers

If your provider is not mentioned explicitly here, you can usually find the settings by logging into the provider's portal, and looking for DNS settings or nameserver settings. Most providers make it very easy to alter these settings.

Additionally, searching for "Set custom nameservers for <your provider name here>" should find the help you are looking for.

Validate DNS

Nameservers changes do not propagate instantly. It may take up to 24 hours (more, in rare cases) for local ISPs to update their DNS caches so that everyone can see your website.

Go to the dnschecker.org and, enter your domain name (highlighted in green below), and pick NS from the dropdown (highlighted in red below), and click on the "Search" button.

The output will display whether your DNS has been propagated into various regions of the world. Check that the nameservers that are showing up (highligthen in red below) match what you see in the CLI output

Once it's been propagated to the areas you care about, you can start using the domain-name like you usually would.

Last updated