Before changing public DNS, send the production hostname through the new CDN. Test a versioned file, a signed-in preview, a redirect and a missing page. Keep the current endpoint healthy while recursive resolvers switch over.
Prepare two working delivery paths
Choose a public hostname and record its current DNS answer, TTL, certificate and origin configuration. Give the CDN a separate, stable origin address. Pointing its upstream at the same public hostname can send a request back to the CDN after cutover. Keep the old endpoint healthy and retain the configuration needed to restore it.
If you need a shorter application-record TTL, lower it at the current authority early enough for copies using the previous TTL to expire. Keep the nameserver delegation as a separate change whenever possible. A low address-record TTL cannot shorten the parent’s cached delegation.
Rehearse with the production hostname
The assigned distribution hostname can prove basic origin reachability. Also exercise the intended public hostname once it is configured and its certificate is ready. A test connection should retain the correct HTTP Host and TLS server name. Visiting a bare edge IP cannot establish that the certificate covers your domain.
| Request | Evidence to collect |
|---|---|
| A versioned public image | Correct body and media type, then eligible cache reuse on repeat |
| A signed-in editorial preview | Only the current editor sees the draft across separate test sessions |
| An old article with a redirect | Correct destination host, status and query behavior |
| A missing article | Useful 404 without an unexpected redirect loop |
Switch traffic with the origin in view
Save the old DNS value and change only the intended hostname. Observe response errors, origin connections and delivery logs while requests move over. Look at both fresh and returning browser sessions. A warm browser may mask an unavailable file, while a single resolver may still return the old answer.
Agree on a stop condition before the change. A wrong-account response warrants immediately disabling the unsafe rule and invalidating affected entries. An origin certificate failure warrants repairing upstream TLS or restoring the working path. DNS rollback takes effect as caches refresh, so keep serving both paths during recovery.
Finish the change after the overlap
Compare a purchase or publication journey with its pre-change result. Verify redirects and certificate renewal ownership, then restore the intended long-term TTL. Retire the old endpoint only after the old route has drained and the team can distinguish a cache miss from an upstream failure in its logs.
Sources & further reading
Reader questions
Can we migrate the apex and www in one change?
Treat them as separate names with separate routing and certificate requirements. Cloud DNS rejects ordinary apex CNAME records. Confirm the supported apex design before switching it alongside www.
Do we have to warm the entire site?
Start with a small group of high-demand, cacheable files. A full-site warmup adds origin load and provides little value for infrequently requested or private pages.
