Skip to main content
Your ideas. Our technology. A brighter Malawi.
Domains

How to Connect a Domain to Web Hosting (Nameservers and DNS)

Learn how to point your domain name at your hosting account using nameservers or DNS records, and what to expect while changes spread.

By HOSTMALAWi · Published · 1 min read

After you buy a domain and hosting, you need to connect them so that visitors who type your domain reach your website. There are two common ways.

Method 1: Change the nameservers

Your hosting provider gives you nameservers. You enter them at your domain registrar. From then on, the host controls your DNS records. This is the simplest method for most people.

  1. Log in to where your domain is registered.
  2. Find the nameserver or DNS settings.
  3. Replace the existing nameservers with the ones your host provided.
  4. Save and wait for the change to spread.

Method 2: Edit DNS records

If you want to keep DNS where it is, create an A record pointing your domain to the server IP address given by your host, and a CNAME for www. See how to update DNS records.

Do not break your email

If you already use email at your domain, make sure the MX records are copied across before you change nameservers, or your mail may stop.

How long does it take?

Often minutes to a few hours, sometimes up to 48 hours. Visitors in different places may see the change at different times.

Check it worked

Use our DNS lookup to see the records for your domain. Once the site loads, activate SSL.

Frequently asked questions

Why does my site still show the old page?

DNS changes need time to spread, and your browser may cache the old page. Wait and try a private window or another device.

Want help with DNS? DNS management help
Moni! Need help? Open a ticket
WhatsApp us