If you have ever bought domain registration, signed up for web hosting, and then stalled at the DNS screen, this guide is for you. It explains how to point a domain to your host in plain language, shows when to change nameservers versus when to edit individual DNS records, and gives you a reusable checklist for common setups like a new website, a host migration, or a separate email provider. Keep it bookmarked for any future domain management task, because the same few DNS decisions tend to come up every time you launch a website, move hosting, or troubleshoot why a site is not loading.
Overview
Here is the short version: your domain registrar is where your domain name is registered, and your web host is where your site files or application live. To connect the two, you update DNS.
DNS records tell the internet where different services for your domain should go. That might mean sending your website traffic to your host, your email to your mail provider, and a subdomain like blog.example.com to a different platform.
The three DNS concepts most people need first are these:
- Nameservers: These decide which DNS provider controls your domain's DNS zone. If you change nameservers, you usually hand full DNS control to another provider.
- A record: Points a domain or subdomain to an IPv4 server IP address.
- CNAME record: Points one hostname to another hostname instead of directly to an IP.
You may also run into:
- AAAA record: Like an A record, but for IPv6.
- MX record: Sends email for your domain to your email provider.
- TXT record: Often used for verification, email authentication, and security settings.
As a rule, you have two main ways to connect a domain and hosting:
- Change nameservers to your hosting company or DNS provider.
- Keep your current nameservers and edit the DNS records manually.
Neither approach is automatically better. The right one depends on who should control DNS and what other services already rely on your domain.
Use nameservers when: you want one provider to manage most DNS settings, you are starting fresh, or your host gives you a full DNS zone to use.
Use individual records when: you want to keep DNS at your registrar or a dedicated DNS provider, you already have custom email records in place, or you want more control during a migration.
If you are still sorting out what belongs to domain registration and what belongs to web hosting, read Domain vs Hosting: What You Need, What You Can Buy Together, and When to Separate Them.
Checklist by scenario
This section gives you a practical checklist for the setups readers most often need when they connect a domain to a host.
Scenario 1: Point a brand-new domain to a new host
Best when you recently bought a domain name and have not yet set up website or email services on it.
- Log in to your registrar account and confirm you control the domain.
- Log in to your hosting account and find the connection instructions for your domain. Hosts usually provide either nameservers or a combination of A record and CNAME values.
- Choose your method:
- If the host says to use their nameservers, replace the current nameservers at the registrar.
- If the host says to add DNS records, keep your nameservers where they are and enter the provided records.
- If using records, add the root domain A record, often shown as
@, and add thewwwCNAME if required. - Save changes and wait for DNS propagation.
- In your hosting control panel, make sure the domain is added to the correct site, account, or application.
- Test both
example.comandwww.example.com. - Set your preferred canonical version, usually redirecting one version to the other.
- Install or activate SSL once the domain resolves correctly.
This is the cleanest setup because there are usually no existing MX records, TXT records, or legacy subdomains to preserve.
Scenario 2: Move an existing site to a new host without breaking email
This is the scenario where careful domain management matters most. The site is moving, but email must keep working.
- Before changing anything, export or copy your current DNS zone records from the existing DNS provider.
- Identify which records control website traffic, email delivery, email authentication, and any app integrations.
- Make a list of existing records you must preserve, especially MX, SPF, DKIM, and verification TXT records.
- Build the new site on the new host first and test it using the host's temporary URL, preview domain, or hosts file method if available.
- Decide whether to keep your current nameservers. In many migrations, this is safer because you can update only the website records while leaving email untouched.
- Replace the website A record or relevant CNAME with the new host values.
- Confirm that the new host has the domain assigned properly and SSL ready to issue.
- After propagation begins, test the homepage, key pages, login area, forms, and admin paths.
- Check that email still sends and receives normally.
- Only remove old hosting after traffic is clearly resolving to the new environment.
If you change nameservers during a migration, copy every required DNS record first. That includes records unrelated to web hosting. Losing email or verification records is one of the most common avoidable mistakes.
Scenario 3: Connect a domain to hosting when email is handled elsewhere
Many creators and small businesses use one provider for website hosting and another for email. In that case, the domain may need both web records and mail records to coexist.
- Get your website connection values from the host.
- Get your MX, TXT, and any other mail-related records from your email provider.
- Keep DNS at one place if possible, whether that is your registrar or a dedicated DNS provider, so you can manage all records in one zone.
- Add or update the website A record and
wwwCNAME as instructed. - Leave existing MX records intact unless you are intentionally changing email providers.
- Review TXT records to make sure website verification does not overwrite email authentication records.
- Test website access and email delivery separately.
If professional email is part of your launch plan, see How to Set Up Professional Email on Your Domain.
Scenario 4: Point only a subdomain to a different host or platform
This is common for landing pages, stores, help centers, or region-specific sections.
- Decide exactly which hostname you want to point, such as
shop.example.comorblog.example.com. - Get the required DNS target from the platform or host.
- Add either an A record or CNAME for that subdomain.
- Do not change the root domain records unless the whole website is moving.
- Check whether the platform requires domain verification or SSL activation after DNS resolves.
- Test the subdomain directly and confirm there is no conflict with an existing record of the same name.
Subdomain setups are often safer than full domain changes because they isolate the update to one hostname.
Scenario 5: Change nameservers instead of editing records
This can be the simplest route when starting from scratch or moving all DNS control to a new provider.
- Copy your current DNS records before making any change.
- Confirm the new nameserver values exactly as provided by the destination provider.
- At your registrar, replace the existing nameservers with the new ones.
- Save changes and allow time for propagation.
- Once the new nameservers are active, recreate any non-default records that are still needed, if they were not imported automatically.
- Test website, email, subdomains, and any services that use the domain.
Changing nameservers affects the entire DNS zone. Think of it as moving the control panel for your domain's traffic instructions, not just changing one address.
If you are still choosing where to keep your domain registration, this comparison may help: Best Domain Registrars Compared by First-Year Price, Renewal Cost, and WHOIS Privacy.
What to double-check
Before and after any DNS change, review these items. They prevent most setup errors and make troubleshooting much faster.
- Correct record type: An A record is not the same as a CNAME. Enter the type exactly as instructed by the host.
- Correct host or name field: The root domain may be shown as
@, blank, or the full domain depending on the DNS panel. - One record per purpose: Avoid conflicting records for the same hostname, especially a CNAME and another record on the same name.
- WWW behavior: Make sure both the naked domain and the
wwwversion are accounted for. - Email records: Preserve MX and important TXT records when changing website settings.
- TTL expectations: TTL affects caching. Changes may not appear instantly even when entered correctly.
- Hosting-side setup: The domain must often be added inside the hosting account, not just in DNS.
- SSL status: A site may point correctly but still show warnings until certificate issuance completes.
- Propagation patience: Test from more than one network or device before assuming the update failed.
A good practical habit is to keep a simple DNS change log. Record the date, the provider, the old value, the new value, and why you changed it. This makes rollbacks and future edits much easier.
If you are choosing hosting at the same time, these guides can help narrow your setup path: Best Hosting for Small Content Sites and Blogs: Shared, Managed WordPress, or VPS? and Best Domain and Hosting Bundles for First-Time Site Owners.
Common mistakes
Most DNS problems come from a small set of repeated errors. Here are the ones worth checking first.
Changing nameservers when you only needed one record
If your host only asked for an A record or CNAME, changing nameservers may be unnecessary and may disrupt other services attached to the domain.
Forgetting that email uses DNS too
People often think they are changing "just the website," then discover email stopped because MX or TXT records were lost during a nameserver switch.
Using the wrong hostname format
Some DNS panels want only the label, such as www. Others accept the full hostname. Entering the full domain in the wrong panel can create malformed records.
Creating duplicate or conflicting records
A hostname generally should not have a CNAME and an A record at the same time. Conflicts can lead to inconsistent resolution.
Ignoring the hosting dashboard
DNS changes alone do not always complete the setup. Many hosts require you to add the domain to the site, choose it as the primary domain, or verify ownership first.
Testing too early and changing too much
When DNS is propagating, making repeated edits can make troubleshooting harder. Make one planned change, wait, then verify.
Not planning redirects
After the domain resolves, you still need a clean redirect policy between http and https, and between www and non-www. Otherwise users and search engines may see inconsistent versions.
Leaving old records behind after a migration
Unused records can cause confusion later, especially when subdomains or old verification values remain active. Clean up only after you are sure the new setup is stable.
If budget is part of your launch decision, you may also want to compare long-term costs rather than just intro offers: Best Cheap Domains for New Sites: Low Intro Pricing vs Real Long-Term Cost and How Much Does a Domain Name Cost? Registration, Renewal, Transfer, and Add-On Fees.
When to revisit
DNS is not a one-time task. Revisit this checklist whenever one of these inputs changes:
- You switch web hosting providers.
- You launch a second site or store on a subdomain.
- You move email to a new provider.
- You transfer domain registration to a new registrar.
- You add CDN, security, or managed DNS services.
- You rebrand and redirect one domain to another.
- You notice SSL, email, or routing problems after a platform change.
- You are doing seasonal planning and want to audit your site infrastructure before a campaign or publishing push.
For a practical maintenance routine, use this five-step review before any future DNS change:
- Map the services: website, email, subdomains, app integrations, and redirects.
- Export the current zone: save a copy of existing DNS records before editing anything.
- Choose the least disruptive change: update one record if that is enough; change nameservers only when it serves a clear purpose.
- Test in layers: website first, then SSL, then email, then subdomains and forms.
- Document the final state: keep a simple record so the next move is easier.
If you treat DNS as a reusable system rather than a one-off hurdle, it becomes much easier to launch a website, change hosts, or grow into a more complex setup later. The main decision is simple: decide who should control DNS, update only the records you need, and protect anything else already using the domain.
That is the real launchpad for domain management: fewer surprises, cleaner migrations, and a setup you can understand well enough to fix the next time something changes.