Appearance
Custom domains & HTTPS
Every host gives your site a free address (my-site.vercel.app, my-site.netlify.app, my-site.pages.dev). To use your own domain, such as yourbusiness.co.tz, you add the domain in the host's dashboard and then create one or two DNS records where your domain is managed.
Words you'll see
| Term | Meaning |
|---|---|
| Registrar | The company you bought the domain from. For .tz domains, an accredited .tz registrar or your hosting company. |
| DNS | The settings that say where your domain points. Managed at your registrar, your host, or Cloudflare. |
| Apex / root domain | yourbusiness.co.tz without www. |
A record | Points a name at an IP address, for example 76.76.21.21. |
CNAME record | Points a name at another name, for example www → my-site.netlify.app. |
| Nameservers | Which company answers DNS for your domain. Changing them moves all DNS management to that company. |
The general steps
- Add the domain in your host's dashboard (see the table below). Add both
yourbusiness.co.tzandwww.yourbusiness.co.tz, and choose which is the main one; the other redirects to it. - The host shows you the exact records to create. Copy them.
- Sign in where your DNS is managed (registrar, cPanel Zone Editor, or Cloudflare) and create those records. Delete older
A/CNAMErecords for the same names that point elsewhere. - Wait. Changes usually work within minutes to an hour, but can take up to 48 hours.
- The host issues a free HTTPS certificate automatically once the records are correct.
Always use the values your host shows
The records below are the typical ones at the time of writing. Hosts change them sometimes, and some show values specific to your project. If the dashboard shows something different, use what the dashboard shows.
Per host
| Host | Where to add the domain | Apex domain (yourbusiness.co.tz) | www subdomain |
|---|---|---|---|
| Vercel | Project → Settings → Domains | A → 76.76.21.21 | CNAME → cname.vercel-dns.com (or the project-specific value shown) |
| Netlify | Domain management → Add a domain | A → 75.2.60.5 (or use Netlify DNS) | CNAME → <site>.netlify.app |
| Cloudflare Pages | Project → Custom domains | Domain must use Cloudflare nameservers (then automatic) | CNAME → <project>.pages.dev |
| GitHub Pages | Repo → Settings → Pages → Custom domain | A → 185.199.108.153, 185.199.109.153, 185.199.110.153, 185.199.111.153 | CNAME → <user>.github.io |
| cPanel hosting | Domains / Addon Domains in cPanel | A → your server's shared IP | CNAME → yourbusiness.co.tz |
Domain and email together
If your email (for example [email protected]) runs on the same hosting, change only the website records (A for @, CNAME for www). Don't touch MX, TXT (SPF, DKIM) or mail records, or your email will stop working. Avoid changing nameservers unless you copy every email record to the new DNS provider first.
HTTPS
- Vercel, Netlify, Cloudflare Pages, GitHub Pages: automatic and free. On GitHub Pages, tick Enforce HTTPS once it becomes available.
- cPanel: run AutoSSL or Let's Encrypt in cPanel and add the HTTPS redirect from the cPanel guide.
- Mixed content warnings: if you added images or scripts with
http://URLs, change them tohttps://.
Check that it works
https://yourbusiness.co.tzandhttps://www.yourbusiness.co.tzboth open the site, and one redirects to the other.http://redirects tohttps://.- The padlock shows in the address bar.
- Update
og:url,og:image, the canonical link and the sitemap to the final domain (SEO basics).
You can check DNS from anywhere with dnschecker.org or in a terminal:
bash
nslookup yourbusiness.co.tz
nslookup www.yourbusiness.co.tz