> For the complete documentation index, see [llms.txt](https://docs.rafflex.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rafflex.io/getting-started/add-your-domain-to-rafflex.md).

# 2️⃣ Add Your Domain to RaffleX

To set up your custom domain on RaffleX, we need to make sure it’s secure. To do this, we use Cloudflare. It basically lets your customers and web browsers know that your site is safe to use.

{% hint style="warning" %}
You will have went down one of two routes when purchasing your domain.

* Purchased on cloudflare.com (skip [**Import DNS Records to Cloudflare**](#import-dns-records-to-cloudflare))
* Purchased on a different provider (GoDaddy, Namecheap, 123-reg etc...)
  {% endhint %}

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

***

### Create a Cloudflare Account

{% stepper %}
{% step %}

### Open Cloudflare

Go to [Cloudflare](https://www.cloudflare.com/).
{% endstep %}

{% step %}

### Sign up

Click **Sign Up** (or if on mobile, click **Log In** then **Sign Up**).
{% endstep %}

{% step %}

### Verify your email

Verify your email address (check your inbox for Cloudflare’s verification email).
{% endstep %}
{% endstepper %}

***

### Add Your Domain to Cloudflare

{% stepper %}
{% step %}

### Enter your domain

Enter your existing domain (e.g., `yourrafflesite.co.uk`).
{% endstep %}

{% step %}

### Choose the Free plan

Scroll down and select the **Free** option.
{% endstep %}

{% step %}

### Note your nameservers

You will see **Update Your Nameservers** with your assigned Cloudflare nameservers listed.
{% endstep %}
{% endstepper %}

***

### Update Nameservers

The exact steps depend on where you bought your domain. Choose your provider below.

{% tabs %}
{% tab title="GoDaddy" %}
{% stepper %}
{% step %}

### Log in to GoDaddy

Log in to [GoDaddy](https://godaddy.com/).
{% endstep %}

{% step %}

### Open your domain

Select **Domain** from the menu.
{% endstep %}

{% step %}

### Manage DNS

Choose your domain, click **Manage DNS**.
{% endstep %}

{% step %}

### Open nameserver settings

Click **Nameservers**, then **Change nameservers**.
{% endstep %}

{% step %}

### Enter Cloudflare’s nameservers

Select **I'll use my own nameservers** and enter the two provided by Cloudflare.
{% endstep %}
{% endstepper %}
{% endtab %}

{% tab title="Namecheap" %}
{% stepper %}
{% step %}

### Log in to Namecheap

Log in to [Namecheap](https://namecheap.com/).
{% endstep %}

{% step %}

### Open your domain

Select **Domain List**, then your domain.
{% endstep %}

{% step %}

### Switch to Custom DNS

Find **Nameservers**, click the dropdown, select **Custom DNS**.
{% endstep %}

{% step %}

### Enter Cloudflare’s nameservers

Enter the two nameservers from Cloudflare.
{% endstep %}
{% endstepper %}
{% endtab %}

{% tab title="123reg" %}
{% stepper %}
{% step %}

### Log in to 123 Reg

Log in to [123 Reg](https://123-reg.co.uk).
{% endstep %}

{% step %}

### Open your domains

Click **Control Panel**, then Manage Domains.
{% endstep %}

{% step %}

### Select your domain

Select your domain.
{% endstep %}

{% step %}

### Open nameserver settings

Click **Change Nameservers** (DNS).
{% endstep %}

{% step %}

### Choose custom nameservers

Choose Enter my own nameservers.
{% endstep %}

{% step %}

### Enter Cloudflare’s nameservers

Add both Cloudflare nameservers and click **Update**.
{% endstep %}
{% endstepper %}
{% endtab %}
{% endtabs %}

{% hint style="warning" %}
The update can take up to 24 hours, but usually completes within minutes. You’ll receive an email from Cloudflare confirming the update. Refresh your Cloudflare dashboard and it should show **Cloudflare is protecting your site**.
{% endhint %}

***

### Switch from Temporary to Custom Domain

{% stepper %}
{% step %}

### Contact support

[Contact RaffleX support team](https://rafflex.io/contact-us) to initiate the switch.
{% endstep %}

{% step %}

### Open your DNS records link

We will send you a link to access your new DNS records.
{% endstep %}

{% step %}

### Download the TXT file

Once loaded, click **Cloudflare DNS Import** at the top-left to download the TXT file.
{% endstep %}
{% endstepper %}

***

### Import DNS Records to Cloudflare

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

{% stepper %}
{% step %}

### Open your DNS records

Go to Cloudflare dashboard, click **DNS**, then **Records**.
{% endstep %}

{% step %}

### Open Import and Export

Click the **Import and Export** button located toward the right.
{% endstep %}

{% step %}

### Upload the TXT file

Upload the TXT record downloaded from RaffleX.
{% endstep %}

{% step %}

### Check your records

This will populate all necessary DNS records.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
If you want [www.yourdomain.com](http://www.yourdomain.com) to load your site, [please click here](/helpful-info/ensure-www.-loads-your-site.md) and follow the instructions.
{% endhint %}

{% hint style="warning" %}
If you have followed these steps and your site is still not verified, please make sure you have read the [Common Errors to Avoid](#common-errors-to-avoid) before contacting us.
{% endhint %}

***

### Verification and Completion

1. Allow about 15 minutes for DNS verification.
2. Return to RaffleX to confirm everything has been verified.

Your website is now accessible at your domain!

**Log in to your editor:** `yourdomain.com/admin`

{% hint style="danger" %}
Please make sure to **use the correct password** for your Admin site. This will have been sent to you in an email after signing up.
{% endhint %}

***

### Common Errors to Avoid

#### 1. ❌ A Records Still Present

Fix:

Delete all existing A records from your DNS settings in Cloudflare. These conflict with how your domain points to RaffleX.

#### 2. ❌ Incorrect CNAME for www

Fix:

If you have a www CNAME pointing to yourdomain.com, delete it. Instead, create a new CNAME record for www that points to:

*customers.rafflex.io*

#### 3. ⚠️ Missing \_acme-challenge TXT Record

Fix:

Sometimes the \_acme-challenge record doesn’t import correctly.

To fix this:

* Log into your RaffleX dashboard
* Copy the exact \_acme-challenge name and value shown
* Go to Cloudflare → DNS → Add Record
* Choose TXT as the type
* Paste the name and value exactly as shown

This record is required to generate your SSL certificate and make your site secure.

***

{% hint style="warning" %}
If you’re stuck or unsure, drop us a message and our team will help you get sorted fast. **Please ensure to send a screenshot of your current Cloudflare DNS settings to enable us to resolve your issue quickly.**
{% endhint %}
