Pointing a domain to cloud hosting is usually straightforward, but changing the wrong DNS record can interrupt a website, email service, or verification workflow. This guide provides a repeatable process for connecting a domain to a new host while preserving email, checking SSL, documenting changes, and reviewing the setup after launch.
Overview
When you connect a domain to cloud web hosting, you are directing DNS queries to the systems that serve your website. The domain registrar, DNS provider, hosting platform, and email provider may be four separate services, so the task is not always completed by changing one setting in one dashboard.
Before making changes, identify where DNS is managed. Look at the domain's assigned nameservers in the registrar account. If the nameservers point to the registrar, DNS records are probably managed there. If they point to a dedicated DNS hosting service or a previous host, make changes in that provider's DNS zone instead. Changing records in the wrong dashboard will have no effect.
There are two common connection methods:
- Change nameservers: You delegate the entire DNS zone to the cloud hosting provider. This can be convenient when the host supplies the complete zone and you are comfortable moving all DNS management.
- Keep existing nameservers and edit records: You leave DNS with the current provider and update only the website records. This is often the safer option when email, subdomains, verification records, or other services already depend on the existing DNS zone.
For either method, make a copy of the current DNS records before changing anything. A DNS reference covering A, AAAA, CNAME, MX, TXT, and other records can help you identify what each entry does.
What to track
1. The hosting destination
Obtain the exact destination supplied by your cloud host. This may be an IPv4 address for an A record, an IPv6 address for an AAAA record, or a hostname for a CNAME record. Do not substitute a guessed address. Hosting platforms can use different values for the root domain and for the www subdomain.
A typical arrangement might look like this, but the values are examples only:
- Root domain: an A record pointing to the hosting platform's IPv4 address.
- www: a CNAME pointing to the hostname supplied by the host.
- Other subdomains: separate records pointing to the services that own them.
Some DNS providers do not support a traditional CNAME at the root domain and instead offer an ALIAS, ANAME, or flattened CNAME feature. Follow the terminology and instructions of the DNS provider rather than creating conflicting records.
2. Existing email records
Email is separate from website hosting. The MX records should continue pointing to your email provider unless you are intentionally moving email as well. Also preserve related TXT records, including sender-authentication or service-verification entries required by your provider. Do not delete MX, SPF, DKIM, or DMARC records simply because the website is moving.
If you change nameservers, you must recreate every required email record in the new DNS zone before delegation takes effect. Ask the email provider for its current setup values rather than relying on an old screenshot or memory. For a broader domain and email setup review, use the website launch checklist for small businesses.
3. TTL and change timing
TTL, or time to live, influences how long resolvers may cache a DNS answer. Before a planned migration, you may choose a shorter TTL on records you expect to change, provided the DNS provider permits it. This does not make every resolver update immediately, because previously cached answers can remain available until their existing cache period ends.
Record the old value, the new value, the change time, and the person responsible. A simple change log is especially useful for teams managing several domains or cloud environments.
4. SSL and application settings
DNS can direct visitors to the correct server, but the website must also be configured to answer for the domain. Add the domain and any required subdomains in the hosting dashboard, install or issue an SSL certificate, and configure the application to recognize the correct hostname. Review redirect rules so that HTTP redirects to HTTPS and the preferred version of the domain behaves consistently.
For certificate validation and renewal considerations, consult the SSL certificate setup and renewal guide.
Cadence and checkpoints
Use this workflow for a new website, a host migration, a domain transfer, or any change to a production hostname.
- Inventory the current zone. Export or copy the DNS records. Mark which records serve the website, email, authentication, analytics, payments, staging, and other subdomains.
- Confirm ownership and access. Verify access to the registrar, DNS provider, cloud hosting account, and email administration account. Check that the domain is not close to expiration or locked against a planned transfer. The domain portfolio audit checklist is useful when several accounts or domains are involved.
- Prepare the destination. Add the domain to the cloud host, configure the application, upload the site or deploy the release, and arrange the certificate before directing live traffic.
- Choose the DNS method. Edit A and CNAME records if you want to keep DNS where it is. Change nameservers only after reproducing all required records in the new zone and confirming that the provider supports your needs.
- Make the smallest required change. Avoid deleting unrelated records. If the host requests both a root-domain record and a
wwwrecord, configure both according to its instructions. - Test during the transition. Check the site over HTTPS, test the root domain and
www, submit a contact form, sign in to the application, and verify that email can be received and sent. - Record the final state. Save the final records, host details, certificate status, and date of the change in the team's documentation.
For an existing WordPress site, take a current backup before migration and confirm that the database, uploads, themes, plugins, and configuration are available at the destination. The WordPress backup and restore workflow provides a useful recovery checklist.
How to interpret changes
A successful DNS update does not necessarily appear everywhere at once. Different recursive resolvers, devices, networks, and cached applications may show different results during the transition. Check the authoritative DNS provider and compare results from more than one network rather than judging the migration from a single browser.
If the old website appears intermittently, first determine whether the responses are coming from different addresses. Mixed results can reflect cached DNS data, an incomplete nameserver change, or records that disagree between providers. If the site does not load at all, check that the domain is present in the cloud host, the record type is correct, and the hosting platform is listening for the requested hostname.
If the website works but email fails, inspect MX and related TXT records before changing website records again. A nameserver migration that omitted email records is a common cause. If only www fails, inspect its CNAME and the host's domain configuration. If HTTPS produces a certificate warning, confirm that the certificate includes the exact hostname being visited and that the DNS points to the server prepared to complete validation.
Do not treat a DNS checker result as the only source of truth. Combine DNS results with application logs, hosting status information, browser tests, email tests, and the change record. For performance after the move, monitor response time and the site's real user experience using the cloud hosting speed optimization checklist.
When to revisit
Review the setup immediately after launch, again after the expected DNS cache period has passed, and once more during the next business day if the site or email is important. A monthly or quarterly DNS review is worthwhile for production domains, while higher-change environments may need a review after every deployment or infrastructure change.
Revisit this workflow when you:
- move to a new cloud host or change a server address;
- transfer a domain or change the registrar;
- move email providers or add a new sending service;
- launch a subdomain, staging environment, store, API, or customer portal;
- renew, replace, or troubleshoot an SSL certificate;
- notice delivery failures, unexpected redirects, downtime, or an unfamiliar DNS record.
At each review, confirm the registrar account, nameservers, A and AAAA records, CNAME records, MX records, important TXT records, certificate coverage, renewal ownership, and documented contacts. Remove obsolete records only after confirming that no active service uses them. If you are comparing infrastructure options before a move, the cloud hosting versus VPS comparison can help frame the operational trade-offs.
The safest way to point a domain to cloud hosting is to treat DNS as a dependency map, not just a website switch. Preserve the existing email records, change only what the new host requires, test each hostname, and keep a dated record of the final configuration. That process makes the next launch or migration faster without making email an accidental casualty.