Skip to content

Migrations

Translation rules

Learn how DNS records translate between providers, including apex CNAMEs, aliases, proxies, routing policies, TTL limits, TXT values, and unsupported types.

7 min read

On this page

DNSMigrator translates aliases, redirects, proxy state, TTLs, and routing against destination capabilities. Weighted, latency, failover, geo, and multivalue policies are preserved when supported; compatible redirect formats are converted. Behavior-changing fallbacks are Review, and records with no safe representation are Unsupported.

Rule matrix#

“Supports” means the destination catalog declares that exact capability; check Supported providers.

Source featureDestination has the capabilityDestination lacks the capabilityPreview status
Standard record typeCanonical record is retained.No target is produced.Exact, or Unsupported when absent.
Obsolete SPF typeRetained only where the API supports SPF.Converted to TXT; mail software reads the TXT form.Exact when retained; Translated when converted.
TTL in rangeTTL is retained.TTL is clamped to the destination minimum or maximum.Exact or Translated.
Source “auto” TTLDestination “auto” value is used if it has one.Destination default TTL is used.Exact when unchanged; otherwise Translated.
Apex CNAMERetained at a flattening destination, or stored as a hostname ALIAS or recognized Route 53 AWS alias.Current A addresses can be used only when supplied; otherwise no target.Exact, Translated, Review for static addresses, or Unsupported.
Provider aliasPreserved as a recognized AWS alias, hostname ALIAS, flattening apex CNAME, or ordinary non-apex CNAME.Current static address fallback at the apex when supplied; otherwise no target.Translated, Review, or Unsupported.
Azure resource alias—Converted to supplied static A/AAAA addresses or omitted. Resource IDs do not transfer.Review or Unsupported.
Proxied recordProxy metadata remains only at a proxy-capable destination.Proxy metadata is removed; the DNS address becomes direct.Exact when retained; Review when lost.
Routing setPolicy, set identifier, and routing fields remain when the destination advertises that policy.Non-failover answers combine; failover keeps primary answers.Exact for same provider, Translated across providers, Review when flattened or when a source-account health check needs review.
Long logical TXT valueProvider adapter or BIND output splits presentation strings as needed.If the whole value exceeds the provider’s cataloged limit, no target is produced.Exact for representation-only splitting; Unsupported over the total limit.
Redirect typeRetained when supported, or converted among URLFWD, PORKBUN_URLFWD, BUNNY_DNS_RDR, URL, and URL301.No DNS approximation is invented.Exact, Translated, Review when fields are lost, or Unsupported.
SOA, DNSKEY, apex NSDestination creates it.Not applicable.Managed.

Warnings and unsupported rows do not have the same apply behavior. Review rows remain in the destination target set. Unsupported and Managed rows do not. Read Previews and record statuses before applying.

How apex CNAME and ALIAS records migrate#

An apex CNAME is provider-specific because the zone apex already needs SOA and NS records. DNSMigrator tests destination options in this order:

  1. A recognized Route 53 AWS alias when the destination supports AWS-resource aliases and a hosted-zone ID is known.
  2. A provider-native hostname ALIAS when the destination supports it.
  3. An apex CNAME when the destination declares flattening support.
  4. Supplied current A addresses as a static fallback.
  5. Unsupported when none of those representations is available.

For a plain apex CNAME going to Route 53, CloudFront is the special case whose hosted-zone ID is built in. Other recognized AWS hostname patterns—Elastic Load Balancing, S3 website endpoints, API Gateway, Elastic Beanstalk, and Global Accelerator—need a hosted-zone ID carried by source alias metadata before they can remain a Route 53 alias. Without it, the apex needs supplied addresses or is unsupported.

Source at a flattening provider
$ORIGIN example.com.
$TTL 300
@    IN CNAME app.example.net.
www  IN CNAME app.example.net.

At Cloudflare, the apex can remain a CNAME and Cloudflare flattens it. At a hostname-ALIAS provider such as Namecheap, it becomes ALIAS. At a destination with neither feature, www can remain an ordinary CNAME, but @ cannot.

When current addresses are supplied to the translation input, an otherwise unsupported apex can become static A records:

Static fallback
@ 300 IN A 198.51.100.10
@ 300 IN A 198.51.100.11

That row is Review because it no longer follows app.example.net when its addresses change. The current web wizard and CLI do not automatically resolve and attach this fallback, so an arbitrary unsupported apex normally requires you to replace it deliberately. For the DNS background, read Apex CNAME, ALIAS and flattening explained.

Route 53 and Azure aliases#

For a side-by-side migration comparison, read Route 53 vs Cloudflare DNS.

Route 53 alias A/AAAA sets carry alias metadata. A recognized AWS target and hosted-zone ID remain an AWS alias where supported; otherwise the representation follows the hostname-ALIAS, flattening-CNAME, non-apex CNAME, static, and unsupported order above. Azure aliases carry a resource ID rather than a portable hostname, so they become supplied static addresses (Review) or Unsupported.

