How to Point a Domain to Your Hosting: DNS Step by Step
Switch the nameservers or create an A record: which path to pick, the step-by-step in the panel, how long propagation really takes and the usual mistakes.
You bought the domain, signed up for hosting, uploaded your site — and then you type the address into the browser only to get a blank page, a "server not found" error, or worse, the registrar's "parked domain" screen. The question hits immediately: I paid for everything, so why isn't the site showing up? The answer is almost always the same. The domain and the hosting both exist, but nobody told one to look for the other.
The two-line answer: add the domain in your hosting panel and, at your registrar, either switch the nameservers to your host's or create an A record with the server's IP. Then wait for propagation and check with dig. The rest of this guide is how to choose between those two paths, where each option lives, how long each one takes, and the mistakes that make a correct setup look broken.
This isn't about choosing or buying the domain — that's covered in how to register a domain. Here the name is already yours and the job is to connect it.
What actually happens when someone types your domain
A domain and hosting are two separate things, often bought from different companies. The domain is the name (yoursite.com). The hosting is the server where your site files live, identified by an IP address, something like 203.0.113.45.
DNS translates the name into the IP. When someone types your domain, the resolver first asks the TLD's servers (.com, .br) who the domain's nameservers are, then asks those nameservers for the A record (IPv4) or AAAA record (IPv6). If the answer is your hosting's IP, the site loads. If it's the registrar's parking IP, or nothing, you get the default page or an error. The full path of a lookup, with cache and TTL at every step, is in how a DNS query works.
Pointing the domain means changing one of those two layers.
The two paths: nameservers or A record
Path 1 — Change the nameservers. You delegate the whole DNS zone to your host. At the registrar, you replace the default nameservers with the host's, something like:
ns1.yourhost.com
ns2.yourhost.com
From then on, the host controls every record: site, email, subdomains. It's the simplest path when the host runs everything and you don't want to edit record by record.
Path 2 — Edit the records in the current zone. You keep the nameservers where they are (registrar, Cloudflare) and just adjust the records that matter:
Type Name Value
A @ 203.0.113.45 ← root domain points to the hosting IP
CNAME www yoursite.com. ← "www" follows the root
This path makes sense when you need to split services — the site on one host and email on Google Workspace, or just a subdomain (shop.yoursite.com) pointed at another platform. The difference between A, AAAA, CNAME and MX is covered in DNS records explained.
The rule of thumb: if the host gives you nameservers and will handle site and email, use Path 1. If you already have email or other services running in the current zone, prefer Path 2. And don't mix them: whoever answers for the domain is whoever sits in the active nameservers, so editing the registrar's zone after delegating to the host does nothing. The long explanation is in nameserver vs DNS zone.
Step by step
The flow works for Namecheap, Hostinger, GoDaddy, Cloudflare or any registrar — only the menu names change, not the logic.
- Add the domain to the host first. In the hosting panel (cPanel, hPanel, Plesk), add the domain under "Domains" or "Add-on Domains". If you point DNS before that, traffic reaches the right server, but the server doesn't know which folder to serve and returns the host's default page.
- Write down the destination. In the same panel, grab the two nameservers (Path 1) or the server's IP (Path 2). It's usually under "Account details", in the DNS area, or in the welcome email.
- If you're changing an A record, lower the TTL first. If the current record has a TTL of 86400 (24 h), change it to 300 (5 min) and wait for the old TTL to expire. That way the real switch shows up in minutes.
- Apply it at the registrar. Swap the nameservers or edit the A and CNAME records. Save.
- Check with
digand wait for propagation (details in the next sections).
On registrars with a separate DNS panel (Registro.br for .br domains, for example), "change DNS servers" and "edit zone" are distinct screens, and zone editing only exists while the domain uses the registrar's own DNS servers. If you can't find where to add an A record, that's usually why.
How long it takes: nameservers vs A record
"A few minutes to 48 hours" is true, but it hides the difference that matters: changing nameservers is usually the slower path, because the delegation is cached for the TTL the TLD's servers set, and you don't control that number.
I measured it with dig straight against the TLD servers on November 9, 2026: a .com delegation comes back from a.gtld-servers.net with a TTL of 172800 seconds (48 hours); a .com.br delegation from a.dns.br, with 3600 seconds (1 hour). A resolver that looked up the domain right before the switch can keep using the old nameservers until that expires (many resolvers cap long TTLs, so in practice it's often less).
An A record inside a zone you control, on the other hand, follows the TTL you set. With a TTL of 300 configured ahead of time, the change shows up for almost everyone within minutes. That's why, when migrating a site that's already live, the most predictable route is to lower the TTL, swap the A record, and only later, calmly, touch the nameservers if you need to.
The mistakes that break pointing most often
- Thinking it's broken during propagation. Hitting refresh for 10 minutes and concluding it failed. Your computer and router cache the old answer; test on another network (mobile data) and check with
digbefore changing anything. - Editing the wrong zone. If the nameservers belong to the host, the records that count live at the host. Editing the registrar's zone changes nothing.
- Forgetting
www. The root loads andwww.yoursite.comerrors out because thewwwCNAME (or A) is missing. Set up both. - A stale AAAA record pointing the wrong way. You changed the A record but left an AAAA for the registrar's parking page. Anyone on IPv6 lands in the wrong place — and since browsers prefer IPv6 when it works (RFC 8305), the site "works on a colleague's phone but not on your Wi-Fi." Delete the AAAA or point it at the host's IPv6.
- Email stopping after changing nameservers. The MX records were in the old zone; the new zone at the host doesn't have them. Before delegating, copy MX, SPF and other TXT records into the new zone — the classic problem explained in nameserver vs DNS zone.
- "Not secure" right after pointing. That's expected. Let's Encrypt and AutoSSL only issue the certificate once the domain resolves to the server, because HTTP-01 validation fetches a file from
http://yourdomain/.well-known/acme-challenge/(Let's Encrypt documentation). Wait for DNS and run the issuance again in the panel; more in is a free SSL certificate secure?.
How to confirm it worked
Don't trust the browser alone; it lies because of cache. In the terminal:
# IP the domain returns right now (IPv4 and IPv6)
dig yoursite.com A +short
dig yoursite.com AAAA +short
# Which nameservers your resolver is using
dig yoursite.com NS +short
# What the TLD itself is delegating (no cache in between)
dig yoursite.com NS @a.gtld-servers.net +norec # .com
dig yoursite.com.br NS @a.dns.br +norec # .br
# On Windows, without dig:
nslookup yoursite.com
If the A (and the AAAA, if any) matches your hosting's IP, the pointing is correct; the rest is waiting for other people's caches to expire. To see how the world sees it, public propagation checkers such as whatsmydns.net query resolvers in many countries at once.
One last check helps explain the AAAA case: open the What Is My IP tool and see whether your public IP shows up as IPv6. If it does, your connection uses IPv6 and your browser will follow the domain's AAAA — if that record is wrong, you're the one landing on the parked page. And if the "server" is a machine at your home or office, that public IP is what goes into the A record.
Frequently asked questions
How long does it take for a domain to point to the hosting?
An A record with a low TTL usually shows up within minutes. A nameserver change can take hours: a .com delegation has a 48-hour TTL and a .com.br one, 1 hour (measured in November 2026). Up to 24–48 hours is the safe margin before concluding something is wrong.
Do I need to change the nameservers, or is an A record enough?
Either one is enough. Change the nameservers if the host will handle everything (site and email). Use the A record if you want to keep the zone where it is, for example because email runs on another service.
Why did my email stop working after pointing the domain?
Because when you changed the nameservers the old zone stopped counting, and the MX records stayed in it. Recreate MX, SPF and DKIM in the host's new zone (or go back to the A record approach, which doesn't touch MX).
Why does the site show as "not secure" after pointing?
The free certificate is only issued once the domain points to the server, because validation happens through the domain itself. As soon as dig shows the right IP, issue or reissue the certificate in the hosting panel.
One side only, then check with dig
Pointing a domain means making DNS answer with your hosting's IP: either by delegating the whole zone through the nameservers, or by setting the A record in the zone that already exists. Pick one path, apply it on one side only, copy the email records before delegating, and don't forget www or a stray AAAA. Once dig A and dig AAAA show the right server, the DNS work is done — any error after that is cache, certificate or hosting configuration.
- 01 CPU Cores vs. Threads: What Actually Changes in Practice Understand the difference between CPU cores and threads and what actually changes for performance, multitasking, gaming, and development.
- 02 MIT, Apache, and GPL Licenses: Practical Differences for Developers MIT, Apache 2.0, and GPL are not the same thing. Understand permissive vs copyleft, patent protection, and compatibility before shipping code to production.