Connecting a domain to hosting is usually a DNS configuration task, not a domain transfer. This guide explains how to choose between changing nameservers and editing individual records, configure A and CNAME records, protect existing email service, verify propagation, troubleshoot common failures, and maintain a practical review schedule after launch or migration.
Overview
Your domain registrar and hosting provider may be the same company, but they perform different jobs. The registrar manages the domain registration, renewal, ownership, and domain security settings. The hosting provider stores and serves your website. DNS, or the Domain Name System, connects the domain name to the services that answer requests for your website, email, and other systems.
There are two common ways to point a domain to hosting:
- Change nameservers: You delegate DNS management to the hosting provider. The host supplies nameserver addresses, and its DNS dashboard becomes the place where records are managed.
- Edit DNS records: You keep DNS management at the registrar or another DNS provider and add the specific records supplied by the host, usually an A record or CNAME.
Changing nameservers can be convenient when the host is responsible for the complete DNS zone, but it also moves every DNS record under the new provider. Editing individual records gives you more control and can reduce the risk of disturbing existing email, verification, or third-party services. Before making either change, record the current DNS settings and identify which provider currently hosts authoritative DNS.
For a broader reference, see DNS Records Explained: A Setup Table for Websites, Email, Verification, and Redirects.
What to track
1. The hosting instructions
Open the hosting account and find its domain connection or website setup instructions. Note whether it asks for nameservers, an IPv4 address for an A record, an IPv6 address for an AAAA record, or a destination hostname for a CNAME. Do not guess these values. A hosting platform may use a shared address, a dedicated address, or a provider-specific hostname, and the correct choice depends on the account.
2. The current DNS zone
Before editing anything, make a simple inventory of the records already in place:
- A and AAAA: Commonly used for the root domain, such as
example.com. - CNAME: Maps a subdomain, such as
www.example.com, to another hostname. A CNAME generally should not be placed at the same name as an A or AAAA record. - MX: Directs email delivery. These records are especially important when email is hosted separately from the website.
- TXT: Holds verification and email authentication data, including SPF, DKIM, and DMARC-related records.
- NS: Identifies the authoritative nameservers for the domain.
- CAA: Can specify which certificate authorities may issue TLS certificates for the domain.
Save a copy or screenshot of the existing zone, including record names, types, values, and any TTL setting. If you are moving a site, do not delete old records until the new website and dependent services have been tested.
3. The names users will visit
Decide whether the site must work at the root domain, the www hostname, or both. A typical setup sends the root domain to the host with an A record and sends www to the host with a CNAME. Some platforms use a special ALIAS, ANAME, or flattened CNAME function for the root domain. Follow the provider's instructions rather than substituting a record type that the DNS dashboard does not support.
4. Email and other dependencies
Website DNS changes do not automatically require email changes. However, changing nameservers can replace the entire DNS zone. Confirm that MX, SPF, DKIM, DMARC, business verification, payment, analytics, and other service records will be recreated at the new DNS provider before switching nameservers. The guide to SPF, DKIM, and DMARC setup for business email domains is useful when email authentication is part of the launch.
DNS record checklist
| Item | What to confirm |
|---|---|
| Nameservers | Which provider is authoritative for the domain? |
| Root domain | Does the host require an A, AAAA, ALIAS, or ANAME record? |
| www hostname | Should it use a CNAME or another record supplied by the host? |
| Are MX and authentication records preserved? | |
| SSL | Has the domain been added to the host and is HTTPS configured? |
| Testing | Have both root and www versions been tested from more than one network? |
Cadence and checkpoints
Before the change
- Confirm access to both the registrar and DNS management account.
- Check that the domain is not expired, suspended, or locked against the intended change.
- Copy the current DNS zone and list every service that relies on it.
- Build the website on the new host using its temporary URL, preview address, or hosts-file testing method if available.
- Lowering TTL in advance may make later changes easier to revise, but it does not guarantee instant global updates. Apply changes according to the DNS provider's guidance.
During the change
If using individual records, edit only the records needed for the website. For example, update the root A record to the host's supplied address and set the www CNAME to the supplied hostname. If using nameservers, enter the exact pair or set provided by the host at the registrar. Do not mix old and new nameservers unless the DNS provider explicitly instructs you to do so.
Keep a change log with the date, record name, old value, new value, and reason. This makes it easier to identify an accidental edit and supports a clean rollback. The DNS Change Management Checklist provides a more detailed process for planning and reversing record changes.
After the change
Use a DNS propagation checker or command-line tools such as dig and nslookup to query the root domain, www, and any important subdomains. Check more than one resolver or network because cached answers can differ. DNS updates do not arrive everywhere at the same moment; the observed timing depends on previous TTL values, resolver caches, and the type of change.
Test the site over HTTPS, confirm that redirects behave as intended, submit a form, inspect key pages, and check the canonical hostname. Send and receive a test email if nameservers changed. Do not treat one successful browser test as complete verification.
How to interpret changes
A DNS result tells you what a resolver currently knows, not necessarily what every visitor will see. If one resolver returns the new address and another returns the old one, propagation or caching may still be in progress. If all tested resolvers return the old value after the expected cache period, review the authoritative nameservers and record values rather than repeatedly editing the record.
| Symptom | Likely cause | Next check |
|---|---|---|
| Website shows a host parking page | The record points to the wrong destination or the domain is not added to the hosting account. | Compare the record with the host's instructions and confirm the domain is attached. |
| “DNS_PROBE_FINISHED_NXDOMAIN” or similar error | The domain has no valid answer, the nameservers are incorrect, or the record name was entered incorrectly. | Query the authoritative nameservers and check spelling, delegation, and record status. |
| Root works but www fails | The www CNAME or A record is missing, conflicting, or aimed at the wrong hostname. | Check both hostnames separately and remove conflicting records where appropriate. |
| Website works but email stops | MX or email authentication records were omitted during a nameserver change. | Restore the documented mail records and verify the email provider's configuration. |
| HTTPS warning appears | The certificate has not been issued, does not include the hostname, or DNS still points elsewhere. | Confirm DNS, domain attachment, certificate status, and both root and www hostnames. |
Rollback steps
If the change causes an outage, use the saved DNS record inventory. For a record-only change, restore the previous value and monitor the affected hostname. For a nameserver change, return to the previous nameservers only if the old DNS zone and hosting service are still active. Reversing nameservers does not restore records that were never copied to the new provider, so preserve evidence and avoid deleting either DNS configuration until service is stable.
A domain transfer is a separate operation from pointing a domain to hosting. If the registrar itself is changing, keep DNS active during the transfer and follow a documented sequence; see How to Transfer a Domain Safely.
When to revisit
Review DNS after every website launch, hosting migration, domain transfer, rebrand, email-provider change, or new subdomain. A practical quarterly check is also useful for businesses that rarely change their site. Confirm that the registrar account, domain security lock, renewal contact, DNS provider, hosting account, and recovery details are still controlled by the correct people.
At each review, query the important records, test the website over HTTPS, verify that email authentication remains present, and compare the live zone with your change log. Remove obsolete verification records and unused subdomains only after confirming that no active service depends on them. Review DNS sooner if monitoring reports downtime, certificate errors, unexpected redirects, email delivery problems, or an unplanned change.
For a repeatable process, save this checklist with the domain's operational records:
- Record the current nameservers and DNS provider.
- List the root, www, mail, verification, and important subdomain records.
- Confirm the hosting destination and HTTPS status.
- Check the website and email from independent networks.
- Document changes and retain a tested rollback path.
Maintaining this small record of ownership, destinations, dependencies, and recent changes turns DNS management from a one-time launch task into a dependable site-reliability routine.