Skip to content

How to Connect Your Domain to cPanel Hosting in Kenya

Wikimania 2022 Cape Town (Saturday) 10 – How to Connect Your Domain to cPanel Hosting in Kenya
Photo: Discott, CC BY-SA 4.0, via Wikimedia Commons

You paid for the domain. You paid for the hosting. You open your browser, type the address, and get a blank page or a parking screen. This is the moment most Kenyan business owners think something is broken. Usually nothing is. The two just have not been introduced to each other yet.

Here is how to connect your domain to cPanel hosting properly, whether you bought both from the same company or from different ones.

What “connecting” actually means

A domain is an address. Hosting is the building that sits at that address. Connecting them means telling the internet, “when someone asks for mybusiness.co.ke, send them to this server.” That instruction lives in DNS, and you have two ways to set it.

Advertisement

Method one is changing your nameservers. Method two is editing an A record. Nameservers hand over control of all your DNS to the host. An A record only points the website itself and leaves everything else where it is.

Before you start: gather three things

  • Your domain registrar login (where you bought the domain).
  • The welcome email from your hosting company. It contains your nameservers and your server IP address.
  • Your cPanel login, so you can confirm the domain is added there.

Can’t find the welcome email? Search your inbox for the word “nameservers” or ask your host. Nobody minds that question.

Method 1: Change nameservers (the easy way)

Most people should use this one. Your hosting nameservers usually look like ns1.yourhost.co.ke and ns2.yourhost.co.ke.

  1. Log in to your domain registrar.
  2. Open the domain management page for your .co.ke domain.
  3. Find “Nameservers” or “DNS management”.
  4. Choose “Custom nameservers” and replace the existing ones with the two from your host.
  5. Save.

That is all. If you registered with us, you can do this from your client area, and if you have not registered yet you can search for your domain here.

One catch with nameservers

Once you point nameservers at your host, your host controls DNS. If your email is with Google Workspace or Zoho, you must recreate those MX records inside cPanel’s Zone Editor or your email will stop. We see this one every month. A business changes nameservers on Friday afternoon and by Monday morning nobody has received an email all weekend.

Method 2: Point an A record (when you want to keep your DNS)

Use this if your DNS is managed somewhere like Cloudflare, or if your email is set up elsewhere and you do not want to touch it.

  1. Get your server IP from the hosting welcome email, or from the cPanel sidebar under “General Information”.
  2. Open DNS management at your registrar or DNS provider.
  3. Edit the A record for @ (the root domain) and set it to your server IP.
  4. Edit or add an A record or CNAME for www. A CNAME pointing to your root domain works fine.
  5. Save and give it time.

Leave your MX and TXT records alone. Those belong to your email.

Make sure cPanel knows about the domain

Pointing DNS is only half the job. The server must also be told to expect your domain. If it is your main domain, it was set up when the account was created. If it is a second website on the same account, log into cPanel, open Domains (older versions call it “Addon Domains”), click Create A New Domain, and enter the name. Set the document root to a folder like public_html/mysecondsite.

Skip this and you will get a default server page or a “404 Not Found” even though DNS is perfect.

How long until it works?

Propagation can take anywhere from a few minutes to 24 hours, and occasionally up to 48. For .co.ke domains it is often quick, but your own internet provider’s cache can lag. Safaricom Home Fibre, Zuku and mobile data sometimes show different results at the same moment because each caches DNS separately.

A trick: open the site on your phone using mobile data, then on your laptop using Wi-Fi. If one works and the other does not, it is caching, not a fault. We wrote a full explainer on DNS propagation if you want the detail.

Troubleshooting the usual suspects

You see the registrar’s parking page

Your change has not saved or has not propagated. Recheck the nameservers and confirm there are no typos. One misplaced letter in ns2 is enough.

You see “Account Suspended” or a default Apache page

You are reaching the right server, but the domain is not mapped to an account. Add it in cPanel as described above, or ask your host to do it.

Site loads but shows “Not Secure”

DNS is working. You just need an SSL certificate. In cPanel, open SSL/TLS Status and run AutoSSL. Free certificates usually install within minutes after DNS resolves.

www works but the plain domain does not

Your root A record is missing. Add it, then set up a redirect so both versions end up in one place.

A quick sanity checklist

  • Domain is unlocked and active at the registrar.
  • Nameservers or A record are updated and saved.
  • Domain exists inside cPanel.
  • Email records are intact.
  • SSL is issued.

Most connection problems fall inside that list. Work through it from the top and you will almost always find the culprit within ten minutes.

If you would rather not touch DNS at all, our team can connect everything for you. Send us a message with your domain name and hosting details, and we will tell you exactly what to change.

Leave a Reply

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

Chat now