> For the complete documentation index, see [llms.txt](https://docs.duplocloud.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.duplocloud.com/docs/automation-platform/extras-overview/delegate-subdomains.md).

# Delegate Subdomains

When managing a domain, such as `example.com`, you may want to delegate control of specific subdomains to different cloud platforms. The guide will help you go through the steps how to delegate subdomain from a Cloud Provider to a hosted zone in AWS and GCP.

Lets assume you have `example.com` registed in a DNS Provider such as GoDaddy or CloudFlare, and we want to be able to delegate:

* `aws.example.com`. to your AWS account
* `gcp.example.com`. to your GCP account

### Delegate subdomains to AWS

For DNS management, AWS offers Amazon Route 53. Here are the steps you need to take:

1. Create a public hosted zone for `aws.example.com` in Route 53.
2. Note down the nameserver (NS) records that Route 53 assigns to your new hosted zone
3. To delegate the DNS control, you need to update the DNS settings of your primary domain `example.com` in the DNS Provider.
4. Go to where `example.com` is hosted, and add NS records for `aws.example.com`, pointing to the nameservers you noted from AWS Route 53.

This configuration delegates the management of `aws.example.com` to AWS.

### Delegate subdomains to GCP

1. Create a managed zone for `gcp.example.com` in Google Cloud DNS.
2. Note down the nameserver (NS) records assigned to the managed zone.
3. Update the DNS settings for your primary domain `example.com` in your DNS Provider to delegate GCP:
4. Go to where `example.com` is hosted. and add NS records for `gcp.example.com`, pointing to the nameservers noted from Google Cloud DNS.

This configures the delegation of `gcp.example.com` to GCP.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.duplocloud.com/docs/automation-platform/extras-overview/delegate-subdomains.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
