Domains & DNS Explained: How to Point Any Domain to Any Host in 10 Minutes
Bought your domain at Namecheap or Cloudflare and your hosting at Hostinger or Cloudways? Learn how Nameservers, A Records, CNAMEs and TTL propagation work in plain English.
Hostinger — 79% OFF + free domain & NVMe LiteSpeed
Claim dealOne of the biggest myths in web hosting is that you must buy your domain and hosting from the same company. In reality, keeping your domain at a dedicated registrar (like [Namecheap](/hosting/namecheap) or Cloudflare Registrar) and pointing it to your web host (like [Hostinger](/hosting/hostinger) or [Cloudways](/hosting/cloudways)) is cleaner, safer, and makes switching hosts in the future effortless.
Two ways to connect a domain to your web host
Method A: Pointing Nameservers (Easiest for Shared Hosting)
When you sign up for Hostinger, SiteGround or Bluehost, they give you two Nameservers that look like:
ns1.dns-parking.comns2.dns-parking.com
Log into your domain registrar, find Nameservers → Custom DNS, paste those two lines, and save. Your web host now manages all DNS records (web, mail, subdomains) automatically.
Method B: Pointing an A Record via Cloudflare DNS (Best for Speed & Cloud)
If you use Cloudways, DigitalOcean, or want Cloudflare's free CDN & DDoS protection:
- Point your domain's nameservers to Cloudflare (free plan).
- Copy your server's Public IPv4 Address (e.g.,
143.198.112.44) from your host dashboard. - In Cloudflare → DNS → Records, add:
- Type `A` | Name:
@| Content:143.198.112.44| TTL: Auto - Type `CNAME` | Name:
www| Content:yourdomain.com| TTL: Auto
Cheat Sheet: The 5 DNS Records You Actually Use
| Record | Purpose | Example Value |
|---|---|---|
| A | Maps your domain to an IPv4 server address | 143.198.112.44 |
| AAAA | Maps your domain to an IPv6 server address | 2606:4700::6810:84e5 |
| CNAME | Aliases a subdomain (www) to another domain | yourdomain.com |
| MX | Tells the world where to deliver your email | smtp.google.com |
| TXT | Verifies domain ownership & email security (SPF/DKIM) | v=spf1 include:_spf.google.com ~all |
External reference: Read Cloudflare's Learning Center on DNS for deeper packet-level diagrams.
Frequently Asked Questions
ISPs and routers around the world cache DNS records based on their TTL (Time To Live). If you use Cloudflare DNS, A-record changes propagate globally in under 60 seconds; full nameserver switches usually take 15 minutes to 4 hours.
Continue reading