DNS (Cloudflare)

When Cloudflare is enabled, the panel creates or updates A records for site FQDNs so they point to the server IP. CloudflareClient talks to the Cloudflare API with retry logic; SyncCloudflareDnsJob can sync records for multiple sites.

Usage

Key file

app/Services/Dns/CloudflareClient.php

Config

Env / KeyPurpose
CLOUDFLARE_TOKENAPI token with Zone:DNS edit
CLOUDFLARE_ZONE_IDZone ID for the domain
CLOUDFLARE_PROXIEDWhether A records are proxied (orange cloud)
wphoster.server_ipServer IP used as A record content
wphoster.features.cloudflare_dnsMaster switch for Cloudflare DNS (default true)

If Cloudflare is not configured or feature is disabled, provisioning and cloning skip DNS steps without failing.