Skip to content

Cloudflare DNS Google Cloud DNS

Migrate DNS from Cloudflare to Google Cloud.

15 record types move as they are. 5 things work differently at Google Cloud, and the preview shows exactly which of your records they affect.

Free preview. Read-only. Nothing changes until you apply.

Cloudflare to Google Cloud DNS migration differences

Generated from the same provider capability data the migration engine uses.

Moves as-is

  • A
  • AAAA
  • CNAME
  • MX
  • TXT
  • NS
  • SRV
  • CAA
  • PTR
  • DS
  • HTTPS
  • SVCB
  • TLSA
  • SSHFP
  • NAPTR

Proxied records lose the CDN

Google Cloud has no equivalent of Cloudflare's proxy. Proxied records move as plain records pointing at your origin, which exposes the origin IP. Put a CDN in front before cutting over if that matters.

Apex CNAMEs need a different shape

Google Cloud doesn't allow a CNAME at the apex and has no alias record for external hostnames. These become static A/AAAA records, which don't follow the target if its IPs change.

"Auto" TTLs get a real value

Cloudflare's automatic TTL has no equivalent, so those records get Google Cloud's default of 300s.

Domains registered at Cloudflare must transfer out

Cloudflare Registrar only allows Cloudflare's nameservers. If the domain is registered there, transfer it to another registrar before switching.

A typical Cloudflare zone at Google Cloud

Example records for example.com. Open any flagged row to read why it changed.

Cloudflare Google Cloud

  • UnsupportedCNAME@

    Not migrated

    @ is a CNAME at the zone apex. Google Cloud doesn't allow that, and app.example-host.net isn't a target it can alias.

  • ExactMX@

    10 mx1.mail.example.net. +1

  • ExactTXT@

    "v=spf1 include:_spf.example.net -all"

  • ExactCAA@

    0 issue "letsencrypt.org"

  • ExactTXT_dmarc

    "v=DMARC1; p=reject; rua=mailto:dmarc@example.com"

  • ExactSRV_sip._tls

    100 1 443 sip.example.net.

  • ExactAmail

    203.0.113.25

  • ReviewAshop

    203.0.113.10

    TTL was "auto". Set to 300s.

  • ExactCNAMEwww

    example.com.

How the move works

  1. 1

    Connect Cloudflare

    Connect Cloudflare with read-only access (Scoped API token).

  2. 2

    Connect Google Cloud

    Connect Google Cloud (Service account key (JSON)). Write access is only used when you apply.

  3. 3

    Review the preview

    Check every record marked Review or Unsupported. Each one explains what changes and why.

  4. 4

    Apply to Google Cloud

    We snapshot the Google Cloud zone, write in batches, and leave Cloudflare untouched.

  5. 5

    Verify

    We query Google Cloud's own nameservers for every record and compare the answers before you switch.

  6. 6

    Switch nameservers

    Lower TTLs a day or two ahead, remove any DS record if DNSSEC is on, then point the domain at the new nameservers at your registrar.

Good to know about Cloudflare

  • Proxied (orange-cloud) records hide the origin IP. Moving them to another provider sends traffic straight to the origin.
  • Apex CNAMEs are flattened by Cloudflare. Other providers need an ALIAS record or static A/AAAA records instead.
  • Cloudflare Registrar only allows Cloudflare nameservers, so domains registered there must be transferred out first.

Access we need: Zone → Zone → Read and Zone → DNS → Read for the preview, Zone → DNS → Edit to apply (Zone → Zone → Edit only covers zone settings, not DNS records). Include the zone, or All zones, under Zone Resources. Redirect and Worker route records also need Zone → Single Redirect → Edit and Zone → Workers Routes → Edit.

Good to know about Google Cloud

  • Routing policies (weighted round robin, geolocation, failover) don't carry over to most providers.
  • Apex CNAMEs are not allowed.

Access we need: roles/dns.reader for the preview, roles/dns.admin to apply.

Migration notes for Cloudflare to Google Cloud

Reviewed

Cloud DNS has no proxy and no apex CNAME, so proxied records expose the origin and apex CNAMEs need static addresses.

Export at Cloudflare

  • DNSMigrator reads Cloudflare with a scoped API token (Zone · DNS · Read); redirect and Worker route records also need their own read scopes to appear.
  • For a manual export, use Cloudflare's DNS Records page → Import and Export → Export to get a BIND zone file.

Import at Google Cloud

  • At Cloud DNS the adapter authenticates with a service account JSON key: roles/dns.reader to preview and roles/dns.admin to apply. Apply can create a public managed zone and submit record-set changes in the project that owns the zones.
  • Cloud DNS applies changes as record-set additions and deletions and confirms them before reporting done.

Watch for

  • Cloud DNS has no proxy. Proxied Cloudflare records become plain records pointing at the origin, exposing the origin IP; add a CDN in front first if that matters.
  • Cloud DNS does not allow a CNAME at the apex, so an apex CNAME needs static A/AAAA records, which the preview shows.
  • Cloudflare single redirects and Worker routes are not DNS and do not move to Cloud DNS.
  • If the domain is registered at Cloudflare Registrar it only allows Cloudflare nameservers; transfer it out before switching. Handle DNSSEC by removing the DS record at the registrar, letting it expire, then enabling DNSSEC at Cloud DNS.

Example

A proxied example.com CNAME app.example-host.net. (proxied) at Cloudflare becomes static A/AAAA records at the Cloud DNS apex, using the target's current addresses (which won't follow later changes), because Cloud DNS allows neither a proxy nor an apex CNAME. A plain mail.example.com A 203.0.113.25 moves unchanged.

Rollback

Rollback reverses only DNSMigrator's writes at Cloud DNS by re-planning against its live state; Cloudflare isn't written by apply or rollback, and re-enabling the proxy or reversing a registrar change is manual.

Questions

Will there be downtime moving from Cloudflare to Google Cloud?

Not if both providers serve the same answers during the switch. The records are copied to Google Cloud and verified before you change nameservers, so resolvers get the same answer from either side while caches expire.

Do I have to delete anything at Cloudflare?

No. Preview, apply and rollback never write to Cloudflare; the only optional change there is lowering TTLs before cutover. Keep the old zone for a week after cutover so you can switch back if anything looks wrong.

What about DNSSEC?

If DNSSEC is on, remove the DS record at your registrar and wait for it to expire before switching nameservers. Then enable DNSSEC at Google Cloud and publish its new DS record. The cutover plan walks you through each step.

What happens to Cloudflare proxied records?

They move as ordinary records pointing at your origin server, because Google Cloud can't proxy traffic. The preview lists every proxied record and the IP it would expose.

Ready to see your own zone?