> For the complete documentation index, see [llms.txt](https://help.wegic.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.wegic.ai/features/custom-domain/connect-alibaba-cloud-domain.md).

# Connect Alibaba Cloud Domain

When your domain is using Alibaba Cloud DNS, you need to add DNS records in your DNS settings.

Wegic will provide:

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

{% hint style="info" %}

### Alibaba Cloud Official Guide

You can refer to the official Alibaba Cloud documentation:

* [Add DNS records](https://help.aliyun.com/zh/dns/pubz-add-parsing-record)
  {% endhint %}

## Open DNS Settings

1. Sign in to Alibaba Cloud console
2. Go to **Cloud DNS (云解析 DNS)**
3. Enter **Authoritative DNS / Public DNS (权威域名解析)**
4. Select your domain
5. Click **DNS Settings (解析设置)**

👉 官方路径：进入域名后点击“解析设置”，即可添加记录 &#x20;

## Add A Record

**1. Create A Record**

* Click **Add Record (添加记录)**
* Select **Type → A**

**2. Fill in A Record**

* **Host (主机记录)** → Enter `@`
* **Record Value (记录值)** → Paste the IP address provided by Wegic
* **Line (解析线路)** → Default (默认)
* **TTL (TTL时间)** → Keep default

👉 A record is used to point your domain to an IP address &#x20;

<figure><img src="/files/aNbmhYEJuA38VJdasn5I" alt=""><figcaption></figcaption></figure>

**3. Save A Record**

* Click **Confirm (确定)**

## Add CNAME Record

**1. Create CNAME Record**

* Click **Add Record (添加记录)**
* Select **Type → CNAME**

**2. Fill in CNAME Record**

* **Host (主机记录)** → Enter prefix only (e.g. `www`)
* **Record Value (记录值)** → Paste the CNAME provided by Wegic (e.g. `xxxxx.n2.wegic.app`)
* **Line (解析线路)** → Default (默认)
* **TTL (TTL时间)** → Keep default

<figure><img src="/files/22WdVqD8rnloySKcSEU5" alt=""><figcaption></figcaption></figure>

**3. Save CNAME Record**

* Click **Confirm (确定)**

## DNS Update Time

* Usually takes effect within minutes
* May take up to 48 hours globally

## 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
