How to Update DNS After Migrating Hosts

How to point your domain to a new host by updating nameservers or A records, and what to expect during DNS propagation.

· Updated · 2,614 views

Once your site is copied and tested on the new server, the final step is telling the internet where to find it. This is done through DNS, either by changing nameservers or editing individual records.

Option 1: Change Nameservers

This is the simplest approach because it hands all DNS management to the new host.

  1. Log in to your domain registrar.
  2. Find the nameserver settings for your domain.
  3. Replace the existing nameservers with:

| Nameserver | Value | |------------|-------| | Primary | ns1.nairohost.site | | Secondary | ns2.nairohost.site |

Option 2: Edit Individual Records

If you keep DNS elsewhere, update only the records that point at hosting:

  • Change the A record to the new server IP address.
  • Update the www CNAME or A record to match.
  • Leave MX records alone unless your email is also moving.

Understand Propagation

  1. DNS changes do not apply instantly; resolvers cache old values until the TTL expires.
  2. Full propagation can take from a few minutes up to 48 hours.
  3. During this window, some visitors see the new server and some see the old one.

This is why you keep both servers serving the same content until propagation finishes.

Verify the Change

  • Use a DNS lookup tool to confirm the domain resolves to the new IP.
  • Load the site in a fresh browser or incognito window.
  • Confirm HTTPS works once the SSL certificate is issued on the new server.

If something looks wrong, double-check that you edited the active nameservers and not a leftover record at a different DNS provider.

Was this article helpful?

Your feedback helps us improve our documentation.

Still Need Help?

Our support team is available 24/7 to assist you.