> For the complete documentation index, see [llms.txt](https://docs.codeocean.com/admin-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codeocean.com/admin-guide/v2.2/deployment-guide/subdomain-delegation.md).

# Subdomain Delegation

As mentioned in the [Prerequisites](/admin-guide/v2.2/deployment-guide/prerequisites.md#choose-a-hosting-domain), if you choose an internet-facing deployment type you will need to configure the parent domain (for example, XYZ.com) to delegate the Code Ocean subdomain (`codeocean` by default) to Route53 by adding an NS record to the parent domain.

Once CloudFormation deployment is completed, to delegate the subdomain:

1. Navigate to [Route53 Hosted zones](https://console.aws.amazon.com/route53/v2/hostedzones#), and find your newly created public hosted zone from the deployment (e.g. `codeocean.XYZ.com`) then select View Details.
2. Under Records search for the NS (Name Server) record, and copy the content of "Value/Route traffic to" column. Here's an example of such NS record:

   ```
   Name = codeocean.XYZ.com
   Type = NS
   Value =
   ns-1923.awsdns-48.co.uk.
   ns-366.awsdns-45.com.
   ns-1437.awsdns-51.org.
   ns-673.awsdns-20.net.
   ```
3. Add an NS record in your hosting domain (e.g. `XYZ.com`) with the copied value to delegate the subdomain to Route53.
