How to Change DNS When Moving to a New VPS
By Small Corner Labs ·
A VPS cutover changes where people reach your service. Plan DNS or proxy routing alongside application writes so both choices point to the same production system. DNS propagation and a safe data rollback are separate concerns.
Record the routing that exists today
List the app hostnames, record types, proxy settings, origins, and TTLs. Account for IPv6 as well as IPv4 where configured. Store the current values for rollback. Keep mail delivery, domain verification, and unrelated records outside the change.
For a proxied domain, public DNS may return the proxy network addresses. That response alone does not identify which origin is serving traffic. Confirm the configured origin and use an application-level check that distinguishes the intended deployment.
Verify the destination before changing traffic
Test the exact hostname against the new origin with the correct Host and TLS SNI. Check the homepage, HTTPS redirects, a data-backed API path, and any special hostnames such as www. A matching certificate and successful upstream responses are useful before public traffic arrives.
Write down who changes the records, what counts as a successful cutover, and which failures trigger rollback. After the switch, repeat the checks through the public domain and inspect destination logs.
Keep rollback consistent with the data
If the new origin has accepted writes, pointing DNS back can hide or lose them. Pause writes or reconcile changes first, then return traffic to the old origin if the rollback criteria are met. Keep the old environment available until the new one has passed its observation window.
Quick checklist
- Save current web DNS and proxy settings.
- Verify the destination with its production hostname.
- Define application-level success and rollback thresholds.
- Reconcile new writes before reversing traffic.
