You’ve done it. You bought a beautiful new domain name. You signed up for a hosting plan. Your website files are uploaded and ready.
But when you type your domain into a browser… nothing. Just a blank page. Or worse, a “This site can’t be reached” error.
Here’s the problem: Your domain and your hosting server don’t know each other yet.
They’re like two phones that haven’t exchanged numbers. You need to introduce them. That introduction happens through DNS (Domain Name System)—specifically, by pointing your domain to your hosting server’s IP address.
This guide will walk you through exactly how to do that, whether you’re using shared hosting, a VPS, or a cloud platform like AWS or DigitalOcean. No technical jargon bombs. Just clear, actionable steps.
Part 1: The 30-Second Analogy (Why This Works)
Before we touch any settings, understand what you’re actually doing.
Think of the internet as a massive city:
- Your domain name (
yourdomain.com) is your street address (e.g., “123 Main Street”). - Your hosting server is the actual building where your website lives.
- DNS is the city directory that tells people, “If you’re looking for 123 Main Street, go to this GPS coordinate.”
Pointing your domain is simply updating that directory. You’re telling the internet: “When someone types my domain name, send them to THIS specific server IP address.”
That’s it. No magic. No file transfers. Just an address update.
Part 2: What You Need Before You Start
Gather these three things before clicking a single button. Trust me—hunting for them mid-process is frustrating.
1. Your Domain Registrar Login
Where did you buy your domain?
- GoDaddy
- Namecheap
- Cloudflare
- Google Domains (now Squarespace)
- Porkbun
- Hover
- A local or country-specific registrar
You need login access to manage DNS settings here.
2. Your Hosting Server’s IP Address or Nameservers
Where did you buy hosting?
- Shared hosting (Hostinger, Bluehost, SiteGround): They’ll give you nameservers (e.g.,
ns1.hostinger.com,ns2.hostinger.com) OR a dedicated IP address. - VPS or Dedicated Server (DigitalOcean, Vultr, Linode, AWS EC2): You’ll get an IPv4 address (e.g.,
192.0.2.123). - Cloud PaaS (Netlify, Vercel, GitHub Pages): You’ll get a target domain (e.g.,
your-site.netlify.app) for a CNAME record.
Find this information: Check your hosting provider’s welcome email, control panel dashboard, or documentation section labeled “Nameservers” or “IP Address.”
3. Your Hosting Server’s Welcome Email (Seriously)
Most hosting providers send a detailed email titled “Your Hosting Account is Ready!” or “Welcome to [Provider Name].” This email contains:
- Nameservers (e.g.,
ns1.example.com,ns2.example.com) - Server IP address
- Temporary domain or preview URL
Do not lose this email. Stash it in a “Hosting Info” folder now.
Part 3: Two Methods — Which One Do You Use?
There are two fundamentally different ways to point a domain to hosting. Pick the one that matches your situation.
| Method | What You Change | Best For | Difficulty |
|---|---|---|---|
| Method A: Nameserver Update | Change the domain’s authoritative nameservers | Shared hosting, managed WordPress hosting, most beginners | ⭐ Easy |
| Method B: DNS Record Update | Change specific A or CNAME records | VPS, cloud hosting, CDNs, advanced setups | ⭐⭐ Moderate |
Quick rule of thumb:
- If your hosting provider gave you nameservers (look like
ns1.provider.com), use Method A. - If your hosting provider gave you an IP address (like
203.0.113.45) or a target domain (likemysite.github.io), use Method B.
Part 4: Method A — Change Nameservers (Easiest for Beginners)
This is the “set it and forget it” method. You’re telling your domain registrar, “Stop using your default DNS settings. Use my hosting provider’s DNS instead.”
Step 1: Log into Your Domain Registrar
Go to the website where you bought your domain. Navigate to “My Domains,” “Domain Portfolio,” or “DNS Management.”
Step 2: Locate Nameserver Settings
Look for a menu item labeled:
- “Nameservers”
- “DNS Servers”
- “Custom Nameservers”
- “Change Nameservers”
Avoid “DNS Records” or “Zone Editor” for now. Those are for Method B.
Step 3: Replace Default Nameservers with Hosting Provider’s
Your registrar probably has default nameservers preselected (e.g., ns1.registrar.com). Change them to Custom Nameservers.
Enter the two (or more) nameservers from your hosting provider’s welcome email. They usually look like:
text
ns1.hostinger.com ns2.hostinger.com
Or:
text
ns1.siteground.net ns2.siteground.net
Or (for VPS control panels like cPanel):
text
ns1.yourdomain.com ns2.yourdomain.com
Pro tip: Most providers give 2–4 nameservers. Enter all of them. The order doesn’t matter.
Step 4: Save and Wait
Click “Save,” “Update,” or “Change Nameservers.”
What happens now: Your domain registrar says, “Okay, I’m handing off all DNS authority to those nameservers.” Your hosting provider’s DNS now controls where traffic goes.
Step 5: Wait for Propagation (The Hardest Part)
This is where beginners panic. Changes take time.
- Typical time: 15 minutes to 24 hours
- Average: 2–4 hours
- Worst case (old ISPs): 48 hours
During propagation, some visitors will see your new site. Others will see an old page or an error. This is normal. Do not repeatedly change settings—that restarts the clock.
Step 6: Verify It Worked
Use one of these free tools:
- WhatsMyDNS.net — Checks from 20+ global locations
- DNS Checker (dnschecker.org) — Visual map of propagation
When most locations show your hosting provider’s IP address or nameservers, you’re done.
Step 7: Install SSL Certificate (Crucial Next Step)
Your domain points to the server, but visitors will see “Not Secure” until you install an SSL certificate.
Most hosting providers offer free SSL via Let’s Encrypt. In your hosting control panel (cPanel, Plesk, or custom dashboard), look for “SSL/TLS,” “Security,” or “Let’s Encrypt.” Enable it for your domain.
Part 5: Method B — Change DNS Records (For VPS, Cloud, Advanced)
This method keeps your domain registrar as the DNS manager but changes the specific records that point to your server.
Step 1: Log into Your Domain Registrar
Same as Method A, but this time look for “DNS Records,” “Zone Editor,” or “Advanced DNS.”
Step 2: Find Your Current A Record
Look for a record with:
- Name/Host:
@(means root domain, e.g.,yourdomain.com) or blank - Type:
A
This is the master record that points your domain to an IP address.
Step 3: Change the A Record to Your Hosting IP
Replace the current IP address with the IPv4 address from your hosting provider.
| Field | Example Value |
|---|---|
| Name/Host | @ |
| Type | A |
| Value/Points to | 203.0.113.45 (your server IP) |
| TTL | 3600 (or leave default) |
Step 4: (Optional) Add or Update the www Subdomain
You want both yourdomain.com and www.yourdomain.com to work. Two options:
Option 1 (Best for SEO): Create a second A record:
| Name/Host | Type | Value |
|---|---|---|
www | A | 203.0.113.45 (same IP) |
Then configure your web server to 301-redirect www to the root (or vice versa).
Option 2 (Simpler): Use a CNAME for www:
| Name/Host | Type | Value |
|---|---|---|
www | CNAME | yourdomain.com |
Step 5: Special Case — CNAME for Platform Hosting
If your hosting provider gave you a target domain instead of an IP address (e.g., Netlify, Vercel, GitHub Pages, Shopify, WordPress.com), use a CNAME record:
| Name/Host | Type | Value |
|---|---|---|
www | CNAME | your-site.netlify.app |
Warning: Most providers require the root domain (@) to use an A record. If your platform doesn’t provide an IP address, you may need their nameservers (Method A) or an ALIAS/ANAME record (supported by Cloudflare, DNSimple, and others).
Step 6: Save and Wait
Click “Save” or “Add Record.” Propagation takes the same 15 minutes to 24 hours as Method A.
Step 7: Verify
Same as Method A—use WhatsMyDNS.net to check if your domain resolves to the correct IP address.
Part 6: Platform-Specific Examples
Example 1: Pointing from Namecheap to Hostinger (Shared Hosting)
Method A (Nameservers):
- Namecheap dashboard → Domain List → Manage
- Click “Nameservers” tab
- Select “Custom DNS”
- Enter:
ns1.dns-parking.com,ns2.dns-parking.com(Hostinger’s nameservers) - Save → Wait 1–24 hours
Example 2: Pointing from GoDaddy to DigitalOcean VPS
Method B (DNS Records):
- GoDaddy → My Products → Domains → DNS
- Scroll to “DNS Records” section → Edit
- Find the @ A record → Change Value to your DigitalOcean IP
- Find the www CNAME record → Change Points to
@ - Save → Wait 15–60 minutes
Example 3: Pointing from Cloudflare to Netlify
Special case (Cloudflare as DNS):
- Cloudflare Dashboard → DNS → Records
- Add A record for
@→ Set to75.2.60.5(Netlify’s load balancer IP) - Add CNAME for
www→ Set toyour-site.netlify.app - Enable “Proxy” (orange cloud) for both
- In Netlify: Site settings → Domain management → Add custom domain → Verify
Part 7: Troubleshooting — What to Do When It Doesn’t Work
Problem 1: “This site can’t be reached” after 24 hours
Possible causes:
- You entered the wrong nameservers or IP address (typos)
- Your hosting server is down or not configured
- You changed records at the registrar but forgot to save
Fix: Re-check your hosting provider’s welcome email. Copy-paste nameservers/IPs instead of typing. Verify the hosting server is running (ask support).
Problem 2: Some visitors see old site, some see new (split-brain)
Cause: Normal propagation delay. Different ISPs cache DNS for different durations.
Fix: Wait. Do not make additional changes. Lowering TTL before a migration prevents this, but if you’re already in split-brain, just wait 24–48 hours.
Problem 3: Website loads but no images/CSS/formatting
Cause: Your WordPress or CMS is still referencing the old temporary URL or IP address.
Fix:
- WordPress: Go to Settings → General → Update “WordPress Address (URL)” and “Site Address (URL)” to your domain.
- Other CMS: Update
site_urlandhome_urlin configuration files or database.
Problem 4: “SSL certificate error” after pointing
Cause: Your SSL certificate was issued for the temporary domain or an old IP.
Fix: Install a new SSL certificate for your actual domain. Most hosts offer free Let’s Encrypt SSL that auto-updates within minutes of DNS propagation.
Problem 5: You changed nameservers and lost email
Cause: Your email (MX records) was configured at the registrar’s DNS. When you changed nameservers to your host, those MX records didn’t transfer.
Fix: Log into your hosting provider’s DNS management (cPanel or equivalent). Add the MX records from your email provider (Google Workspace, Microsoft 365, Zoho, etc.). If you don’t know them, contact your email provider.
Part 8: The TTL Trick — Make Future Changes Faster
Time-to-Live (TTL) controls how long DNS records stay cached. The default is usually 3600–86400 seconds (1–24 hours).
If you know you’ll be pointing your domain again soon (e.g., migrating between hosts), lower TTL 48 hours in advance:
- Find your A record’s TTL setting (usually in seconds)
- Change from
86400(24 hours) to300(5 minutes) - Save and wait 48 hours (for old TTL to expire)
- Now change your IP address
- Changes will propagate in 5–10 minutes instead of 24 hours
After the migration settles, raise TTL back to 3600 or higher.
This is the senior engineer’s secret. Use it wisely.
Part 9: Quick Reference Command — Verify Without Tools
If you’re comfortable with command line, skip the web tools:
bash
# Check A record (root domain) dig yourdomain.com A # Check nameservers dig yourdomain.com NS # Check from Google's DNS (bypass local cache) dig yourdomain.com A @8.8.8.8 # Windows users (nslookup) nslookup yourdomain.com
When the returned IP address matches your hosting server’s IP, you’re done.
Final Checklist — Did You Do Everything?
- Domain is registered and active (not expired)
- Hosting account is active (not suspended)
- Nameservers OR A record updated correctly
- www subdomain points to same place (or redirects)
- Wait for propagation (1–24 hours)
- SSL certificate installed and active
- CMS URLs updated if needed
- Email MX records verified (if you use custom email)
- Tested on multiple devices/networks
The Bottom Line
Pointing a domain to a hosting server is not magic. It’s just updating an address in a global directory.
- Shared hosting user? Change nameservers (Method A). Takes 5 minutes.
- VPS or cloud user? Change A record (Method B). Takes 5 minutes.
- Something broken? Wait 24 hours before panicking. Propagation takes time.
The single biggest mistake beginners make is changing settings repeatedly because they don’t see immediate results. Don’t do that. Make one change. Wait. Verify. Then celebrate.
Now go point that domain. Your website is waiting to meet the world.
Stuck at a specific step? Drop the exact error message and your registrar/hosting provider in the comments.








