DNS providers
Cloudflare DNS setup
Moving a domain to Cloudflare is mostly a nameserver change plus a few records. The common mistakes are easy to avoid if you verify the delegation and the records before you switch.
Add the site and change nameservers
Add the domain in the Cloudflare dashboard and choose a plan. Cloudflare assigns two nameservers. Replace the nameservers at your registrar with those values, then wait for the delegation to update.
Do not delete the old records until you have recreated the ones you need in Cloudflare. Export or screenshot the current zone first.
Common records
An A record points the apex or a subdomain to an IPv4 address. AAAA does the same for IPv6. A CNAME points a name to another hostname and cannot be used at the apex in standard DNS. MX points email to a mail server with a priority. TXT holds SPF, DMARC, DKIM and verification strings.
If the proxy toggle is on for a web record, Cloudflare hides the origin IP and terminates TLS. Turn it off for mail-related records and for any hostname that must resolve to a specific third-party service.
Common mistakes
The most common mistakes are changing nameservers before recreating the records, leaving an old A record pointing to a decommissioned server, proxying an MX target, and publishing two SPF records.
Another frequent issue is a CNAME at the apex. If you need apex-level aliasing, use the provider feature designed for it, not a standard CNAME.
How to verify
Check the NS records at the registrar and with a public resolver. Then check A, AAAA, MX and TXT records. A propagation check helps after a nameserver change; a DNS lookup confirms the record values.
Wait for the previous TTL before assuming a change is broken. If the old and new answers differ, compare the TTL and the resolver cache before editing again.
Frequently asked questions
How long does propagation take?
It depends on the previous TTL and the registrar. Nameserver changes can take longer than a simple record edit.
A or CNAME?
Use A/AAAA for an address, and CNAME for an alias to another hostname. A CNAME cannot coexist with other records at the same name.
Should I proxy email records?
No. The proxy is for web traffic. Mail-related records should point to the mail provider without Cloudflare proxying.
How do I verify the setup?
Check NS, A, AAAA, MX and TXT records with a public resolver, then compare the answers with the provider dashboard.