Pointing a domain to a website means directing DNS traffic to the server or platform that hosts the site. This reusable checklist explains when to change nameservers, when to edit A or CNAME records, how to verify ownership, how to protect email, and how to roll back safely if the connection does not work as expected.
Overview
A domain name and a website are separate parts of a web presence. The domain is registered with a registrar, while the website may be hosted by a shared hosting provider, cloud hosting company, managed WordPress platform, website builder, or another service. DNS records connect the two.
Before making a change, identify where DNS is currently managed. It may be the domain registrar, the hosting provider, a dedicated DNS service, or a security and performance platform. The account that contains the domain is not always the account that controls its DNS records.
There are two main ways to connect a domain to hosting:
- Change nameservers: Point the domain's DNS management to the hosting provider. The provider then manages the zone and records.
- Edit DNS records: Keep DNS at its current provider and add or change specific records, usually an A record for the root domain and a CNAME record for
www.
Changing nameservers is often simpler when the hosting provider supplies a complete DNS setup. Editing individual records offers more control and can reduce disruption when the domain already supports email, verification services, subdomains, or other systems. For background on record types, see DNS Records Explained: A Reference Guide to A, CNAME, MX, TXT, and More.
Provider-neutral decision table
| Situation | Usually consider | Important check |
|---|---|---|
| A new site and no important DNS records | Changing nameservers may be the simplest route | Confirm every required record is recreated at the new DNS provider |
| Email is already working on the domain | Edit only the website records | Do not remove MX, SPF, DKIM, or DMARC records |
| A website platform gives an IP address | Add or update an A record | Confirm whether the root domain uses an empty host field or a provider-specific label |
| A website platform gives a hostname | Add or update a CNAME record | Check whether the record applies to www, the root domain, or a subdomain |
| You are moving DNS management | Copy the existing zone before changing nameservers | Compare the old and new records line by line |
Checklist by scenario
Scenario 1: Connect the domain by changing nameservers
- Sign in to the hosting or website platform and add the domain to the site.
- Locate the provider's authoritative nameservers. Copy them exactly, including any required punctuation or additional nameserver entries.
- Sign in to the domain registrar and open the domain's nameserver settings.
- Save a copy of the current DNS records before replacing the nameservers. Include A, AAAA, CNAME, MX, TXT, and any records used for subdomains or verification.
- Replace the existing nameservers with the provider's nameservers. Do not change the domain's registration or transfer settings unless that is a separate goal.
- Return to the website platform and complete its verification step.
- After DNS updates become visible, test both the root domain and the
wwwversion if both are intended to work.
When nameservers change, the new DNS provider becomes responsible for the domain's full DNS zone. If you do not recreate email and verification records, those services may stop working even if the website loads correctly.
Scenario 2: Connect the domain by editing A and CNAME records
- Open the DNS manager for the domain's current provider.
- Add the domain to the hosting or website platform so it can display the required values.
- Record the requested host, record type, destination, and any stated TTL guidance.
- For the root domain, add or update the required A record if the platform supplies an IP address. Some providers use a different method for root domains, so follow the platform's exact requirement.
- For
wwwor another subdomain, add or update the requested CNAME if the platform supplies a hostname. - Remove conflicting duplicate records only after confirming what the existing records support. Multiple A or CNAME records can produce unexpected results, and a CNAME generally should not share a host with other record types.
- Save the records and return to the platform's verification screen.
Keep email records separate from website records. A website connection normally does not require changing MX records. If the domain also handles business email, review the SPF, DKIM, and DMARC configuration guide before editing TXT or MX records.
Scenario 3: Verify ownership or connect a subdomain
A platform may ask for a TXT record to prove domain ownership. Add the TXT value at the exact host requested, then leave it in place until verification completes. Some services also use a CNAME for verification. Do not substitute one record type for another unless the platform explicitly permits it.
For a subdomain such as shop.example.com, create the record using the subdomain label requested by the DNS provider. The main website at example.com can remain unchanged. Test the subdomain independently and confirm that its SSL certificate is issued for the correct hostname.
DNS change worksheet
| Item | Value to record before changing anything |
|---|---|
| Domain | example.com |
| DNS provider | Registrar, host, or other service |
| Root website record | Type, host, destination, and TTL |
www record | Type, host, destination, and TTL |
| Email records | All MX, SPF, DKIM, and DMARC values |
| Verification records | TXT or CNAME values for connected services |
| Rollback information | Previous nameservers or previous record values |
What to double-check
Propagation and verification
DNS changes do not appear everywhere at the same moment. Resolvers may continue using cached information until the relevant cache period expires. Treat the provider's verification status and independent DNS checks as separate signals: a platform may verify before every user sees the new destination, or it may take longer to detect a change.
- Check the root domain and
wwwseparately. - Test from more than one network or resolver when practical.
- Confirm that the returned record matches the intended IP address or hostname.
- Use a private browser window or a different device to reduce confusion from browser cache.
- Allow time for caching before repeatedly changing records.
SSL, redirects, and site behavior
Once DNS points to the new site, confirm that the SSL certificate covers every hostname visitors use. Test http and https, the root domain and www, and any planned subdomains. Check that redirects lead to the intended canonical address rather than creating a loop.
Also review the website's application settings. Content management systems may store the site URL, trusted domains, or callback URLs separately from DNS. A correct DNS record does not by itself guarantee that the application accepts the new domain.
Rollback plan
Before making changes, save screenshots or an exported copy of the current DNS zone. If the new connection causes an outage, restore the previous nameservers or record values, depending on what changed. Make one controlled rollback rather than editing several records at once. Then identify whether the problem is DNS, hosting, SSL, application configuration, or a missing email record.
Common mistakes
- Changing nameservers without copying email records: The website may work while email stops receiving messages.
- Editing DNS at the wrong provider: Confirm which nameservers are authoritative before making a change.
- Using the wrong host value: A DNS editor may expect
@, a blank field, or only the subdomain label. Use the editor's stated format. - Leaving conflicting records in place: Remove only records that conflict with the new setup, and preserve unrelated services.
- Expecting an immediate global result: Caches can make old and new destinations appear at the same time during the transition.
- Forgetting alternate hostnames: Test both the root domain and
wwwif both are published. - Changing DNS during an unplanned migration: If the hosting provider is also changing, use a written migration checklist and confirm backups first. See the website migration checklist for a broader process.
When to revisit
Keep this checklist with the domain's operational records and revisit it whenever the website, DNS provider, or connected services change. It is especially useful before a new site launch, hosting migration, domain transfer, email-provider change, or subdomain rollout.
Review the process before seasonal planning cycles if the site is expected to receive higher traffic or support a campaign. Confirm that the domain is renewed, DNS access is available to the right administrators, backups are current, and the rollback values are still documented. The domain renewal and expiration checklist can help with the registration side of that review.
When a hosting or website platform changes its setup flow, refresh the provider-specific values in your worksheet rather than relying on an old screenshot. Before acting, complete these final checks:
- Identify the authoritative DNS provider.
- Export or record the existing DNS zone.
- Confirm whether nameservers or individual records should change.
- Protect MX, SPF, DKIM, DMARC, verification, and subdomain records.
- Record the new values and the rollback values.
- Verify the root domain,
www, SSL, redirects, email, and the application itself.
With those steps documented, connecting a domain to hosting becomes a controlled website-launch task rather than a trial-and-error change.