# Cloudflare DNS

<figure><img src="/files/c490697ce61b60790848d4d39b9cd9bfbddd6745" alt=""><figcaption></figcaption></figure>

Access the Cloudflare settings

1. **Log in to your Cloudflare account.**
2. **Select the desired domain** from the list of configured domains.
3. **Click the "DNS" tab** in the Cloudflare control panel.

<figure><img src="/files/1fe253dfb1d6d46be1184cbf0781735637829314" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/07e2007c510dfe53935c676ac80ca13b28f675e8" alt=""><figcaption></figcaption></figure>

**Create a Subdomain**

To create a subdomain, you will need to add a new DNS record. Follow these steps:

**Click the "Add record" button** (Add record).

<figure><img src="/files/1e3194487854f7b06495a325509e86d85922261a" alt=""><figcaption></figcaption></figure>

**Choose the record type as "CNAME", enter the subdomain name and point it to "sh.sprinthub.site".**

<figure><img src="/files/6a1d2cab44919cd11e5e9c10665a8a60ebff7b71" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
Disable the proxy option; with it enabled you will not be able to configure the connection with Sprinthub
{% endhint %}

After configuring the necessary fields, click save and verify that the record was added correctly in the DNS records list.

### Domain validation

{% hint style="info" %}
You must point for AWS validation.
{% endhint %}

<figure><img src="/files/2254933c84a72f564f80d500cd10f39d57039de2" alt=""><figcaption></figcaption></figure>

* **Instructions**:
  1. Access your domain's DNS records.
  2. Add a new record in the DNS settings selecting CNAME as the record type.
  3. Return to the first window, copy the content of the "Name / Host" field.
  4. Paste the copied content into the "Name or Host" field of your DNS records.
  5. Go back to the first window and copy the content of the "Value / Target" field.
  6. Paste the copied content into the "Value or Target" field of your DNS records.
* **Verification CNAME record**:
  * **Record Type**: CNAME
  * **Record Name "Name / Host"**: A generated value appears (a unique alphanumeric code).
  * **Value "Value / Target"**: A specific generated value (also an alphanumeric code), pointing to an AWS domain for validation.

These instructions are to ensure the custom domain is validated correctly when configuring the CNAME record on the DNS server.

{% hint style="info" %}
A CAA validation is required on Cloudflare so it can pull the certificate information.
{% endhint %}

There are two types of CAA - Issue and Issuewild for Amazon.com

<figure><img src="/files/b43cad4e0237e34c2b7c5ddad6e5d23dd714ca1c" alt=""><figcaption></figcaption></figure>

Here are the details of the two records:

<figure><img src="/files/88db4fd1541daa2fc108a5965beb0a9a5ea7e296" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/6b2c1853611773eb5daa2aefe7b3a39d9e074002" alt=""><figcaption></figcaption></figure>

* Type: CAA
* Domain: @ or your own domain
* &#x20;Flag: 0
* Tag: Only for Specific hostnames / Allow only wildcard characters
* Domain Name: amazon.com

### Checking domain propagation

Use the following tool to check the propagation of the new subdomain and confirm that it is correctly pointing to `sh.sprinthub.site`.

{% embed url="<https://mxtoolbox.com/SuperTool.aspx?action=cname:pages.marciomicheli.com.br&run=toolpage>" %}


---

# Agent Instructions: 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.sprinthub.com/en/topics/settings/custom-domain/cloudflare-dns.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.
