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