> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/system-settings/custom-domain/cloudflare-dns.md).

# Cloudflare DNS

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FUoY1nlcgmmUx0EnhGFsw%2Fundraw_Domain_names_re_0uun.png?alt=media&amp;token=82b92c6e-ad7e-4e3f-a702-7c613a3898a7" alt=""><figcaption></figcaption></figure>

Access Cloudflare settings

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

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FSxoWAST28p5zyMc52RUx%2Fimage.png?alt=media&amp;token=bdf96097-f602-4a77-a5d7-91ee3eb9f003" alt=""><figcaption></figcaption></figure>

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FmLN6nEohgYpVOjU0FddX%2Fimage.png?alt=media&amp;token=1c9ff363-e769-4bc7-b4a2-1a1e975525c6" alt=""><figcaption></figcaption></figure>

**Create a Subdomain**

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

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

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FiiieZf4Uc4WYjVVIFadA%2Fimage.png?alt=media&amp;token=1b54e954-f187-4a25-b944-b3fd06e1a679" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FVU56H4Nb81LdEVXiqqkC%2Fimage.png?alt=media&amp;token=b7c94be3-f1d5-4e38-8783-d93c701206b8" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
Disable the proxy option; with it enabled, it won't be possible to configure the connection with Sprinthub
{% endhint %}

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

### Domain validation

{% hint style="info" %}
It is necessary to set up the pointing for AWS validation.
{% endhint %}

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FdAW6R6UB0j9HQITZFiIW%2Fimage.png?alt=media&amp;token=9cc362f1-b29d-4f5d-864c-b9b13608d53b" alt=""><figcaption></figcaption></figure>

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

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

{% hint style="info" %}
It is necessary to perform a CAA validation in Cloudflare so that the certificate information is pulled.
{% endhint %}

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

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FEdZWnsKcyfXHP3hlTceB%2FWhatsApp%20Image%202024-09-03%20at%2011.07.57.jpeg?alt=media&amp;token=4cf8b17c-a582-4c51-b280-4efa791adbe8" alt=""><figcaption></figcaption></figure>

Here are the details of the two entries:

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FyxRD37JlLlusopgUeSex%2FWhatsApp%20Image%202024-09-03%20at%2011.07.58%20(2).jpeg?alt=media&amp;token=07d3d888-ba0c-4c20-aeb3-1586d7aee348" alt=""><figcaption></figcaption></figure>

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2F0QqqBT5khG0CeeJ2ZEfb%2FWhatsApp%20Image%202024-09-03%20at%2011.07.58.jpeg?alt=media&amp;token=d03fae82-f896-4a63-a6ab-449b144d4855" alt=""><figcaption></figcaption></figure>

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

### Checking domain propagation

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

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