Skip to content
Tips

How to Point a Domain Name to Your Web Hosting Account

Two ways to connect a domain to your hosting account, nameservers or an A record, with steps, timings and the email records to protect.

By Mike Updated November 5, 2026 7 min read

To point a domain name to your web hosting account, sign in to the company where the domain is registered and either replace its nameservers with the ones your host gave you, or keep your current DNS and change the domain’s A record to your hosting server’s IP address. Changing nameservers is simpler and hands all DNS to your host; changing the A record moves only the website and leaves email untouched. Most changes are visible within a few hours, but allow up to 48 hours.

What does pointing a domain to hosting mean?

A domain name is the address people type. Web hosting is the server that stores and delivers your site. DNS (the Domain Name System) connects the two: it tells browsers which server answers for your domain. Pointing a domain means changing DNS so that requests reach your hosting server.

Pointing a domain does not move any files. If you are launching a new site, you still need to build or upload it on the hosting account. If you are moving an existing site, its files, database and email must already be set up on the new server before you change DNS.

What do you need before you start?

  • Your registrar login. This is the account where the domain is registered. It may be a different company from your host.
  • Your host’s DNS details. Either nameservers or a server IP address. At Tremhost these are in the welcome email and in the client area under Services, on the hosting plan’s page. Different servers use different nameservers, so copy yours from your own account, never from an old guide or another customer.
  • A record of your current DNS. Note every existing record, especially MX records and TXT records for SPF, DKIM and DMARC, before you change anything.
  • The domain set up on the hosting account. The server must know about the domain, either as the main domain or as an addon domain, or it will not serve the site.

Nameservers or A record: which method should you use?

Change nameservers Change the A record
What changes Which company’s DNS servers answer for the whole domain Only the address the website points to
Where you manage DNS afterwards At your host (in cPanel’s Zone Editor) Where it is managed today
Effect on email Email follows the host’s DNS zone, so external email records must be recreated there Email is unaffected
Best for New sites, and businesses using hosting and email from the same provider Sites using Microsoft 365, Google Workspace or a separate DNS provider such as Cloudflare
Difficulty Easiest Slightly more technical

Method 1: point your domain using nameservers

  1. Find your nameservers. Copy them from your hosting welcome email or client area. There are usually at least two.
  2. Sign in to your registrar. Open the domain list and select the domain.
  3. Open the nameserver setting. It may be called Nameservers, Change Nameservers, DNS or Manage domain. Choose the option to use custom nameservers.
  4. Replace the existing nameservers with the ones from your host, entering every one supplied, and save.
  5. Recreate any external records. If email or other services are hosted elsewhere, add their MX, CNAME and TXT records in your host’s DNS zone, or they will stop working once the change takes effect.
  6. Wait, then test. Do not keep changing the nameservers because the site does not appear immediately.

If the domain is registered with Tremhost, you can change nameservers in the client area under Domains, or open a ticket and the team will set them for you. Tremhost cannot change nameservers for domains registered elsewhere, because it has no access to that registrar account. The Help Centre has a short guide to pointing a domain to Tremhost.

Method 2: point your domain using DNS records

Use this method when you want to keep DNS where it is, for example because email runs on Microsoft 365 or the domain uses Cloudflare.

  1. Get the server IP address from your hosting welcome email or client area.
  2. Open the DNS settings at the company that currently manages your DNS.
  3. Edit the A record for the root domain, usually shown as @ or as the bare domain, and replace its value with the new IP address.
  4. Point www as well. Either edit the A record for www to the same IP, or set www as a CNAME pointing to the root domain.
  5. Remove conflicting records. Delete any old A or AAAA record for the same name that points to the previous host, otherwise some visitors may reach the old server.
  6. Leave MX records alone unless you are deliberately moving email too.

If your DNS is in cPanel, records are edited in Domains, then Zone Editor. See how to edit DNS records for the step-by-step version.

Which DNS records matter?

Record What it does Typical use
A Points a name to an IPv4 address Your website’s server
AAAA Points a name to an IPv6 address Only if your host gives you an IPv6 address
CNAME Points one name to another name www to your domain, or service verification
MX Says which server receives your email Your email provider
TXT Holds text such as SPF, DKIM and DMARC Email authentication and domain verification
NS Names the DNS servers that answer for the domain Set at the registrar when you change nameservers

How long does it take for a domain to point to new hosting?

Usually a few hours. Allow up to 48 hours before treating it as a problem. Internet providers cache DNS answers and only refresh them when the cache expires, so during this period some visitors reach the new server and some still reach the old one. This delay is called propagation. Keep your old hosting running until it has finished, so nobody sees an empty site.

If you plan a move in advance and your DNS provider allows it, lowering the TTL (time to live) on the A record a day or two before the change can make the switch quicker. Nameserver changes at the registry level do not always respect this, so still allow time. Read more about DNS propagation times.

How to check that it worked

  • Visit both the root domain and the www version, over https.
  • Use a public DNS checker such as whatsmydns.net to see whether resolvers around the world return the new nameservers or IP address.
  • Clear your own cache by restarting the browser, or on Windows run ipconfig /flushdns.
  • Send a test email to and from your domain to confirm mail still flows.
  • Check the padlock. Free SSL certificates such as AutoSSL can only be issued once the domain points to the new server, so if SSL fails straight after the change, wait and run it again.

Common problems and fixes

  • The host’s default page appears. The domain points correctly, but no site has been uploaded yet, or files are in the wrong folder.
  • The old site still appears. Your network is still using cached DNS. Check from mobile data or a DNS checker, and wait.
  • Email stopped working. The nameservers changed but the MX and TXT records were not recreated in the new zone. Add them exactly as they were.
  • Security warning in the browser. The SSL certificate has not been issued for the domain yet. Wait for propagation, then reissue it.
  • Nothing has changed after 48 hours. Check that the nameservers were saved at the registrar and that the domain is not expired or locked.

Frequently asked questions

Do I have to transfer my domain to my hosting company?

No. A domain can stay with any registrar and still point to any host. Transferring is optional and mainly about keeping billing and support in one place. If you do not have a domain yet, Tremhost registers .co.zw domains from $6.99 a year and .com domains at $15.99 a year on its domain registration page.

Will changing nameservers affect my email?

It can. After a nameserver change, the new DNS zone answers for everything, including email. If your email is hosted elsewhere, copy its MX and TXT records into the new zone first.

Can I point one domain to two hosts?

Yes, partly. You can point the website to one host with an A record and send email to another with MX records. You cannot split the same record type for the same name between two servers in a reliable way.

Can I point a .co.zw domain the same way?

Yes. A .co.zw domain uses the same DNS records and nameserver settings as a .com. You make the change at whichever registrar manages your .co.zw domain.

Next step

If you still need hosting for your domain, Tremhost’s web hosting plans start at $30 a year, with free SSL, unlimited email accounts and DNS management in cPanel, priced in US dollars and payable by EcoCash, ZimSwitch or card. If you get stuck mid-change, open a ticket or message the team on WhatsApp on +263 73 563 9917, Monday to Friday, 08:00 to 17:00 CAT.

Ask us on WhatsApp