AccountDnsSettings
Source:
src/Cloudflare/Dns/AccountSettings.ts
The DNS settings of a Cloudflare account
(/accounts/{account_id}/dns_settings) — the account-wide
enforceDnsOnly override and the default DNS settings applied to
every new zone (zoneDefaults).
The settings object is a per-account singleton — it always exists
with Cloudflare defaults, so this resource never creates or deletes
anything physical. Reconcile patches only the fields you declare
(and only when the observed value differs); destroy restores the
managed fields to the values they had before Alchemy first touched
the account (captured as initialSettings).
Some fields are plan-gated: zoneDefaults.nsTtl and custom SOA
values require the custom nameserver TTL / custom SOA entitlements,
foundationDns is a paid add-on, and internalDns is Enterprise
Internal DNS only.
Account-wide overrides
Section titled “Account-wide overrides”yield* Cloudflare.AccountDnsSettings("DnsSettings", { enforceDnsOnly: true,});Zone defaults
Section titled “Zone defaults”Flatten CNAMEs in every new zone
yield* Cloudflare.AccountDnsSettings("DnsSettings", { zoneDefaults: { flattenAllCnames: true },});Default new zones to multi-provider DNS
yield* Cloudflare.AccountDnsSettings("DnsSettings", { zoneDefaults: { multiProvider: true },});