> 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

#### 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 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.riff.ai/guides/configure-a-custom-domain-in-riff.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.
