Moving your domain to a new hosting provider means updating your domain's nameservers (or DNS records) so they point to the new server. Before making that change, you must have the site fully copied at the destination to avoid any downtime.
This guide walks you through the complete process in the right order: migrate first, then point the domain.
Before You Start: Two Things to Distinguish
Don't confuse these two operations:
- Pointing the domain to a new host — you update nameservers or A records so the same domain serves your site from a different server. The domain stays registered where it is.
- Transferring the domain to a new registrar — you move domain ownership to another company. This is a separate, slower process (up to 7 days).
This guide covers the first scenario: moving your hosting while keeping the domain at its current registrar.
Step 1 — Set Up the New Hosting Account
Do not change any DNS until the site is working at the destination. To prepare the new server:
- Sign up for the new hosting plan and log into its cPanel or control panel.
- Add your domain in the new panel (under Domains or Addon Domains).
- Note the new server's IP address — you'll need it later.
Step 2 — Copy Your Website Files
There are several ways to transfer files. The most common:
Option A: FTP / SFTP
- Connect to the old host using an FTP client (FileZilla, Cyberduck).
- Download all files from the site's root folder (
public_htmlor equivalent). - Connect to the new host and upload everything to the same path.
Option B: cPanel File Manager
If both hosts use cPanel, compress the source files into a ZIP, download it, upload it to the destination, and extract it there.
Option C: Assisted Migration
Many providers offer free or low-cost migrations. For large or business-critical sites, it's worth requesting this service.
Step 3 — Migrate the Database (If Applicable)
If your site runs on WordPress, Joomla, PrestaShop, or any CMS backed by a database, you need to move the DB as well:
- On the source host, open phpMyAdmin and export the database as SQL (Export → Quick → SQL format).
- On the destination host, create a new database and a user with full privileges from cPanel.
- Import the SQL file into the new database via phpMyAdmin.
- Update your CMS configuration file (
wp-config.phpfor WordPress) with the new database name, username, and password.
Tip: if the database host value changes (from localhost to something else), update that in the config file too.
Step 4 — Test the Site Using Your Hosts File
Before changing DNS, confirm the site works on the new server by temporarily editing your computer's hosts file to resolve the domain to the new server's IP:
192.168.1.100 yourdomain.com www.yourdomain.com
- Windows:
C:\Windows\System32\drivers\etc\hosts - Mac/Linux:
/etc/hosts
Open your browser and visit the domain. You should see the site running from the new server. Check that forms, images, and the admin panel all load correctly. When satisfied, remove those lines from the hosts file.
Step 5 — Update Nameservers or the A Record
Now it's time to point the domain. You have two paths:
Change nameservers (recommended if you'll also use the new host's mail server)
Log into your domain registrar, go to the Nameservers or DNS section, and replace the current values with those provided by your new host:
| Before | After |
|---|---|
| ns1.oldhost.com | ns1.newprovider.com |
| ns2.oldhost.com | ns2.newprovider.com |
Change only the A record (if you're keeping email or DNS at the old host)
If you want to keep email on the previous host while moving only the website, edit just the A record for your domain to point to the new server's IP. MX records stay untouched.
Step 6 — Wait for Propagation and Verify
Nameserver propagation can take up to 48 hours, though it's often under 4 hours. During that window, some visitors will see the old server and others the new one.
To check that propagation is complete:
- Use whatsmydns.net to see how the domain resolves from different countries.
- Run
nslookup yourdomain.comfrom the command line. - Send a test email and confirm it reaches the right inbox.
If you'd rather have an agency handle the migration and guarantee zero downtime, the team at elenlace.com provides hosting migration services for businesses in Mexico.
Browse our full collection of domain and DNS guides for more depth on each step.
Key Takeaways
- Migrate files and database first; only update DNS once the site works at the destination.
- Use the local
hostsfile to test the new site before the world sees it. - If you're keeping email at the old host, change only the A record — not the nameservers.
- Propagation can take up to 48 hours; keep the old hosting active during that period.
- Assisted migration is a valid option for large or business-critical sites.
Want a risk-free move? Contact elenlace.com and our team will migrate your site to the new host with zero downtime.
FAQ
Will I lose my email if I change nameservers?
Potentially, yes — if the new host's MX records differ and you haven't set up email there first. To avoid this: configure email on the new host before switching nameservers, or change only the A record and keep the MX records pointing to the old server until you've migrated your email accounts.
How long should I keep the old hosting active?
At least 48–72 hours after updating DNS, so any visitor still resolving to the old server doesn't hit a dead page. After that, you can safely cancel the old plan.
Do I also need to transfer my domain to the new registrar?
No — these are separate things. You can keep the domain registered at GoDaddy and host the site on any other provider. All you need is to point the nameservers or A record toward the new server.
Will changing hosts hurt my SEO?
Not if the domain stays the same and the content is identical. Make sure the new server returns correct HTTP 200 responses and that the site loads as fast or faster than before. Search engines rank the domain and its content, not the server behind it.
Useful resources
Other providers and guides worth comparing: