Cloudflare DNS Records
1. Record Overview
DNS records managed through the Cloudflare API. Records are linked to a confirmed Cloudflare connector and can be created, updated, checked, and deleted remotely.
Fields
- Cloudflare Connector - Reference to the Cloudflare account (required, must be in Confirmed state)
- Domain - Domain name for the DNS record, e.g.,
app.example.com(required) - Record Type - DNS record type (required, default:
A):A- IPv4 address recordCNAME- Canonical name alias
- Target - IP address (for A records) or domain (for CNAME records) (required, tracked)
- TTL - Time To Live in seconds (required, default: 3600)
- Proxied - Whether traffic is proxied through Cloudflare (default: True, tracked)
- State - Record status: Draft, Created, or Deleted (tracked)
- Cloudflare ID - Unique identifier returned by Cloudflare after creation (readonly)
- Cloudflare Zone ID - Zone identifier for the domain (readonly)
- Internal ID - Auto-generated UUID for internal tracking (readonly)
- Created on Remote - Flag indicating the record exists on Cloudflare (readonly)
2. Record Lifecycle
Draft → Created → Deleted
| State | Description |
|---|---|
| Draft | Not yet created on Cloudflare, all fields editable |
| Created | Successfully synced to Cloudflare |
| Deleted | Removed from Cloudflare |
3. Actions
| Action | From State | Description |
|---|---|---|
| Create Cloudflare Record | Draft | Sends POST request to Cloudflare API to create the DNS record |
| Update Cloudflare Record | Created | Syncs local changes back to Cloudflare via PUT request |
| Delete Cloudflare Record | Created | Removes the record from Cloudflare via DELETE request |
| Check Status | Any | Verifies the record still exists on Cloudflare and compares local vs remote data |
Deletion Protection
Records that have been created on Cloudflare cannot be deleted from Odoo until you first click Delete Cloudflare Record to remove them remotely. This prevents orphaned DNS records.
Duplicate Detection
When creating a record, if Cloudflare reports the record already exists (error code 81058), the system automatically searches for and links to the existing remote record.