# Custom Domain / Vanity URL

{% embed url="<https://www.youtube.com/watch?v=JwgKe_CHwp4>" %}

{% hint style="warning" %}
Only the **Community Owner** will have access to change and view Custom Domain settings.
{% endhint %}

{% hint style="warning" %}
Custom domains require the **pro** version.\
For more information, see our [pricing](https://docs.sonoransoftware.com/cms/pricing/pricing-faq) or view how to check your community [limits](https://docs.sonoransoftware.com/cms/tutorials/administrative/view-your-limits).
{% endhint %}

{% hint style="success" %}
Looking for VPS, web, or dedicated hosting? Check out our official [server hosting](https://docs.sonoransoftware.com/promotions/fivem-hosting)!
{% endhint %}

## Vanity URL's

Each community gets a **FREE** vanity URL, vanity URLs allow all communities to get access to the community homepage without a login.

You can also [customize your Community ID](https://docs.sonoransoftware.com/cms/tutorials/community-branding-and-settings#community-id-and-vanity-url).

Your community's vanity URL can be found in your `Administrative Panel > Custom Domain`.

<figure><img src="https://3006847189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdBOa9OFjtdqw9FdXli%2Fuploads%2Fgit-blob-61ac819a2c543c52cf119ee6fc1a6a2215572164%2FScreenshot%20(307).png?alt=media" alt=""><figcaption></figcaption></figure>

The vanity URL will take users to the home page created in the website builder.

## Custom Domain

{% hint style="warning" %}
Custom Domain requires a **Pro** subscription.
{% endhint %}

### 1. Enter your Domain Name

This can be a root domain `example.com` or a subdomain `cms.example.com`

<figure><img src="https://3006847189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdBOa9OFjtdqw9FdXli%2Fuploads%2Fgit-blob-b79f7ed8e61a19eee02f1ad168ccc5739de67031%2FScreenshot%20(307).png?alt=media" alt=""><figcaption></figcaption></figure>

### 2. Configure DNS Records for your Domain

{% hint style="warning" %}
**If you are unsure how to add a DNS record, you will need to contact your domain registrar.**
{% endhint %}

Copy and paste the values to add three DNS records (two `CNAME` records and one `TXT` record). This verifies your domain ownership, community ownership, and redirects traffic on your domain to the CMS.

<figure><img src="https://3006847189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdBOa9OFjtdqw9FdXli%2Fuploads%2Fgit-blob-230cda5589711314f681d74500669c44e6a04ec8%2FScreenshot%20(308).png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Some DNS providers are different!**\
\
Check with your DNS provider if using a "root domain" (i.e. `example.com` instead of `cms.example.com`) to see what to add as the `name`.\
\
Typically it is `@` or left blank.
{% endhint %}

The example record below sets `cms.example.com` as the custom login page URL.

<figure><img src="https://3006847189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdBOa9OFjtdqw9FdXli%2Fuploads%2Fgit-blob-decc65fff3bc371da6b5d332187de5141d51e6e5%2Fimage.png?alt=media" alt=""><figcaption><p>Cloudflare - DNS Record</p></figcaption></figure>

{% hint style="info" %}
**Cloudflare Users:** Be sure to have the **DNS record proxy DISABLED** - and set to `DNS Only`.
{% endhint %}

### 3. Save the Custom Domain

{% hint style="warning" %}
When updating or changing an existing DNS record, it may take some time for the change to propagate (based on your TTL).\
\
You can try running `ipconfig /flushdns` in a Windows CMD window and restart your browser. Otherwise, you can test with other browsers/devices/users while you wait.
{% endhint %}

Press **Set Custom Domain** in the CMS to save. Your new custom domain name will be shown below your vanity URL.

<figure><img src="https://3006847189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdBOa9OFjtdqw9FdXli%2Fuploads%2Fgit-blob-3e7a71bad0ac20705e498d91ac5f8943be015ed2%2Fimage.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://3006847189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdBOa9OFjtdqw9FdXli%2Fuploads%2Fgit-blob-2fa1e91839041bd3a23694592a41885740e08bb6%2Fimage.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

## Troubleshooting

### I can't see other communities when using a custom domain

Custom domains prevent other Sonoran CMS communities from being visible. You will need to use the root `sonorancms.com` domain to view multiple communities at once.
