Connect domain to hosting: step-by-step guide
Last updated: 31 December 2025
You've registered a domain and bought a hosting package - but how do you connect them? In this guide, we explain step by step how to link your domain to your hosting so your website goes live.
Domain vs hosting: what's the difference?
Before we start, the basics:
- Domain: Your website address (example.nl) - registered at a registrar
- Hosting: The server where your website files are - rented from a hosting provider
- DNS: The system that connects domain and hosting
Your domain tells browsers where to look, your hosting delivers the actual website.
Option 1: Change nameservers (recommended)
The most common method. You set your hosting provider's nameservers at your domain registrar.
Step 1: Find your hosting nameservers
Log in to your hosting provider and find the nameservers. Usually found in:
- Welcome email
- Control panel under "DNS" or "Domain"
- Helpdesk/documentation
Examples of nameservers:
ns1.hostingprovider.nl
ns2.hostingprovider.nl
Step 2: Change nameservers at your registrar
- Log in to your domain registrar
- Go to domain settings or DNS management
- Look for "Nameservers" or "DNS servers"
- Replace current nameservers with those from your hosting
- Save
Step 3: Wait for propagation
DNS changes need time to propagate worldwide:
- Usually 1-4 hours
- Maximum 24-48 hours
- During this period your site may be unreachable
Tip: Check propagation via whatsmydns.net
Option 2: Set A-record
If you want to keep nameservers at your registrar, you can set an A-record.
Step 1: Find your hosting IP address
Your hosting provider gives you your server's IP address. It looks like:
123.45.67.89
Step 2: Set the A-record
- Log in to your registrar
- Go to DNS management
- Find or create an A-record for "@" (root domain)
- Enter the IP address
- Also create an A-record for "www"
When to use A-record?
- If you use extra DNS services from your registrar
- If you want multiple subdomains pointing to different servers
- If you use a CDN or firewall service
Option 3: CNAME-record (for subdomains)
CNAME records are used to connect subdomains.
blog.example.nl → example.nl
shop.example.nl → shops.hostingplatform.com
Useful for:
- Subdomains pointing to external services
- When the IP address may change
Common problems
"Website not reachable"
Possible causes:
- DNS propagation still in progress (wait 24-48 hours)
- Wrong nameservers or IP address entered
- Hosting not yet configured
Solution: Check your settings and wait for propagation. Test with a different internet connection.
"Domain works, www doesn't (or vice versa)"
Cause: Missing DNS record for www or root.
Solution: Ensure you have both the "@" record and the "www" record set.
"SSL certificate doesn't work"
Cause: SSL often needs to be requested again after DNS change.
Solution: Request a new SSL certificate via your hosting provider.
After connecting
Once your domain is connected:
- Test the website - Does everything work correctly?
- Test email - If email runs through the domain, check MX records
- Set up SSL - Request an SSL certificate
- 301 redirect - Redirect www to non-www (or vice versa) for SEO
Frequently asked questions
How long until my domain works? After DNS change 1-48 hours. Usually visible within a few hours.
Can I have domain and hosting at different parties? Yes, that's fine. You connect them via nameservers or DNS records.
What are MX records? MX records are for email. They determine which server receives email for your domain.
Will I lose my website when changing DNS? Temporarily the site may be unreachable during propagation. Ensure your hosting is already configured before changing DNS.
Also read about setting up subdomains if you want to run multiple sites under one domain.
Was this article helpful?
Compare hosting packages directly to find the best choice for your situation.
Related articles
What is web hosting? Explanation for beginners
Discover what web hosting is and how it works. Complete explanation about servers, domains and different hosting types for beginners.
What is VPS Hosting?
VPS hosting explained: what is a Virtual Private Server, who is it suitable for and what are the advantages compared to shared hosting?
What is an SSL Certificate?
Everything about SSL certificates: what is SSL, why do you need it and how do you recognize a secure website? Essential for every website.
What is Uptime in Web Hosting?
What does uptime mean in web hosting? Learn about uptime percentages, SLA guarantees and why 99.9% uptime is important for your website.
How much storage do I need for my website?
Discover how much disk space you really need for your website. Practical guide with examples per website type.