> For the complete documentation index, see [llms.txt](https://docs.riff.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.riff.ai/guides/configure-a-custom-domain-in-riff.md).

# Configure a Custom Domain

This guide walks you through how to configure a custom domain for your app in Riff.

#### Before you start, make sure that:

* You are on a paid Riff plan
* Your project has been deployed
* You own a domain name (if not, purchase one from a domain provider)
* You have access to the DNS settings for the domain or subdomain

{% stepper %}
{% step %}
**Step 1: Request a custom domain in Riff**

1. Deploy your app.
2. Go to Settings → Production & Hosting → Custom Domain.
3. Enter your domain name and select your current DNS provider.
4. Submit the domain request.
   {% endstep %}

{% step %}
**Step 2: Update DNS records**

1. Go to your domain registrar and open the DNS settings (often called DNS or DNS Records).
2. In Riff, under Custom Domain settings, you’ll find the DNS values you need.
3. Add the provided records from riff to your DNS provider. Make sure the values match exactly to avoid setup issues.
   {% endstep %}

{% step %}
**Step 3: Wait for domain verification**

* DNS propagation can take a few minutes up to 24 hours.
* Double-check the DNS values. Use a tool like dnschecker.org￼ to verify propagation.
* Once the certificate is valid, you’ll see a green check mark in Riff.
  {% endstep %}

{% step %}
**Step 4: Final deployment**

* You’ll receive a notification when your domain is activated.
* Deploy your app one more time to connect it to the custom domain.
  {% endstep %}
  {% endstepper %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.riff.ai/guides/configure-a-custom-domain-in-riff.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
