Flash sale: Hostinger 79% OFF + free domain — verified active
Domains & DNSBeginner 10 min read Lab-Verified · 2027 Edition

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.

LH

Lena Hoffmann

Performance Testing Lead · PolyGuides Testing Lab

Ask author
DNS & DOMAINS GUIDE10-Minute Setup
Domains & DNS
Registrar (Namecheap)
Cloudflare DNS
A Record → IP
Live Host Server
Domains & DNSBeginner · 10m
⚡ Key Takeaway: You never need to transfer your domain registrar just to switch web hosts — simply update your Nameservers or A Record and your site goes live globally.

Hostinger — 79% OFF + free domain & NVMe LiteSpeed

Claim deal

One 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.com
  • ns2.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:

  1. Point your domain's nameservers to Cloudflare (free plan).
  2. Copy your server's Public IPv4 Address (e.g., 143.198.112.44) from your host dashboard.
  3. 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

RecordPurposeExample Value
AMaps your domain to an IPv4 server address143.198.112.44
AAAAMaps your domain to an IPv6 server address2606:4700::6810:84e5
CNAMEAliases a subdomain (www) to another domainyourdomain.com
MXTells the world where to deliver your emailsmtp.google.com
TXTVerifies 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.

how to point domain to hostdns explained for beginnersnameservers vs a recordconnect namecheap domain to hostingercloudflare dns setup guidedns propagation time