Alias A and AAAA source sets can converge on one CNAME. DNSMigrator merges their source rows, keeps the lowest TTL, and warns if several targets result; one CNAME target is retained.

What happens to Cloudflare proxied records?#

Proxy state is metadata, not DNS data. A proxied Cloudflare record keeps that state only at a proxy-capable destination. Otherwise its address remains, proxied metadata is removed, and the row becomes Review:

Preview note
Proxied at Cloudflare. After migration, traffic goes straight to 192.0.2.20 without the CDN or WAF.

Confirm that the origin permits public traffic and can handle direct requests. A BIND export from a proxied provider may contain only a CDN address, not the origin, so use the source API when that distinction matters. See How to migrate DNS without downtime.

Routing policies and health checks#

The migration translator groups routed sets by owner and type. If the destination advertises the same weighted, latency, failover, geo, or multivalue policy, each set keeps its routing metadata. Same-provider Route 53 migrations therefore preserve Route 53 routing exactly. Across providers, the row is Translated with a note naming the retained policy and set identifier.

A source health-check ID is carried with supported routing, but the row becomes Review because that ID belongs to the source account. Confirm that an equivalent check exists and is usable at the destination.

When the destination does not support the policy, non-failover sets combine their unique values at the lowest TTL as ordinary round-robin answers. Failover keeps non-secondary answers, or the full group when no primary is identifiable. The result is Review and Block when records can't be represented treats that feature loss as a blocker.

TTL rules#

Every provider catalog entry supplies a minimum, maximum, default, and optionally an “auto” sentinel. The translator applies TTL rules after alias and type conversion:

  • A source auto TTL becomes the destination’s auto value when available.
  • Otherwise, source auto becomes the destination default and adds an informational note.
  • A numeric TTL below the minimum is raised to the minimum.
  • A numeric TTL above the maximum is lowered to the maximum.
  • An in-range TTL is unchanged.

Clamping is Translated, not Review, because the target remains the same record with a permitted cache duration. Managed-zone planning also normalizes the desired TTL to what each provider stores before diffing, so a clamped or fixed TTL does not appear as recurring drift. The exact bounds differ by provider; do not infer one provider’s limits from another. Check Supported providers or run npx dnsmigrator providers <provider> from the CLI.

For cutover timing rather than provider storage limits, read Lower TTLs before a DNS migration.

TXT and SPF values#

Canonical TXT and SPF values are stored as one logical string without presentation quotes. Adjacent strings in a BIND record are joined during parsing. When a provider or BIND output needs DNS character strings, quoteTxt escapes backslashes and quotes and splits the logical value into 255-character quoted segments:

One logical TXT value in BIND presentation
selector._domainkey 300 IN TXT "v=DKIM1; k=rsa; p=first-part" "second-part"

That representation-only split does not add a migration note; the row can remain Exact. Separately, each provider declares a maximum logical TXT value length. A value longer than that limit is Unsupported rather than truncated. Destinations whose catalog sets a zero TXT limit do not accept TXT through this workflow.

The obsolete SPF RR type is converted to TXT when the destination lacks SPF, producing Translated. Its normalized content is unchanged. Check long DKIM and SPF values against Move DNS without losing email.

Unsupported and provider-managed records#

Standard types are supported only when listed by the destination API catalog. DNSMigrator does not pass an unknown type through optimistically. Provider redirects can convert among octoDNS URLFWD, Porkbun URL forwarding, Bunny redirects, and URL/URL301; the note lists lost masking, path, query, wildcard, or HTTP-status behavior. FRAME, MXE, Cloudflare redirect/Worker records, Akamai CDN/TLC records, LuaDNS scripts, ClouDNS web redirects, AdGuard Home passthrough entries, and MikroTik forwarding/NXDOMAIN entries still require an exact destination capability.

Rows with no exact or convertible target are Unsupported with a note to recreate the feature manually; no target record is emitted. Cloudflare can read and push CF_REDIRECT, CF_TEMP_REDIRECT, CF_SINGLE_REDIRECT, and CF_WORKER_ROUTE, but the token also needs Zone → Single Redirect → Edit and Zone → Workers Routes → Edit. See Cloudflare. By contrast, SOA, DNSKEY, and apex NS are Managed because the destination provider creates them. Delegated subdomain NS records are ordinary records and can migrate.

Other validation notes include:

  • A CNAME with more than one value becomes Review and keeps one target.
  • A CNAME sharing an owner with another record becomes Review unless it is an apex CNAME at a flattening provider.
  • An unsupported total TXT length becomes Unsupported; content is never silently shortened.

Enable Block when records can't be represented when unsupported records, lost routing, or lost proxying must require an explicit acknowledgement. Strict zone lint separately validates structured RDATA before provider planning. Use Previews and record statuses as the review checklist, then continue to Apply and verify.