Connecting a custom domain to free hosting involves more than entering a web address in a dashboard. You need to choose the correct DNS method, point the right hostnames to your site, allow time for changes to appear, and confirm that HTTPS works without breaking email or redirects. This guide provides a repeatable workflow for connecting a domain to free cloud hosting, static site hosting, a portfolio site, or a free landing page, along with a DNS reference table, troubleshooting steps, and a cutover checklist.
Overview
A custom domain is the address visitors use, while hosting is the service that delivers your website files. DNS connects the two by telling browsers which hosting destination belongs to a domain or subdomain.
Before changing anything, collect these details from your hosting provider:
- The target value for the root domain, often an IP address for an A record.
- The target hostname for a subdomain such as
www, often used with a CNAME record. - Whether the provider requires nameservers instead of individual DNS records.
- Any verification value, usually a TXT record, required before the domain can be attached.
- Whether SSL is issued automatically after DNS verification or must be enabled separately.
There are two common ways to point a domain to free hosting. With a nameserver change, the hosting provider becomes responsible for the domain's DNS zone. With a record-based setup, you keep DNS at your registrar or DNS provider and add the records supplied by the host. Do not use both approaches for the same DNS zone unless the provider specifically documents that arrangement.
A nameserver change can be convenient when the host manages all required records. A record-based setup gives you more direct control and can be preferable when the domain already supports email, verification services, or other subdomains. In either case, review the existing DNS zone before making changes.
What to track
DNS records and hostnames
Use the host's exact target values. Do not guess an IP address, add a protocol such as https:// to an A or CNAME value, or copy a full URL into a field that expects only a hostname.
| Record | Typical use | Important detail |
|---|---|---|
| A | Points a root domain such as example.com to an IPv4 address. | Enter an IP address only. A root domain may require one or more A records supplied by the host. |
| AAAA | Points a root domain to an IPv6 address. | Add it only when the hosting provider supplies a valid IPv6 destination. |
| CNAME | Points a subdomain such as www or blog to another hostname. | Enter a hostname, not a URL. A CNAME generally cannot coexist with other records at the same name. |
| TXT | Verifies domain ownership or publishes configuration text. | Copy the complete value, including punctuation or quotation marks when the DNS interface requires them. |
| MX | Routes email for the domain. | Do not delete or replace MX records while connecting a website unless you intend to change email service. |
Many setups use the root domain and www separately. For example, the root domain may use an A record while www uses a CNAME supplied by the host. Your hosting dashboard may also require both versions to be added to the project before it will issue a certificate.
SSL and canonical redirects
After DNS points to the site, check whether the hosting provider has recognized the domain and started certificate provisioning. Certificate behavior varies by provider, so follow its documented sequence rather than assuming HTTPS will be immediate.
Test these variations:
http://example.comhttps://example.comhttp://www.example.comhttps://www.example.com
Choose one preferred version, usually the version configured by the hosting platform, and confirm that the other versions redirect to it. A redirect is different from a DNS record: DNS directs a hostname to a destination, while an HTTP redirect tells a browser to request another URL.
Evidence for a change log
Keep a simple record of the domain, each hostname, the record type, target value, date and time of the change, and the intended result. Save screenshots of the original DNS zone before editing it. This makes future migrations and troubleshooting safer, particularly when several people manage the domain.
Cadence and checkpoints
Use the following workflow when you connect a custom domain to a free-hosted website.
- Confirm ownership and access. Make sure you can sign in to both the hosting account and the registrar or DNS provider. Check that the domain has not expired and that editing is not locked.
- Review the current DNS zone. Identify existing A, AAAA, CNAME, MX, TXT, and forwarding records. Pay particular attention to email records and any subdomains used by applications.
- Choose one connection method. Select the provider's nameserver method or its record-based method. If you change nameservers, copy the complete nameserver set exactly as provided and understand that existing DNS records may need to be recreated in the new zone.
- Add verification records first. If the host requests a TXT or CNAME verification record, add it without removing unrelated records. Complete verification in the hosting dashboard.
- Add the website records. Point the root domain with the supplied A or AAAA record and point subdomains with the supplied CNAME or other required record.
- Set the domain in the site builder. Add every hostname you plan to serve, such as the root domain and
www. Configure the preferred domain only after both versions are recognized. - Wait and check resolution. DNS changes may appear at different times depending on caching and the records' previous settings. Check from more than one network or DNS lookup tool instead of relying on one browser session.
- Confirm HTTPS. Wait for the host to report that the certificate is active, then load the HTTPS version in a private browser window. Check that the certificate matches the domain and that the page does not produce a browser security warning.
- Test the final paths. Visit the homepage, important landing pages, forms, images, downloads, and any redirects. Test both the root domain and the preferred subdomain.
- Record the completed state. Note the final records, certificate status, preferred URL, and date. This becomes the baseline for later monitoring.
For a small business site or portfolio website, combine this DNS work with a broader website launch checklist. If the site is moving from another provider, create a backup before changing records and follow a website backup and recovery plan.
How to interpret changes
If the domain does not resolve, first confirm that the record name and target are correct. DNS interfaces label the root domain differently: some use @, while others expect the domain name or leave the name field blank. A mistaken hostname can create a record for www.example.com.example.com instead of www.example.com.
If only one version works, compare the root and www configuration. The hosting project may recognize one hostname but not the other, or the redirect may not be configured. If a CNAME conflict appears, look for an existing record with the same name. Remove or replace it only after confirming that it is not needed for another service.
If the site shows an old page, a parked-domain page, or an error from the previous host, check for duplicate A records, stale forwarding settings, or an unchanged AAAA record. An old AAAA record can direct some visitors to a different destination even when the A record is correct. Remove obsolete records only when you understand their purpose.
If HTTPS is missing, confirm that DNS is resolving to the intended host, that the domain was added to the hosting project, and that certificate provisioning has completed. Do not bypass a browser certificate warning for a public site. Check the exact hostname in the address bar and inspect mixed-content warnings if the page loads over HTTPS but still references assets over HTTP.
If email stops working after a DNS change, review the MX and related TXT records immediately. Website records and mail records serve different purposes, but replacing an entire DNS zone during a nameserver change can remove mail configuration. Restore the required mail records from your saved copy or your email provider's instructions.
For recurring checks, monitor availability separately from DNS configuration. An uptime check can show whether the site responds, while a DNS review shows whether the domain still points to the intended destination. Keep an incident log using the workflow described in How to Monitor Website Uptime.
When to revisit
Review the domain setup monthly or quarterly, and always revisit it after a hosting migration, domain renewal, DNS provider change, website redesign, email migration, or subdomain launch. A scheduled review does not require changing records. It means confirming that the records, certificate, redirects, and ownership contacts still match the current setup.
At each review, check four points:
- The domain registration is active and renewal contact details are current.
- The root domain and important subdomains resolve to the intended hosting destination.
- HTTPS works for the preferred hostname and redirects are consistent.
- MX, TXT, and other non-website records still support email and connected services.
Refresh this guide's provider-specific instructions whenever your hosting platform changes its domain workflow, certificate process, required records, or dashboard terminology. For a new launch, complete the checks before publishing the domain publicly. For an existing site, make one DNS change at a time, record the result, and keep a rollback plan. That disciplined approach makes free website hosting easier to maintain and reduces the risk of an avoidable outage.