Documentation Schedule a pilot

DNS

Cloudflare provides authoritative DNS served from its anycast network, with DNSSEC signing, CNAME flattening and per-record proxy control. This page documents the resolution path, record model, DNSSEC procedure, limits and plan availability.

Document control

Dana, technical writer at Integrity
Dana
Technical writer, Integrity Czech Republic s.r.o.

Document control. Vendor: Cloudflare, Inc. Document owner: Dana, technical writer, Integrity Czech Republic s.r.o. Last reviewed: 2026-08-31. Content snapshot of the referenced Cloudflare documentation: 2026-08-28. Figures in this document were verified against the sources listed under References on the dates shown there; Cloudflare changes limits and packaging without notice, so verify at the source before you design against a value.

Overview

Authoritative DNS answers queries for a zone. It is a dependency of every connection to a domain, including web, mail and machine-to-machine traffic. A failure in authoritative DNS makes a domain unreachable regardless of the state of the servers behind it.

Cloudflare serves authoritative DNS from its anycast network. Cloudflare states that its network operates in 348 cities (https://www.cloudflare.com/network/, retrieved 2026-08-28).

Published resolver benchmark rankings are produced by third parties with their own measurement populations and methods. Where response time is a requirement, measure it from your own client population.

Cloudflare DNS is also the attachment point for the rest of the platform. A record is either DNS-only, in which case Cloudflare returns the address you configured, or proxied, in which case Cloudflare returns its own addresses and the hostname's traffic transits the Cloudflare network.

Architecture

Cloudflare's nameservers share a set of IP addresses announced by anycast from its data centres. A resolver querying those addresses is routed to a nearby announcing location, and a location that becomes unavailable causes queries to be routed elsewhere by ordinary BGP behaviour rather than by a DNS failover mechanism.

Zone data edited in the dashboard or through the API is distributed to the serving infrastructure. The relevant distinction for planning is between two things that are often conflated:

Consequently, the time for a change to become visible to all clients is bounded by the previous TTL, not by the speed of the authoritative update. Cutovers must be planned around the TTL that was in effect before the change.

Zone setups differ. A full setup makes Cloudflare authoritative through a registrar nameserver delegation. A partial (CNAME) setup keeps another provider authoritative and delegates individual hostnames. Secondary DNS allows Cloudflare to serve as a secondary to an external primary, or the reverse, using zone transfers.

Capabilities

CapabilityBehaviourPlan or tierSource
Anycast authoritative DNSZone served from Cloudflare's anycast network with DDoS mitigation applied to the DNS layer.All plans.Cloudflare DNS
Proxy toggle per recordEach A, AAAA or CNAME record can be DNS-only or proxied, determining whether traffic transits Cloudflare.All plans.Proxy status
DNSSECCloudflare signs the zone and generates the DS record values. The DS record must be published at the registrar.All plans.DNSSEC
CNAME flatteningReturns the resolved address for a CNAME at the zone apex, so an apex hostname can target another hostname.All plans.CNAME flattening
Secondary DNS and multi-provider setupsZone transfer based configurations with Cloudflare as primary or secondary.Enterprise.Zone setups
API, Terraform and audit logsFull record management through API and Terraform, with an audit record of changes.All plans; audit log retention differs.Manage DNS records
DNS analyticsQuery volume, response codes and query type breakdown.All plans; retention and granularity differ.DNS analytics
Load balancingHealth-checked traffic steering across pools, configured separately from DNS records.Separately billed add-on.Load Balancing

Configuration model

A zone contains records, each with a type, name, content, TTL and, for address and CNAME records, a proxy status. When a record is proxied, its TTL is managed by Cloudflare and the returned content is a Cloudflare address rather than the configured origin address.

Record types supported include the common types used for web and mail, along with types used for service discovery and verification. Support is broad but not universal; confirm a specific type against the supported record types reference.

Key settings that affect resolution behaviour:

Records are manageable through the dashboard, the API, the Terraform provider and zone file import or export. Where zones are managed as code, hold the zone file in version control so that a cutover has a reviewable diff and a reversible state.

Limits and constraints

Plan availability

PlanIncluded
FreeAuthoritative DNS, DNSSEC, CNAME flattening, proxy toggle, API and Terraform access, DNS analytics.
Pro and BusinessAs Free, with higher limits on some zone and record quotas.
EnterpriseAdds secondary DNS and multi-provider zone setups, additional account-level controls, longer retention and contractual service terms.
Load BalancingSeparately billed add-on available alongside any plan; provides health checks, pools and steering policies.

Accurate as of 2026-08-28 against Cloudflare public documentation. Packaging changes without notice. Confirm at https://developers.cloudflare.com/dns/ and https://www.cloudflare.com/plans/.

Deployment

Prerequisites.

Disable DNSSEC at the registrar and wait for the DS record to be removed from the parent zone before changing nameservers. Changing delegation while a DS record for the previous provider's keys remains published causes validating resolvers to fail resolution for the domain. This is a common cause of migration outages (https://developers.cloudflare.com/dns/dnssec/, retrieved 2026-08-28).

Staged validation. Import the zone into Cloudflare without changing delegation. Query the Cloudflare nameservers directly for each record and compare the answers with the current production answers, record by record. Resolve differences before proceeding. Where a partial (CNAME) setup is possible, use it to validate a subset of hostnames under production traffic first.

Configuration.

  1. Set every record's proxy status deliberately. Leave mail and non-HTTP service records DNS-only.
  2. Lower TTLs at the existing provider to a short value at least one previous-TTL interval before the cutover, so that the old values have expired from resolver caches by the time delegation changes.
  3. Document the rollback: the previous nameserver set, the exported zone file and the registrar steps required to restore them.
  4. Confirm DNSSEC is disabled at the registrar and that the DS record is no longer published in the parent zone.

Cutover. Change the nameservers at the registrar during the agreed window. Keep the previous provider's zone populated and serving for the duration of the previous TTL plus a margin, so that resolvers still holding the old delegation receive correct answers.

Verification.

Rollback. Restore the previous nameservers at the registrar. If DNSSEC has already been enabled with Cloudflare, remove the DS record at the registrar and wait for it to clear the parent zone before restoring the previous delegation, otherwise validating resolvers will fail. Because rollback is also bounded by TTL, keep TTLs low until the migration is confirmed stable.

Operational considerations

Manage records as code where possible. DNS changes are high impact, easy to make and difficult to review after the fact. A version-controlled zone with a reviewed diff removes a common class of incident.

Enable audit logging and alerting on record changes, and restrict who may change nameservers and DS records at the registrar. Registrar-level access is the highest-privilege control in the domain and is frequently outside the change process applied to the rest of the infrastructure.

Set TTLs deliberately. Long TTLs improve resilience against a control plane problem but lengthen every planned change. Short TTLs make changes fast but increase query volume and shorten the window in which a stale cached answer protects you during an outage.

Monitor resolution externally from several networks rather than relying on internal checks, and monitor DNSSEC validation status separately, because a signing or key problem presents as a total outage for validating resolvers while unvalidating resolvers continue to work.

Failure modes to plan for: a DS record left in place across a provider change, an expired DNSSEC signature, a proxied record placed on a mail host, and an automation script that recreates a record with the wrong proxy status.

Known caveats

Interoperability

The proxy toggle is the attachment point for the CDN, WAF, DDoS protection, Bot Management and Workers routes. A hostname must be proxied for those products to apply to its traffic.

Cloudflare Load Balancing operates above DNS and provides health-checked steering; it is configured separately and can target both proxied and DNS-only endpoints.

Certificate issuance for proxied hostnames depends on DNS validation, so DNS configuration and certificate lifecycle are coupled. Confirm validation records remain in place after any zone edit.

Email Security, Email Routing and third-party mail platforms depend on DNS-only MX records and on TXT records for SPF, DKIM and DMARC. Those records are unaffected by proxy status and must not be proxied.

Cloudflare Registrar, where used, changes DNSSEC handling by submitting DS records automatically.

FAQ

How long does a record change take to reach all clients? Up to the TTL that was in effect before the change, plus any additional caching by downstream resolvers and client stacks. Lower the TTL in advance of a planned change.

Is it necessary to use the CDN and security products when moving DNS to Cloudflare? No. Records can be set to DNS-only, in which case Cloudflare acts as authoritative DNS only. Proxying can be enabled per hostname later.

What is required to enable DNSSEC? Enable DNSSEC for the zone in Cloudflare, then publish the generated DS record at the registrar. Cloudflare adds the DS record automatically only for Cloudflare Registrar domains and for .ch and .cz domains.

References

Content snapshot: 2026-08-28.

Changelog

DateChangeAuthor
2026-08-31Rewritten as a technical reference. Added limits and plan availability tables with sources.Integrity documentation team
2026-08-28Initial publication.Integrity documentation team

Contents

138 pages mirrored from the Cloudflare documentation for dns.

Pages

Additional options

CNAME flattening

DNS Firewall

DNSSEC

Foundation DNS

Internal DNS

DNS records

Nameservers

Private origins (beta)

Proxy status

Reference

Troubleshooting

DNS setups

Request your free pilot

Schedule a pilot