How to Connect Your Domain to Your Website (Nameservers and DNS Records)

By NorthForger Editorial — researched and drafted with AI assistance from published sources; edited and published by NorthForger · Editorial policy
The Short Answer
Connecting a domain to your website means telling the internet which server should answer when someone types your domain. You do this one of two ways: point your domain's nameservers at your host, or leave your registrar's nameservers in place and add DNS records that point to your host. Either works; which you use depends on where you want to manage DNS. Connecting a store rather than a site? The ecommerce domain guide lists Shopify's exact records.
The change itself is simple. The only thing that catches people out is propagation — the delay before it takes effect everywhere.
First, the Vocabulary
Registrar — where you bought the domain (Namecheap, EuroDNS, Dynadot). Our registrar rankings cover the options.
Host — where your website's files actually live. See our best web hosting guide.
Nameservers — the DNS servers that hold the authoritative records for your domain and answer "where does this domain point?"
DNS records — the individual instructions. The two that matter for connecting a site are the A record (points a domain to an IP address) and the CNAME (points a name to another name). Our DNS explained guide goes deeper.
Method 1: Point Your Nameservers at Your Host
Your host gives you two or more nameservers (often something like ns1.yourhost.com). You log into your registrar, replace the default nameservers with your host's, and save.
From then on, your host manages all DNS for the domain. This is the simplest method for beginners because the host handles the records for you — and many builders and managed hosts, like 10Web or Bluehost, configure everything automatically once the nameservers point their way.
Use this when: you want your host to manage DNS and you do not need registrar-side email or other records.
Method 2: Keep Registrar DNS and Add Records
Leave the registrar's nameservers in place and add records manually:
- An A record for your root domain (the "@" or blank host) pointing to your host's IP address.
- A CNAME for "www" pointing to your root domain.
This keeps DNS management at your registrar, which is convenient if you also run email or other services there and want everything in one panel.
Use this when: you want to manage DNS at the registrar, or you route the domain through a CDN.
The two methods side by side
| Nameservers at your host | Records at your registrar | |
|---|---|---|
| What you change | The domain's nameservers | An A record for the root and a CNAME for www |
| Who manages DNS afterwards | The host | The registrar |
| Email and other records | Must be re-created at the host | Stay where they are |
| Typical delay before it works | Longer: nameserver records are cached for longer | Shorter, if the old records had a short TTL |
| Best for | Beginners, managed hosts and builders | Domains with email or several services already set up |
You can check which method a domain currently uses with our WHOIS lookup: the nameservers it lists tell you which company holds the DNS.
The Step-by-Step
1. Get the target from your host — either its nameservers (Method 1) or the server IP address (Method 2). 2. Log into your registrar and open the domain's DNS or nameserver settings. 3. Apply the change — swap the nameservers, or add the A and CNAME records. 4. Wait for propagation. How long depends on the TTL of the record being replaced, explained below. 5. Verify. Once propagated, your domain loads your site. Add SSL and force https — our SSL certificate guide explains how.
Why propagation takes as long as it does: a real example
"Propagation" is really caching. Every DNS answer carries a TTL, a number of seconds for which resolvers may reuse it. A resolver that looked your domain up just before you made a change can keep serving the old answer until that TTL runs out.
This site's own records, as returned by the public resolver 1.1.1.1 on 16 October 2026, show the difference:
| Record | TTL returned | Worst case after a change |
|---|---|---|
| A (IPv4 address) | 300 seconds | About 5 minutes for a resolver that had just cached it |
| AAAA (IPv6 address) | 300 seconds | About 5 minutes |
| NS (nameservers) | 86,400 seconds | Up to a day |
So editing an A record behind a short TTL is quick, while switching nameservers can take up to a day for some visitors, because the old nameserver answer is cached far longer. The practical trick: a day or two before a planned change, lower the TTL on the records you will edit, make the change, and raise the TTL again afterwards. What DNS is and how it works explains TTL in more detail.
Common Pitfalls
Impatience. If the site does not load immediately, that is usually propagation, not a mistake. Give it time before changing anything else.
Editing DNS in two places. If you switch nameservers to your host (Method 1), records you add at the registrar no longer apply. Manage DNS in one place only.
Forgetting email. If you move nameservers to a new host, your MX (mail) records move too. If you use email on the domain, re-create the MX records at the new host or your mail stops. Setting up email? Spaceship's email hosting is an example of a tidy registrar-side option.
Not doing www and root. Configure both the root domain and the www version so visitors reach you either way.
If You Are Starting from Scratch
If you have not registered the domain yet, do that first — our tutorial on registering your first domain walks through it — then come back here to connect it. And if you are still choosing a name, our how to choose a domain name guide is the place to begin.
Frequently asked questions
What are the two ways to connect a domain to a website?
You can connect a domain by pointing your domain nameservers directly at your host, or by leaving your registrar nameservers in place and manually adding DNS records. Both methods work; which you choose depends on whether you prefer your host or your registrar to manage your domain DNS.
Which DNS records are used when keeping registrar nameservers?
When keeping registrar nameservers, you manually add an A record for your root domain pointing to your host IP address. You also add a CNAME record for www pointing to your root domain. This keeps DNS management at your registrar, which is convenient if you run email or other services there.
How long does DNS propagation take to complete?
It depends on the TTL of the records you replaced. An A record with a five-minute TTL updates for most visitors within minutes; a nameserver change can take up to a day because nameserver answers are cached longer (86,400 seconds in our own lookup on 16 October 2026). If the site does not load straight after saving, wait at least the old TTL before changing anything else.
What happens to domain email when nameservers are moved to a host?
When you move your nameservers to a host, your MX records move too. If you use email on the domain, you need to re-create the MX records at the new host, or your mail stops. This avoids losing your email service after changing where you manage DNS.
The Bottom Line
Connecting a domain to a site is a five-minute task followed by a waiting game. Pick one method — nameservers for simplicity, registrar DNS records for control — apply it in one place, and let propagation finish. Then add SSL, confirm both www and root resolve, and you are live.
For keeping the connection private on the networks you manage your registrar and host from, our sister site vpntex.com covers the VPN side.
Related reading: How to Set Up DNS Records: A, CNAME, MX and TXT Step-by-Step
Last updated:





