Domains

How to Change Nameservers When Switching Hosting Providers

by dotCanada Team
How to Change Nameservers When Switching Hosting Providers

Switching hosting providers is one of the more nerve-wracking things a website owner can do. The fear is understandable: what if the site goes down? What if email stops working? What if something just breaks? Most of that anxiety comes from not fully understanding what is happening under the hood - and nameservers are the part most people are haziest on. Once you understand them, the process becomes straightforward.

What Nameservers Actually Do

Your domain name (yourbusiness.ca) is a human-readable address. The actual web is built on IP addresses - numeric strings like 174.138.56.12. Nameservers are the translators.

When someone types your domain into a browser, their computer asks a DNS resolver: "What IP address is yourbusiness.ca?" That resolver checks your domain's nameserver records to find out where to look for the answer. Your nameservers hold all the DNS records for your domain - not just where your website lives, but also where your email goes, any subdomain routing, and various verification records for third-party services.

When you switch hosting providers, you are moving your website files to a new server with a different IP address. The world does not automatically know this. You have to update your nameservers to point to the new host, so that DNS queries start returning the new IP.

Step-by-Step: Changing Your Nameservers

Step 1: Get your new nameservers from your new host

Before you touch anything at your registrar, make sure your new hosting account is fully set up. Your new host will provide you with two nameserver addresses (sometimes more), which look something like this:

ns1.dotcanada.com
ns2.dotcanada.com

You will find these in your welcome email, your hosting control panel, or by contacting the new host's support team. Write them down exactly - capitalization does not matter, but spelling does.

Step 2: Log in to your domain registrar

Your domain registrar is where you purchased your domain name. This might be dotCanada, GoDaddy, Namecheap, Google Domains, or any number of others. It is not necessarily the same company as your current or new host.

If you are not sure who your registrar is, run a WHOIS lookup at whois.domaintools.com - it will tell you.

Step 3: Update the nameserver records

In your registrar's control panel, find the DNS or nameserver settings for your domain. The exact location varies by registrar, but it is typically labeled "Manage DNS," "Nameservers," or something similar.

Replace the existing nameserver entries with the ones provided by your new host. Remove the old ones entirely - do not just add new ones alongside them. Save the changes.

Step 4: Wait for propagation

This is the part that confuses people the most. DNS changes do not take effect instantly everywhere. The internet's DNS system is a distributed network of resolvers, and each one has a cached copy of your old records that it holds for a period called the TTL (Time to Live). When that cache expires, the resolver fetches fresh records - and sees your new nameservers.

Propagation typically takes between a few hours and 48 hours. In practice, most of the world sees your changes within 4 to 12 hours.

During propagation, some visitors will see your old site on the old host and some will see your new site on the new host. This is normal.

How to Minimize Downtime

The single most effective thing you can do is lower your TTL before you make the switch.

A few days before you plan to change nameservers, log in to your current DNS provider and lower the TTL on your records to 300 seconds (5 minutes). This means DNS caches refresh every 5 minutes instead of every hour or day. When you make the switch, the propagation window shrinks dramatically.

Keep your old hosting active during propagation. Do not cancel your old hosting plan the day you switch nameservers. Visitors whose DNS has not yet updated will still be hitting your old server. Keep the old account active for at least 72 hours after the switch, ideally longer.

Test from the new server before switching. Use your host's temporary URL or modify your local hosts file to preview the new site before going live.

Handle email separately. If you have email on your old host, plan your MX record migration carefully. Email requires continuous delivery, and getting nameservers and MX records out of sync is a common source of mail disruptions during hosting migrations.

Changing nameservers is genuinely one of the simpler parts of switching hosts - once you understand what it does, it is just a matter of updating two text fields in your registrar account and waiting. The patience required during propagation is the hardest part.

100% Satisfaction Guarantee

We're so confident you'll love dotCanada that we offer a 30-day money-back guarantee. Not satisfied? Get a full refund, no questions asked.

Ready to Get Started?

Join thousands of Canadian website owners who trust dotCanada for reliable, fast web hosting.

Get Started Today