Set Cloudflare Proxy
set_cloudflare_proxyEnable or disable the Cloudflare proxy for a domain's DNS records to control whether traffic is routed through Cloudflare or served DNS-only.
Instructions
Turn the Cloudflare proxy (orange cloud) on or off for a domain's DNS records. NOTE: connecting a domain deliberately imports every record DNS-only (grey cloud), because changing how traffic is served at the same time as changing who serves DNS makes failures hard to diagnose — so proxying is a separate, explicit step, best done AFTER confirming the site still works. Defaults to every proxiable record; pass records to target specific names ("@" = apex, bare labels like "www" are expanded). Only A/AAAA/CNAME can be proxied; anything else comes back under skipped with a reason rather than failing. Proxying hides the origin IP, so if MX points at a name you're proxying, mail to it breaks — that comes back in warnings. Reversible: call again with enabled=false. Use dry_run to preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain whose Cloudflare records to change. | |
| dry_run | No | Preview which records would change, without changing them. | |
| enabled | Yes | true = proxy through Cloudflare (orange cloud); false = DNS-only (grey cloud). | |
| records | No | Optional: limit to these names. "@" = apex; bare labels are expanded (e.g. ["@","www"]). |