# Connect Cloudflare Domain

When your domain is using Cloudflare, you need to add DNS records in your DNS settings.Wegic will provide:

* A record value (IP address)
* CNAME record value (domain)

{% hint style="success" %}

## Quick Access

You can also refer to the official Cloudflare guide:

* [Create DNS records](https://developers.cloudflare.com/dns/manage-dns-records/how-to/create-dns-records/)
* [Edit DNS records](https://developers.cloudflare.com/dns/manage-dns-records/how-to/create-dns-records/#edit-dns-records)
* [Delete DNS records](https://developers.cloudflare.com/dns/manage-dns-records/how-to/create-dns-records/#delete-dns-records)
  {% endhint %}

## **Open DNS Settings**

1. Sign in to your Cloudflare
2. Go to the [**DNS Records**](https://dash.cloudflare.com/?to=/:account/:zone/dns/records) page.

## **Add A Record**

### **1. Add New Record**

* Click **Add record**
* You will see a form with fields:
  * **Type**\
    → Choose A or CNAME
  * **Name**\
    → Enter `@` or a prefix (e.g. `www`)
  * **Content**\
    → Enter the value provided by Wegic
  * **Proxy status**\
    → Select DNS only
  * **TTL**\
    → Keep Auto

### **2. Fill in A Record**

* **Type** → Select **A**
* **Name** → Enter `@`
* **Content** → Paste the IP address provided by Wegic
* **Proxy status** → Select **DNS only**
* **TTL** → Keep Auto

### **2. Save A Record**

* Click **Save**

## **Add CNAME Record**

### **1. Add Another Record**

* Click **Add record** again

### **2. Fill in CNAME Record**

* **Type** → Select **CNAME**
* **Name** → Enter prefix only (e.g. `www`)
* **Content** → Paste the CNAME provided by Wegic (e.g. `xxxxx.n2.wegic.app`)
* **Proxy status** → Select **DNS only**
* **TTL** → Keep Auto

### **3. Save CNAME Record**

* Click **Save**

## **Finish in Wegic**

1. Return to Wegic
2. Click **Update / Publish** (top-right corner) → This opens the publish settings modal
3. In the modal, click **Custom Domain → Connect**
4. Verification starts automatically
5. If successful, you will see a success message
6. Click **Publish** to apply your website to the domain

{% hint style="info" %}

## **Important (Cloudflare)**

* Make sure **Proxy status = DNS only**
* If set to Proxied (orange cloud), the domain may not verify
  {% endhint %}


---

# 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://help.wegic.ai/features/custom-domain/connect-cloudflare-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.
