> ## Content Index
> Fetch the complete content index at: https://blog.esadax.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Example code to set up a CNAME record with Esadax
- URL: https://blog.esadax.com/en/example-code-to-set-up-a-cname-record-with-esadax-2/
- Published: 2025-07-06T00:00:00.000Z
- Updated: 2026-11-15T05:28:05.000Z
- Author: Esadax 
- Tags: #tr-domains-12-faq-12-how-to-create-a-cname-record-for-your-domain, #en, #mdx-imported, Domains

To set up a CNAME record with Esadax, follow these organized steps:

1. **Access Domain List**: Log into your Esadax account and navigate to the main domains section by selecting "Domain List" from the left-hand menu.
2. **Manage Domain**: Locate your domain in the list and click on "Manage" to access its DNS settings.
3. **Advanced DNS Settings**: Go to the Advanced DNS tab where you can manage existing records.
4. **Add New Record**: Click on "Add New Record" to create a new CNAME entry.
5. **Select Record Type**: From the dropdown, choose "CNAME" as the record type.
6. **Host and Value Fields**:
  - **Host**: Enter your desired subdomain (e.g., www).
  - **Value**: Provide the fully qualified domain name of the target without including your main domain (e.g., ghs.googlehosted.com).
7. **Check for Conflicts**: Ensure no existing CNAME, A, or ALIAS records conflict with your new host.
8. **Set TTL**: Configure Time-to-Live to 60 seconds as the minimum recommendation.
9. **Save Changes**: Click "Save All Changes" after verifying all settings.
10. **Wait for Propagation**: Allow up to 30 minutes for DNS changes to take effect globally.
11. **Contact Support if Needed**: Reach out for assistance if issues arise.

```python

# Access Esadax dashboard and navigate to domain list
dashboard = login_to_Esadax()

# Find the domain in the list and click "Manage"
domain_settings = dashboard.select_domain("example.com")

# Navigate to Advanced DNS settings
dns_settings = domain_settings.advanced_dns()

# Create new CNAME record
new_record = dns_settings.add_record(
    type="CNAME",
    host="www",
    value="ghs.googlehosted.com"
)

# Check for existing records and conflicts
conflict_check = new_record.check_conflicts()

# Set TTL to 60 seconds
new_record.set_ttl(60)

# Save all changes
saved_changes = new_record.save()

# Wait for propagation
time.sleep(30)  # Approximately 30 minutes

# Optional: Verify the CNAME record
verification = check_cname_status("www.example.com")

```