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.

Share this post
7 min read

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 A record points a name to an IP address. Use the host name @ for the main domain.
  • A CNAME record 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.

Names vary by company. Every registrar labels these pages a little differently. Look for words like DNS, Nameservers, Advanced DNS or Zone Editor.

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.

MethodUse it whenWhat you changeTypical wait
NameserversYour host gives nameservers and you want it to run DNSNameservers at the registrar24 to 48 hours
A recordYour host gives an IP addressDNS records for @ and wwwAbout 30 minutes, set by the record wait time
CNAME recordYour host gives a target nameA record on www or a subdomainAbout 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.

30 min to 48 hDigieh compared the official wait times in the Namecheap and Cloudflare guides. Records can update in about 30 minutes, while nameservers can take up to 48 hours.

How Do You Connect a Domain With Nameservers?

This method hands all DNS to your host. Follow these steps in this order.

  1. Add the domain in your hosting panel.
  2. Copy the nameservers from the panel or your welcome email. They look like ns1.examplehost.com.
  3. Log in at your registrar and open the domain settings.
  4. Choose custom nameservers. Enter each one on its own line.
  5. 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.

Protect your email. New nameservers replace every record. Copy your 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.

  1. Open the DNS page where your domain DNS runs. It may be called Advanced DNS or Zone Editor.
  2. Delete old A, CNAME or redirect records on @ and www.
  3. Add a record. Type A, host @, value your server IP.
  4. Add www. Use a CNAME to your domain, or a second A record with the same IP.
  5. Leave the wait time on its default and save.
TypeHostValueWhat it does
A@203.0.113.10 (your host IP)Sends example.com to the server
CNAMEwwwexample.comSends www.example.com to the same place
Ablog203.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 CNAME always points to a name, never to an IP address.
  • A name with a CNAME cannot hold any other record, not even MX or TXT.
  • It works well for www and subdomains, such as blog or shop.
  • Most DNS providers do not allow a CNAME on the root, so use the record your host gives for @.

Source: Cloudflare Learning, alias record guide, read December 3, 2026.

Try this today. Run the record finder above with your host details. Then add only the records it lists.

How Do You Check That the Domain Is Connected?

Give the change time, then test it in a few simple ways.

  1. Open your domain in a private browser window.
  2. Check that it shows your new site, not a parking page.
  3. Test both example.com and www.example.com.
  4. 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

ProblemLikely causeFix
Parking page still showsDefault parking records were left in placeDelete the parking redirect and old records on @ and www
Old site shows on one deviceCached DNS on that device or networkWait for the record wait time, or flush DNS
Email stopped workingNameservers changed without the email recordsAdd the old email records at the new DNS provider
Site loads but warns not secureSSL not issued yet for the domainEnable 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?

  1. A record with host @
  2. Alias (CNAME) record with host @
  3. 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?

  1. Nothing changes
  2. The old email records stop working unless you add them again
  3. 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

Found this useful?

Share this post
Avatar photo

Syed Wasif Raza

Syed Wasif Raza is the founder and editor of Digieh. He writes about health, food, lifestyle, news and sports in plain, easy English. Every guide he publishes is checked against official sources such as government and health agency pages. Connect with him on LinkedIn.

Articles: 1006

Leave a Reply

Your email address will not be published. Required fields are marked *