Domains & DNS
How to point your domain to your hosting (DNS records explained)
Nameservers or A records? A plain-English walkthrough of connecting a domain to your web host, how long DNS changes take, and how to check they worked.

On this page
Buying a domain and buying hosting are often two separate purchases. To make your site appear when someone types your domain, you tell the domain where the hosting is. That is done with DNS.
Two ways to connect them
Option 1: Change the nameservers
Your host gives you two or more nameservers, for example ns1.example-host.com and ns2.example-host.com. You paste them into your registrar's control panel. From then on, your host manages all DNS records for the domain.
Choose this when you want the simplest setup and are happy to manage DNS at your host.
Option 2: Add records at your registrar
You keep DNS at the registrar (or a DNS provider such as Cloudflare) and add records that point to your host:
| Record | Name | Value |
|---|---|---|
| A | @ | Your server's IPv4 address |
| AAAA | @ | Your server's IPv6 address, if provided |
| CNAME | www | Your root domain |
Choose this when your email or other services already depend on records at your current DNS provider.
How long does it take?
Most changes are visible within an hour. Some networks cache old answers for up to 48 hours, depending on the record's TTL. Lowering the TTL a day before a planned move makes the switch faster.
How to check it worked
- Open your domain in a private browser window.
- Use a public DNS lookup tool and confirm the A record shows your host's IP.
- On a computer, run:
dig +short example.com A
dig +short www.example.com
When both return your host's address, issue the SSL certificate from your hosting panel so the site loads over HTTPS.
Sources & references
Related reading
Domains & DNS
How to choose a domain name you won't regret
Short, spellable, and free of trademark trouble. Seven practical rules for picking a domain name, plus how to choose between .com and country domains.
2 min read
Domains & DNS
Domain vs hosting: what's the difference and what do you need?
A domain is your website's address and hosting is where its files live. Learn how they work together, where to buy each one and the mistakes beginners make.
2 min read
WordPress
How to install WordPress: one-click and manual methods
Install WordPress with your host's one-click installer or manually with FTP and a database. Requirements, step-by-step instructions and a first-day security checklist.
2 min read