Point Domain to Hosting: Nameservers vs A Records
Two methods connect a domain to a cPanel host: swap the nameservers, or keep your DNS and add an A record. Here is how to pick, and how to verify.

Infrastructure & Support Team
On this page
To point a domain to hosting you have two options: change the domain's nameservers to the ones your host gave you, or leave DNS where it is and add an A record that sends the domain to your hosting server's IP address. Nameservers hand over control of the whole DNS zone. An A record moves only the website.
Neither is "better". The right pick depends on where you want to manage DNS and what else hangs off the domain, mostly email. This guide explains what each method actually changes, walks through both on a cPanel account, and shows how to check the result instead of guessing whether the change has taken effect.
What actually happens when you point a domain#
A domain name does nothing by itself. When someone types it into a browser, their resolver asks the domain's authoritative nameservers, which hold the definitive records, where the site lives. The record that answers is usually an A record: a mapping from a hostname to an IPv4 address.
So there are two layers, and the two methods work at different ones:
- Nameservers (delegation). Set at your registrar. They say who is in charge of this domain's DNS. Change them and every record is now read from the new provider's zone. As Cloudflare's documentation puts it, nameservers are the authoritative servers that give the final answer during resolution.
- A record (the answer). Set inside whichever zone is in charge. It says which IP address this hostname resolves to.
That distinction drives every decision below. Changing nameservers is a big switch; adding an A record is a small, targeted edit.
Nameservers vs A records: which one to use#
| Change nameservers | Add an A record | |
|---|---|---|
| Where DNS lives afterwards | On your host (cPanel Zone Editor) | Stays at registrar or Cloudflare |
| What moves | Everything: website, email routing, subdomains | Only the hostnames you edit |
| Email records | Must be recreated in the new zone | Untouched |
| Best for | New domain, simple setups, one place to manage DNS | Cloudflare users, domains with email elsewhere, staged migrations |
| Risk | Missing records vanish from DNS | Typos in IP or forgetting www |
A rough rule that works in practice:
- New domain, nothing else attached: change the nameservers. Fewest moving parts, and cPanel creates the zone for you.
- Domain already runs email, or uses Cloudflare: add records and leave the nameservers alone.
- Migrating a live site: add the A record first, confirm the site works, and only then consider moving nameservers.
Method 1: change the nameservers#
- Find the nameservers in your hosting welcome email. Use those exact values; do not guess them from another provider's pattern.
- Log in to your domain registrar and open the domain's DNS or nameserver settings. Most Indian and international registrars have a "Custom nameservers" option.
- Replace the existing nameservers with the new ones and save. Most hosts give two or more; enter all of them.
- In cPanel, make sure the domain exists as the main domain, an addon domain or an alias, so the host's DNS has a zone to serve.
Before you switch, copy every record from the old zone: MX, TXT (SPF, DKIM, verification codes), any subdomain A or CNAME records. The new zone will only contain what you add. Forgetting MX records is the classic way to lose email for a day.
If your site is on a LordCloud cPanel account, the steps and a short note on propagation are in our Domain configuration docs, and you can browse the cPanel hosting plans if you are still choosing a host.
Method 2: keep your DNS and add an A record#
Use this when DNS has to stay at your registrar or at Cloudflare.
- Get the server IP from the welcome email or the cPanel sidebar.
- Open your DNS provider and create or edit these records:
| Type | Name | Value |
|---|---|---|
| A | @ |
Your hosting server's IPv4 address |
| CNAME | www |
yourdomain.com |
- Delete any older A record for
@that points somewhere else. Two A records mean visitors get split between servers. - Save and wait for the TTL (below) to expire.
If DNS is on the cPanel side instead, cPanel's Zone Editor lets you add an A record by clicking Manage for the domain, then Add Record and choosing A. Enter the name and the IPv4 address and save. For more on the record type itself, see our A records guide.
Cloudflare users: a proxied (orange cloud) record hides the real IP and is fine for websites. Records for game servers and some mail hostnames must stay DNS only. If you use Cloudflare with cPanel hosting, read the Cloudflare integration docs first.
How long does it take for a domain to point to new hosting?#
People call this DNS propagation, but nothing is really "pushed" across the internet. Resolvers around the world cache answers, and each cached answer expires after its TTL (time to live). Cloudflare's TTL reference describes the trade-off: long TTLs speed up lookups but slow down changes, short TTLs do the reverse. It also notes that caches on a user's own device can delay a change beyond the TTL.
Practical consequences:
- A record change: waits roughly one TTL. With a 300-second TTL that is about five minutes for most visitors; with 14400 (four hours) it may be a few hours.
- Nameserver change: often slower, and commonly quoted as up to 24 to 48 hours, because resolvers cache the delegation from the registry separately from your records.
- Planned move: lower the TTL on the existing record a day before you edit it. Then the old answer expires quickly once you switch.
Different people on different ISPs may see the old and the new site for a while. That is normal and not a sign that you made a mistake.
How to check the domain points to the right place#
Do not rely on refreshing the browser. Ask DNS directly:
# What IP does the domain resolve to?
dig +short yourdomain.com A
# Which nameservers does the world see?
dig +short yourdomain.com NS
# Ask a specific public resolver, bypassing your local cache
dig @1.1.1.1 +short yourdomain.com AOn Windows without dig, use nslookup yourdomain.com. If the answer is your hosting IP, DNS is done and any remaining problem is on the server side. If it still shows the old IP, wait out the TTL, then flush your own cache (ipconfig /flushdns on Windows, or restart your browser) and test from mobile data to rule out a cached ISP answer.
Common mistakes#
- Pointing
@but notwww. Visitors who typewwwland on an error or an old site. Add the CNAME. - Changing nameservers before copying records. Email and subdomains break silently.
- Leaving an old A record in place. Two A records for the same name mean half your traffic hits the wrong server.
- Using a CNAME on the root. The root domain normally needs an A record; a CNAME there conflicts with other records such as MX.
- No SSL yet. Once DNS points at the server, issue the certificate. Our SSL installation docs cover it, and the AutoSSL troubleshooting post helps when it will not issue.
- Expecting an instant result. Check with
digbefore assuming something is broken.
If something still does not resolve after the TTL has clearly passed, open a ticket through our support ticket guide with your domain name and the output of the dig commands above. That saves a round of back and forth.
FAQ#
How do I point a domain to hosting?#
Replace the nameservers at your registrar with your host's, or add an A record for the root domain plus a CNAME for www. Both are covered above.
Should I use nameservers or an A record?#
Nameservers when you want one place, cPanel, to manage DNS. An A record when DNS must stay with the registrar or Cloudflare, or email lives elsewhere.
Will changing nameservers break my email?#
It can, because the new zone replaces the old one. Recreate MX, SPF and DKIM records first.
Frequently asked questions
How do I point a domain to hosting?
Either replace the domain's nameservers at your registrar with the ones your host gave you, or keep your current DNS and add an A record for the root domain (and a CNAME for www) that points to your hosting server's IP address.
Should I use nameservers or an A record?
Use nameservers if you want the host to manage all DNS, including email records, from cPanel. Use an A record if DNS must stay at your registrar or Cloudflare, or if only the website should move while email stays elsewhere.
How long does it take for a domain to point to new hosting?
It depends on caching. A record changes follow the record's TTL, often minutes to a few hours. Nameserver changes can take longer, commonly up to 24 to 48 hours, because resolvers cache the old delegation.
Will changing nameservers break my email?
It can. Changing nameservers replaces the whole DNS zone, so any MX, SPF and DKIM records at the old provider stop being used. Recreate them in the new zone before you switch.
References
Drafted with AI assistance and checked against LordCloud's published product information. Spotted a mistake?Suggest an edit.



