> For the complete documentation index, see [llms.txt](https://docs.spindl.xyz/spindl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.spindl.xyz/spindl/features/short-links/custom-domains.md).

# Custom Domains

By default, Spindl's short links look like: <https://spindl.link/b2b3ec7a5>

Spindl supports custom domains as well, so you can have links like <https://link.mydapp.com/12345>.&#x20;

### DNS Changes

To set up a Custom Domain, you need to make two simple changes to your DNS settings:

1. Create a CNAME record pointing the custom subdomain to Spindl's redirect server (`custom-domains.spindl.click.)`
2. Create a TXT record for SSL certificate validation & creation (this is specific to each subdomain)

| Record Type | Name                  | Value                            |
| ----------- | --------------------- | -------------------------------- |
| **CNAME**   | link                  | `custom-domains.spindl.click.`   |
| **TXT**     | \_acme-challenge.link | (We'll send it to you privately) |

As an example, here is what this should look like in different providers:

* Cloudflare (for the subdomain `l`)

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

* Namecheap (for the subdomain `link`)

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

After configuring records, it can take up to a few hours for the changes to propagate and the SSL certificate to be generated.


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.spindl.xyz/spindl/features/short-links/custom-domains.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
