Connecting a domain to web hosting is usually a DNS configuration task, but changing the wrong record can interrupt a website, email, or another service. This guide explains how to choose between nameservers and individual DNS records, prepare a change safely, account for TTLs and propagation, and verify the result without losing track of existing services.
Overview
When you buy a domain name and a hosting plan from different providers, the domain registrar needs to know where website traffic should go. That instruction is stored in the domain’s DNS records. Your registrar may provide DNS management, or DNS may be managed by your hosting company, a CDN, an email provider, or another DNS service.
There are two common ways to connect a domain to web hosting:
- Change nameservers: delegate DNS management to the hosting provider. The provider then supplies the authoritative DNS zone and records.
- Change individual records: keep DNS at its current provider and update only the records needed for the website, such as an A, AAAA, or CNAME record.
Neither approach is universally better. Nameserver changes are often simpler for a new domain with no existing services. Individual record changes are usually safer when the domain already supports business email, verification records, subdomains, or third-party applications. Before editing anything, identify where DNS is currently managed and record the existing zone.
For a broader launch plan, use this website hosting migration checklist. It covers related tasks that DNS alone does not address, such as content, databases, redirects, and downtime planning.
What to track
Nameservers versus individual records
| Method | What changes | Best suited to | Main risk to check |
|---|---|---|---|
| Nameservers | The domain delegates its DNS zone to the hosting provider. | New websites or domains with no important existing DNS services. | The new DNS zone may not include existing email, verification, or subdomain records. |
| A record | The hostname points to an IPv4 address. | A website with a stable IPv4 hosting address. | Using an old, shared, or incorrect address. |
| AAAA record | The hostname points to an IPv6 address. | Hosting that explicitly provides IPv6 connectivity. | Adding an incorrect or nonworking IPv6 address can affect users on IPv6 networks. |
| CNAME record | A hostname points to another hostname rather than directly to an IP address. | Many hosted platforms, CDNs, and subdomains. | A CNAME is generally used for a hostname such as www, not the bare domain at the zone apex. |
Use the exact values supplied by your hosting provider. Control panels may label fields differently: “Host,” “Name,” or “Record” can refer to the hostname; “Value,” “Target,” or “Points to” can refer to the destination. A blank host field, an at-sign (@), or the full domain name may represent the root domain, depending on the DNS interface.
Preserve email and other services
Website records are only one part of DNS. Email commonly depends on MX records plus SPF, DKIM, and DMARC records. Removing these while pointing a domain to new hosting can leave the website working but interrupt mail delivery or authentication. Before a nameserver change, copy every existing record into a worksheet and confirm that the new DNS provider supports the record types you need.
For a focused reference, see Business Email DNS Records Explained. Also check records used for domain verification, calendars, APIs, staging sites, and subdomains such as app, api, or www.
A practical DNS change worksheet
Complete this worksheet before making the change:
- Registrar: Where the domain is registered.
- Current DNS provider: The nameservers currently published for the domain.
- New hosting provider: The host receiving website traffic.
- Root domain target: The required A, AAAA, or provider-specific target.
- www target: The required CNAME or address for
www.example.com. - Email records: MX, SPF, DKIM, and DMARC values that must remain available.
- Other records: Subdomains, verification records, TXT entries, and service-specific records.
- Current TTLs: The existing time-to-live values for records you plan to change.
- Rollback values: The previous records and the time they were captured.
Cadence and checkpoints
DNS changes are not a one-time task if you manage active websites. Use a simple checkpoint process whenever you launch a site, move hosts, add a service, or review a domain portfolio.
- Before the change: Confirm the hosting destination, back up the current DNS zone, lower the relevant TTL if your provider permits and your change window allows it, and verify that the new website works on a temporary hosting URL or preview address.
- At the change: Edit only the necessary records. If using nameservers, recreate required email and service records in the new zone before delegation. Avoid changing unrelated records during the same window.
- Immediately after: Confirm that the registrar accepted the nameserver update or that the DNS provider saved the record. Check the zone for duplicate A, AAAA, or CNAME records that could produce inconsistent results.
- During propagation: Test from more than one network or use a DNS lookup tool to compare answers from different resolvers. Do not assume that one local result represents every user.
- After stabilization: Test the root domain,
www, important subdomains, HTTPS, and email sending and receiving. Restore a normal TTL if you lowered it, then document the final configuration.
Propagation does not happen on a single universal schedule. Resolvers and client systems may continue using cached answers until the applicable TTL expires, while a nameserver delegation can involve additional cached information. A DNS propagation checker is useful for comparison, but it is an observation tool rather than a guarantee that every network has updated.
If the new site is part of a larger deployment, pair DNS checks with an application preflight and rollback plan using this cloud hosting deployment workflow.
How to interpret changes
Different symptoms usually point to different layers of the setup:
- The domain shows an old website: Some resolvers may still have the previous address cached, or the old server may still be receiving traffic. Compare DNS answers from multiple networks and check the authoritative zone.
- The domain does not resolve: Check nameserver spelling, delegation status, record names, and whether the DNS zone exists at the active provider.
- The root domain works but www does not: The
wwwrecord may be missing, misnamed, or pointing to a different destination. - Some visitors cannot connect: Review both A and AAAA records. If an AAAA record points to an address where the site is not configured, IPv6-capable users may experience a different result from IPv4 users.
- The website works but email fails: Check MX records first, then SPF, DKIM, and DMARC. A website record change does not replace the records required by your email provider.
- HTTPS warnings appear: Confirm that the certificate covers the hostname being visited and that the hosting platform has completed its certificate setup. DNS pointing alone does not guarantee an SSL certificate for the website.
When troubleshooting, change one variable at a time and save lookup results with a timestamp. This makes it easier to distinguish cached DNS data from a configuration error. Avoid repeatedly changing records while waiting; frequent edits make the final state harder to identify and can extend troubleshooting.
When to revisit
Review this setup at least quarterly for important domains, and always revisit it before or after a hosting migration, domain transfer, email provider change, CDN adoption, or major application deployment. A monthly review may be appropriate for domains supporting frequently changing infrastructure.
At each review, confirm that:
- The registrar account, DNS provider, and hosting account are still under the correct ownership.
- Nameservers point to the intended DNS provider.
- A, AAAA, and CNAME records match the current hosting architecture.
- Email records still match the current mail provider.
- Unused subdomains and verification records have been removed or documented.
- DNS changes are recorded with an owner, date, purpose, and rollback value.
- Website uptime, HTTPS, and email delivery have been tested rather than assumed.
Keep the final DNS worksheet with your domain renewal and security records. The domain and website security checklist can help extend the review to account protection, SSL, and DNS security. If you are moving between hosting providers, also compare the configuration against the cloud hosting backup and restore checklist.
The safest approach to connecting a domain to hosting is deliberate rather than hurried: identify the active DNS provider, preserve records that other services need, apply the smallest necessary change, check results from multiple viewpoints, and document the final state. Reusing that process makes future launches, subdomains, and host changes easier to verify and easier to reverse.