Prerequisites
Before adding a CNAME record, make sure you have:
- Access to HestiaCP control panel
- A domain added in HestiaCP with DNS service enabled
What is a CNAME Record?
A CNAME (Canonical Name) record aliases one domain name to another. It is commonly used for www to root domain, or for third-party services.
⚠️ CNAME records cannot be used for the root domain (@). Use an A record for the root domain instead.
Step 1: Log in to HestiaCP
Access https://YOUR_SERVER_IP:8083 and log in.
Step 2: Navigate to DNS Section
Click on DNS in the top menu bar.
Step 3: Select Your Domain
Click on the domain name you want to manage.
Step 4: Click "Add DNS Record"
Click the green + Add DNS Record button.
Step 5: Configure the CNAME Record
Fill in the details:
- Record Name: Enter the subdomain alias (e.g.,
www,shop) - Record Type: Select CNAME from dropdown
- IP Address: Enter the target domain (e.g.,
example.comorexample.github.io) - Priority: Leave empty
Step 6: Save the Record
Click Add to create the CNAME record.
Common CNAME Record Examples
| Record Name | Points To | Purpose |
|---|---|---|
| www | example.com | WWW to root domain |
| shop | shopify.com | Third-party service |
| blog | username.github.io | GitHub Pages |
✅ CNAME record has been added successfully!