DNS propagation is the part of a hosting migration that turns rational people into refreshers. A domain's records sit on nameservers scattered across the internet, and when the new address is published, caches clear on their own schedule: seconds in one city, hours in another. A site can be live in Berlin and still resolving to a parking page in São Paulo. That gap is where most of the damage in a migration happens, and it is almost entirely avoidable with an hour of preparation.
Moving a website between hosts is a routine operation. It is also one of the few routine operations that can take a business offline for a day if the order of steps is wrong. The migration itself is mechanical: copy files, copy databases, point the domain. The danger lives in the seams between those steps, and in the assumptions people make about what "backed up" means at 2 a.m. on a Tuesday.
Why the DNS Wait Is the Real Risk
Every domain has a time-to-live value on its records, and that number dictates how long stale data lingers in caches. A TTL of 3600 seconds means an old IP address can keep answering requests for an hour after the change. Some registrars default to 86400, a full day.
The fix costs nothing: lower the TTL to 300 seconds (five minutes) at least 24 to 48 hours before the migration. That single change means the cutover window shrinks from a day to minutes. It is the least glamorous step in the process and the one that prevents the most panic. Skipping it is the hosting equivalent of removing a smoke detector because it keeps chirping.
Lowering the TTL early also surfaces problems while the site is still on the old host. If the registrar's control panel is confusing at 5 p.m. on a Wednesday, it will be worse at midnight during the switch.
Inventory the Site Before Touching Anything
A website is rarely just the files in the public directory. It is databases, email accounts, cron jobs, SSL certificates, subdomains, redirect rules, and whatever custom configuration lives in an .htaccess or nginx conf file. A migration plan that accounts only for HTML and images will produce a broken site with a clean bill of health.
Write the inventory down. Every database name and its user credentials. Every email forwarder. Every scheduled task. The specific PHP version the site runs on, because a host running an older or newer version can break plugins silently. The location of any file the application writes to, such as uploads, cache, or logs.
This list becomes the checklist after the switch, and it is the difference between "the site is up" and "the site works." Those are not the same claim, and the gap between them is where contact forms stop sending mail and scheduled backups quietly stop running.
Take a Backup That Has Been Tested
An untested backup is a hope, not a backup. Download the files and the database export, then restore them somewhere harmless: a local environment, a staging subdomain, a throwaway directory on the new host. If the restored copy loads and the database connects, the backup is real. If it does not, better to discover that before the old host is cancelled.
The export should include the database in full, not a partial dump that skips certain tables. Some hosts offer one-click backups that exclude large tables or email data, and a migration built on one of those will leave holes that only appear weeks later.
Keep the old host active through the entire process. Cancelling early is the most common and most expensive mistake in a migration, because it removes the fallback at exactly the moment it might be needed.
Set Up the New Host and Test It via Hosts File
With the backup verified, upload the files and import the database to the new host. Then, before changing any DNS record, test the new installation by pointing a single local machine at the new IP address through the hosts file. On a Mac or Linux machine that is /etc/hosts; on Windows it is the file at C:\Windows\System32\drivers\etc\hosts. Add a line mapping the domain to the new IP.
That one line lets the site be inspected on the new server while the rest of the internet still sees the old one. Pages render or they don't. Images load or they 404. The contact form either sends mail or it doesn't. Finding out here, with no visitors affected, is the entire point.
Testing via hosts file also catches the classic migration failure: hardcoded URLs. A database import that carries old absolute links will send visitors to the old host, which may already be serving errors. Search-and-replace the database for the old domain before importing, and check for any configuration files that store paths.
Handle SSL Certificates and Email Separately
SSL is its own migration. A certificate issued for the old server does not follow the files. Most hosts now provision free certificates automatically, but that provisioning can take time, and a site that switches to HTTPS on a server without a valid certificate will show a browser warning to every visitor. Issue and verify the new certificate before the DNS cutover.
Email deserves the same separate treatment. If the domain's MX records point to the old host, changing nameservers may drag email along with the website, and mail sent during the transition can bounce or vanish. Either move mail deliberately or keep the MX records pointed where they are. Many businesses run email on a separate provider precisely so a web migration never touches it. That separation is worth adopting before a migration forces the issue.
The Cutover: Change One Record, Then Watch
When everything tests clean via the hosts file, change the DNS records at the registrar: the A record for the domain, the A or CNAME for www, and any subdomains. Change them in one sitting and note the time. With the TTL already lowered, propagation should be quick, though not instant everywhere.
Watch the server logs on the new host for the first hours. Traffic arriving from real visitors is the signal that propagation is working. Simultaneously, keep an eye on the old host; requests still landing there mean caches somewhere have not cleared. Both hosts serving the same content during the overlap is normal and harmless as long as the content matches.
A free DNS checker, queried from several locations, will show which regions have updated. If a region lags for more than a day, that is usually a stale cache at an ISP, and it clears on its own. Patience beats tinkering; changing records repeatedly during propagation makes the mess worse.
The Week After: Forms, Search Consoles, and Cron
The site being up is the start of verification, not the end. Submit a test through every form on the site and confirm the message arrives. Check that the SSL certificate shows as valid in a browser. Log into the admin area, if there is one, and confirm plugins or extensions still work.
Search Console and analytics need attention too. If the site's verification method relied on a DNS record or a file on the old host, that verification may break. Confirm the sitemap is still being fetched and that no crawl errors have appeared. A migration that breaks indexation can cost months of traffic, and the damage is invisible until rankings slip.
Then check the boring infrastructure: cron jobs running, backups scheduled on the new host, email deliverability confirmed, redirects from old URLs intact. A redirect rule that lived in the old host's configuration and was never copied will produce a pile of 404s that visitors find before anyone on the team does.
Keep the Old Host Alive for Two Weeks
Resist the urge to cancel the old account the day the new site goes live. DNS caches, email clients, and search engines can take days to settle. Keeping the old host running as a safety net costs a few dollars and buys the option to point records back if something surfaces that the hosts-file test missed.
Two weeks is a reasonable window. By then, logs on the old server should show no meaningful traffic, and the new host should have a clean record of uptime. Cancel with confidence, having kept a final backup of the old environment archived somewhere cold.
The migration is finished when the old host is cancelled and the new one has survived a full billing cycle without incident. Until that moment, the job is not done, no matter how good the site looks in a browser.
