# Adding a Custom Domain

This guide will walk you through the process of adding a custom domain name to your dedicated IPFS gateway using a CNAME record. By setting up a custom domain, you can personalize your IPFS gateway URL and make it easier for users to access your content.

### Prerequisites

* You must have a registered domain name.
* Access to your domain's DNS management settings.
* A dedicated IPFS gateway set up on Filebase.

### Step-by-Step Guide

1. Navigate to the **Gateways** page in your dashboard.
2. Select the **Options** menu for a gateway, then select **Add Custom Domain**<br>

   <figure><img src="/files/sUoYWNny80BiXkHfzJxd" alt="" width="264"><figcaption></figcaption></figure>
3. **Create a CNAME Record**

   In the DNS settings for your domain, you will create a CNAME record that points your custom domain to your dedicated IPFS gateway.

   1. **Add a New CNAME Record**:
      * **Name/Host/Alias**: Enter the subdomain you want to use. For example, if you want to use `ipfs.domain.com`, enter `ipfs`.
      * **Type**: Select `CNAME`.
      * **Value/Target/Destination**: Enter the URL of your dedicated IPFS gateway. This should be the URL you copied in Step 2 (e.g., `your-gateway.myfilebase.com`).
      * **TTL**: You can typically leave this as the default value.
   2. **Save Changes**: Save the new CNAME record.
4. On the **Add Custom Domain** dialog, type in your custom domain, then click **Add Custom Domain**. Be sure to perform this step only after completing Step 3 first. Filebase will verify the DNS configuration, provision a TLS certificate, and begin hosting your domain.<br>

   <figure><img src="/files/n2xu1f3uAyhVDtYN97Ak" alt="" width="375"><figcaption></figcaption></figure>

After the above steps have been completed, your gateway should now be accessible using the following URL format:

```
https://ipfs.domain.com/ipfs/<cid>
```


---

# 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.filebase.com/dedicated-ipfs-gateways/adding-a-custom-domain.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.
