Skip to content

How to Point Your Domain to a Different Server in Kenya

Douglas at Wikimania 2022 – How to Point Your Domain to a Different Server in Kenya
Photo: Mchuchushupai, CC BY-SA 4.0, via Wikimedia Commons

At some point, most business owners in Kenya end up needing to move their website to a new server. Maybe your current host keeps going down during peak hours, maybe you found a better deal, or maybe you’re switching from a shared hosting plan to something with more room to grow. Whatever the reason, pointing your domain to a different server sounds intimidating the first time you do it. It really isn’t, once you understand what’s actually happening behind the scenes.

What “pointing a domain” actually means

Your domain name, say yourbusiness.co.ke, is just a human-friendly address. Behind it sits a set of DNS records that tell the internet which server to fetch your website from. When you “point” a domain to a new server, you’re updating those DNS records, mainly the nameservers or the A record, so that visitors typing your domain get routed to the new host instead of the old one.

There are two common ways to do this: changing the nameservers, or changing just the A record while keeping the same nameservers. Which one you use depends on where your domain is registered and where you’re hosting.

Advertisement

Method 1: Changing nameservers

This is the cleanest approach if you’re moving your entire website (and ideally your email) to a new provider. Your new host will give you two or more nameservers that look something like ns1.newhost.com and ns2.newhost.com. You log into wherever you registered your domain, find the DNS or nameserver settings, and swap the old ones for the new ones.

If you registered your domain through buydomainkenya.co.ke, you’ll find this option in your account dashboard under domain management. It usually takes two minutes to update, though the actual switch across the internet takes longer, more on that below.

Method 2: Changing just the A record

If you want to keep your domain’s nameservers as they are, perhaps because your email is hosted separately through Google Workspace and you don’t want to disturb it, you can instead update only the A record to point to your new server’s IP address. Your new hosting company will give you an IP address like 197.248.XX.XX. You add or edit an A record in your DNS settings, pointing “@” (your root domain) to that IP, and update “www” as a CNAME or another A record pointing the same way.

This is generally the safer option if you only want your website to move while everything else, like MX records for email, stays untouched.

Why it takes time (and why that’s normal)

DNS changes don’t happen instantly across the whole internet. Every DNS record has a Time To Live (TTL) value, which tells other servers how long to cache the old information before checking again. Typical TTLs range from 1 hour to 24 hours, sometimes longer if it hasn’t been changed recently. This is why, after updating your nameservers or A record, some visitors might see your new site within minutes while others still see the old one for up to 24-48 hours. This window is called DNS propagation, and it’s completely normal.

A practical tip: a day or two before you plan to switch, log into your current DNS settings and lower the TTL to something short, like 300 seconds (5 minutes). This tells the internet to check for updates more frequently, which shortens your propagation window dramatically once you do make the switch.

Avoiding downtime during the switch

Here’s the process we recommend for Kenyan businesses moving hosts, whether you’re running a small WooCommerce shop in Nairobi or a services site for clients in Mombasa:

  1. Set up your website fully on the new server first, including a working copy at the new host’s temporary URL or IP, before touching any DNS records.
  2. Test everything on the new server, forms, checkout if you have M-Pesa integration running, contact pages, images, before you switch anything.
  3. Lower your TTL 24-48 hours in advance.
  4. Make the DNS change (nameservers or A record).
  5. Keep the old server running for at least 48 hours after the switch, in case some visitors are still being routed there during propagation.
  6. Once you’ve confirmed traffic and email are fully on the new server, you can safely cancel the old hosting plan.

Don’t forget email

This is where a lot of business owners get caught out. If your business email (like sales@yourbusiness.co.ke) runs through the same host as your website, changing nameservers will move your email too, so you need MX records set up correctly on the new server before you switch, or your emails will start bouncing. If your email is separately hosted through Google Workspace or Microsoft 365, make sure you’re only updating the A record for your website and leaving your MX records exactly as they are.

If you’re at all unsure which method applies to your setup, it’s worth checking with your current host or your new one before making changes. A wrong MX record change can mean missed customer emails for days, which is a bigger headache than any website downtime.

Getting help if you’re not confident doing it yourself

If DNS settings make you nervous, that’s fair, one wrong character in an IP address can take your site offline. Most Kenyan hosting providers, including us, will handle the domain pointing for you as part of a migration if you ask. It’s worth checking whether your new host offers free migration assistance before you attempt it solo, especially if this is your first time moving a live business website with real customers depending on it.

Leave a Reply

Your email address will not be published. Required fields are marked *

Chat now