How to Connect a Domain to Web Hosting
Connect a domain to hosting with nameservers, an A record or a CNAME. Our free record finder lists the exact records, keeps email safe and fixes delays.

Last updated December 3, 2026
To connect a domain to hosting, add the domain in your hosting panel first. Then, at your registrar, set the host nameservers or add an A record with the host IP.
Nameserver changes can take up to 48 hours. Record changes often show in about 30 minutes.
Key Takeaways
- Always add the domain at your host first, then change the domain settings.
- Nameservers move every record, including email. Copy your email records first.
- An
Arecord points a name to an IP address. Use the host name @ for the main domain. - A
CNAMErecord points a name to another name, never to an IP. - Delete old parking records, or your domain may keep showing a parking page.
Domain to hosting record finder
Answer three questions. The tool lists the exact records to add and the safe order.
Digieh tool. Record rules checked against Namecheap and Cloudflare pages on December 3, 2026.
What Does Connecting a Domain to Hosting Mean?
Your domain and your hosting are often two separate services. The domain is the name people type. The hosting is the computer that stores your site.
The Domain Name System (DNS) links the two. It tells browsers which server answers for your name.
You connect them by changing one of two things. You either hand the whole DNS job to your host, or you add records that point to it.
- Registrar: the company where you bought the domain.
- DNS provider: the company whose nameservers answer for the domain. This is often the registrar or the host.
- Host: the company that runs the server for your website.
Which Method Should You Use?
Pick the method from what your host gave you. The table below sums up the three common cases.
| Method | Use it when | What you change | Typical wait |
|---|---|---|---|
| Nameservers | Your host gives nameservers and you want it to run DNS | Nameservers at the registrar | 24 to 48 hours |
| A record | Your host gives an IP address | DNS records for @ and www | About 30 minutes, set by the record wait time |
CNAME record | Your host gives a target name | A record on www or a subdomain | About 30 minutes, set by the record wait time |
Sources: Namecheap knowledge base and Cloudflare Learning, alias record guide, read December 3, 2026.
Nameservers are the easiest path for shared hosting. Records are better when you want to keep DNS and email where they are now.
How Do You Connect a Domain With Nameservers?
This method hands all DNS to your host. Follow these steps in this order.
- Add the domain in your hosting panel.
- Copy the nameservers from the panel or your welcome email. They look like ns1.examplehost.com.
- Log in at your registrar and open the domain settings.
- Choose custom nameservers. Enter each one on its own line.
- Remove the old nameservers and save.
Namecheap says custom nameservers take about 24 to 48 hours to spread. During that time, some visitors may still see the old site.
MX and TXT records first, then add them at the new host.Source: Namecheap, connect a domain to a server or hosting, read December 3, 2026.
Free updates
Join the Digieh list
Be the first to know when our weekly brief launches.
No spam. Unsubscribe anytime. Read our Privacy Policy.
How Do You Point a Domain With an A Record?
Use this method when your host gives an IP address. Your DNS and email stay where they are.
- Open the DNS page where your domain DNS runs. It may be called Advanced DNS or Zone Editor.
- Delete old
A,CNAMEor redirect records on @ and www. - Add a record. Type
A, host @, value your server IP. - Add www. Use a
CNAMEto your domain, or a secondArecord with the same IP. - Leave the wait time on its default and save.
| Type | Host | Value | What it does |
|---|---|---|---|
| A | @ | 203.0.113.10 (your host IP) | Sends example.com to the server |
CNAME | www | example.com | Sends www.example.com to the same place |
| A | blog | 203.0.113.10 (your host IP) | Sends blog.example.com to the server |
Source: host names from Namecheap knowledge base, read December 3, 2026. The IP is an example value.
An A record holds a version 4 address. For a version 6 address, use an AAAA record instead.
The TTL value is the time to live, in seconds. It sets how long old answers stay cached. Cloudflare lists 14,400 seconds as a common default.
Source: Cloudflare Learning, DNS A record, read December 3, 2026.
When Should You Use a Canonical Name (CNAME) Record?
Use a CNAME when your host gives a target name instead of an IP. Site builders and store platforms often work this way.
- A
CNAMEalways points to a name, never to an IP address. - A name with a
CNAMEcannot hold any other record, not evenMXorTXT. - It works well for www and subdomains, such as blog or shop.
- Most DNS providers do not allow a
CNAMEon the root, so use the record your host gives for @.
Source: Cloudflare Learning, alias record guide, read December 3, 2026.
How Do You Check That the Domain Is Connected?
Give the change time, then test it in a few simple ways.
- Open your domain in a private browser window.
- Check that it shows your new site, not a parking page.
- Test both example.com and www.example.com.
- Send a test email to and from the domain if you use email on it.
If your computer still shows the old site, clear its saved DNS. Our guide to the DNS server not responding error shows how to flush it on Windows.
Once the site loads, turn on SSL in your hosting panel so the address shows a padlock.
Common Problems and Fixes
| Problem | Likely cause | Fix |
|---|---|---|
| Parking page still shows | Default parking records were left in place | Delete the parking redirect and old records on @ and www |
| Old site shows on one device | Cached DNS on that device or network | Wait for the record wait time, or flush DNS |
| Email stopped working | Nameservers changed without the email records | Add the old email records at the new DNS provider |
| Site loads but warns not secure | SSL not issued yet for the domain | Enable SSL in the hosting panel after DNS points correctly |
Source: parking records from Namecheap knowledge base, read December 3, 2026.
Stuck in a loop after the move? Read how to fix too many redirects in WordPress.
Padlock missing on some pages? See our fix for mixed content in WordPress.
Launching a new WordPress site on the domain? Our WordPress Launch Kit has a 60-point launch checklist for the first week.
Which method will you use to connect your domain?
- Nameservers
- A record
- Alias (CNAME) record
- Not sure
Next step after the domain works: install free SSL on WordPress and switch the site to HTTPS.
Test Yourself
Which record should point the main domain to an IP address?
- A record with host @
- Alias (CNAME) record with host @
- Email record with host www
An A record maps a name to a version 4 IP address. The host @ means the main domain.
What happens to email when you switch nameservers?
- Nothing changes
- The old email records stop working unless you add them again
- Email moves on its own
New nameservers answer for every record, so copy the email records first.
Frequently Asked Questions
How long does it take to connect a domain to hosting?
Record changes often show in about 30 minutes. Nameserver changes can take 24 to 48 hours to reach every network.
Should I change nameservers or add an A record?
Change nameservers if you want the host to run everything. Add an A record if you want to keep DNS and email where they are.
Can I connect a domain bought from one company to hosting at another?
Yes. You only change the nameservers or DNS records at the registrar. You do not need to move the domain.
Why does my domain still show a parking page?
The default parking records are still there, or DNS has not updated yet. Delete old records and wait.
Conclusion
Add the domain at your host, then use nameservers, an A record or a CNAME. Copy email records before a nameserver switch, then wait and test.
Editor’s Note
This guide is accurate as of December 3, 2026. We checked every record rule against the Namecheap and Cloudflare pages linked above on that date.
Spot an error in this article? Please contact us at support@digieh.com or read our Corrections Policy.
Keep exploring
Your next read is waiting
1BusinessMileage Log Template 2026: Free Tracker and Rates7 min read
2AI & TechHow to Transfer Photos From iPhone to PC7 min read
3Visas & PassportsSchengen Visa Fee 2026: Official Costs and Calculator7 min read
4FashionUS to UK Shoe Size Converter and Chart6 min read
5EntertainmentSpotify Premium Price by Country: 18 Plans Listed6 min read
6Home & KitchenRepair or Replace a Dryer: Free Decision Calculator7 min readFound this useful?












