Connecting a custom domain to free hosting sounds simple until you are staring at nameservers, A records, SSL warnings, and a site that works on one network but not another. This guide gives you a reusable checklist for the full process: choosing between nameservers and DNS records, pointing the domain correctly, enabling HTTPS, and fixing the most common launch errors. Keep it bookmarked for new site launches, provider changes, and those moments when a domain suddenly stops resolving the way you expect.
Overview
If you want to connect a domain to free hosting, you are really doing four separate jobs:
- Confirming where the domain is registered and where DNS is managed
- Pointing the domain to the hosting provider with either nameservers or DNS records
- Making sure the hosting account is set to serve that domain
- Enabling SSL so the site loads securely over HTTPS
That separation matters because people often complete one step and assume the rest happened automatically. In reality, your registrar, DNS provider, and free host may all be different services.
At a basic level, a domain is the memorable name people type into a browser, while servers use IP addresses. DNS is the system that connects those two. Source material for this article also supports an important practical point: buying a domain is only the start. A domain does not automatically point to a website until you connect it to hosting. Free hosting plans also often leave out extras that paid plans sometimes bundle, such as a free domain or a familiar control panel, so a manual setup is common.
Before you change anything, gather these details in one place:
- Your domain registrar login
- Your free hosting dashboard login
- The hosting provider’s connection instructions
- The IP address or nameservers provided by the host
- Whether the host supports custom domains on the free plan
- Whether the host supports SSL on free hosting, and if so, how it is issued
One more evergreen rule: do not change both nameservers and individual DNS records unless the host explicitly tells you to. In most cases, you choose one method.
Checklist by scenario
Use the scenario that matches your setup. The fastest way to avoid mistakes is to follow only the steps for your actual configuration.
Scenario 1: Your free host tells you to change nameservers
This is the simplest setup when the host wants to manage all DNS for the domain.
- Log in to your domain registrar.
- Open the domain management area.
- Find the nameserver settings.
- Replace the existing nameservers with the ones given by your host.
- Save the changes.
- In your hosting dashboard, add the custom domain if required.
- Wait for DNS propagation, then test the site.
When to use this method: when the host provides only nameservers, or when you want the host to control all web-related DNS for the domain.
What to expect: once nameservers are changed, the DNS zone is usually controlled wherever those nameservers point. That means previous DNS records from your old provider may no longer apply unless you recreate them at the new DNS manager.
Common catch: email may stop working if you switch nameservers and forget to recreate MX, SPF, DKIM, or other mail-related records.
Scenario 2: Your free host gives you an IP address for an A record
This method keeps DNS management at your registrar or another DNS provider.
- Log in to the service currently managing your DNS.
- Find the DNS zone for the domain.
- Create or edit the A record for the root domain, often shown as @, to point to the host’s IPv4 address.
- Create or edit the CNAME for www if your host tells you to point it to the root domain or a target hostname.
- Remove conflicting old A or CNAME records for the same hostnames.
- Save changes.
- Add the domain inside your hosting panel so the host knows which site to serve.
When to use this method: when you want to keep control of DNS at your registrar, or when the host gives you record-level instructions rather than nameservers.
Best use case: you already have email, subdomains, or other services configured and do not want to rebuild the entire DNS zone elsewhere.
Scenario 3: Your free host gives you a CNAME target
Some platforms host your site on their infrastructure and want you to alias a subdomain or even the apex domain through special DNS handling.
- Create the required CNAME for www or another subdomain.
- If the root domain also needs to work, check whether your DNS provider supports ALIAS, ANAME, or CNAME flattening.
- If not, follow the host’s specific root-domain instructions, which may involve A records instead.
- Add the domain in the hosting dashboard and verify ownership if asked.
Important: a standard DNS setup does not allow a root domain to be a plain CNAME in many environments. If your host’s help article seems to conflict with your registrar’s DNS editor, the safest interpretation is that the DNS provider may require an alternative record type for the apex domain.
Scenario 4: You want both example.com and www.example.com to work
This is the most common launch goal and also a common source of duplicate or broken behavior.
- Point the root domain correctly using A records or the provider’s supported apex method.
- Point www with a CNAME or the exact record the host recommends.
- Set a preferred version inside your app or hosting panel if available.
- Enable a redirect so visitors always land on one canonical version.
- Test both HTTP and HTTPS versions after SSL is active.
Good practice: choose either the root domain or the www version as canonical and redirect the other one consistently.
Scenario 5: SSL on free hosting
Getting the domain to resolve is only half the job. A launch is not complete until HTTPS works.
- Make sure the domain already points correctly to the host.
- Wait until DNS changes are visible publicly.
- Open the hosting dashboard and enable SSL if the provider supports it.
- If the platform issues certificates automatically, allow time for validation and provisioning.
- If custom certificates are supported, install them exactly as instructed.
- Force HTTPS only after the certificate is active and valid.
Key point: SSL often fails when DNS is still pointing elsewhere, when a proxy is interfering with validation, or when the domain was added in hosting but not fully verified.
If you are comparing providers, our guide to free hosting with SSL can help you understand which free plans support HTTPS more cleanly.
What to double-check
Before you assume something is broken, run through this list. Most domain launch issues come from small mismatches rather than major failures.
1. Is the domain actually added inside the hosting account?
DNS can be perfect and the site can still fail if the host does not know your domain belongs to your account. Many free hosts require you to add the domain manually before they will serve content or issue SSL.
2. Are you editing DNS in the right place?
If your domain uses custom nameservers, the registrar may not be the place where active DNS records live. Check where the nameservers point first. Then edit records only in the active DNS zone.
3. Are there duplicate or conflicting records?
A common mistake is leaving an old A record in place while adding a new CNAME for the same hostname. Another is having multiple A records for the root domain without intending load balancing. Keep the record set simple unless your host says otherwise.
4. Are you waiting long enough for propagation?
DNS changes can appear in one location before another. That does not always mean the setup is wrong. Give changes time, especially after nameserver updates. If the host advises a propagation window, use that as your baseline.
5. Is the browser showing a cached result?
Your local machine or browser may still remember an old DNS result or redirect. Test in a private window, another device, or a different network before making more changes.
6. Are both the root and www records configured?
Many users point only one version of the domain and then wonder why the other fails. Decide which version you want to use and make sure both are covered either through DNS or redirect logic.
7. Is SSL being requested too early?
If you enable HTTPS before the domain points fully to the host, certificate issuance can stall or fail. First confirm the domain resolves to the correct host, then issue or activate SSL.
8. Did changing nameservers break email or other services?
This matters especially if your domain is used for business email. Switching nameservers can remove the old DNS zone from active use. Recreate MX and related records if needed, or keep DNS where it is and point only the web records to hosting.
If you plan to use email alongside free hosting, see our guide to free hosting with email options before you commit to a setup.
9. Does the free plan actually allow custom domains?
Some free hosts limit custom domains, require verification steps, or reserve SSL support for upgraded plans. Check the plan limits before troubleshooting the wrong problem.
10. Are redirects causing loops?
A forced HTTPS rule, a www redirect, and a platform-level domain rule can combine badly. If the page keeps bouncing, temporarily reduce redirect layers and test one rule at a time.
Common mistakes
This section is the short list of errors that repeatedly slow down domain launches on free hosting.
Changing nameservers when you only needed an A record
This can work, but it is often unnecessary and may disrupt email, verification records, or other subdomains. If the host gives clear record-level instructions, keeping DNS where it is can be the cleaner option.
Leaving old records in place
Users often add the new record but forget the old one. Conflicting records can lead to inconsistent results across networks.
Pointing the domain but not setting the host header in the hosting panel
The domain may resolve to the server, but the server may not know which site to show. Always complete both the DNS side and the hosting side.
Forgetting the www version
Visitors still type www. If only the apex domain works, you have an avoidable launch issue.
Forcing HTTPS before the certificate is active
This is one of the fastest ways to create a scary browser warning on a brand-new site.
Testing too soon and changing too much
Constant edits during propagation create confusion. Make one clean set of changes, document them, and test methodically.
Assuming free hosting behaves like paid cPanel hosting
Source material supports the idea that free hosting often excludes features users expect from paid plans. That can mean fewer automation tools, less familiar dashboards, or more manual DNS and SSL steps.
If you are deciding whether a free host is still worth the effort, compare your options with best free web hosting for small business websites and best hosting for beginners after outgrowing free hosting.
When to revisit
This topic is worth revisiting whenever the underlying setup changes. Use this as your practical refresh checklist.
- Before launching a new site: confirm whether the host wants nameservers or record-based DNS, whether custom domains are allowed, and whether SSL is included.
- When changing hosting providers: review TTL, DNS records, redirects, and SSL timing before you move traffic. If needed, read how to migrate from free hosting to paid hosting without breaking your site.
- When changing registrars or DNS providers: verify that all DNS records, not just web records, are recreated accurately.
- When adding email: re-check MX, SPF, DKIM, and DMARC so web changes do not break mail flow.
- When enabling CDN or proxy services: confirm how they affect SSL validation and origin IP records.
- When your site suddenly shows the wrong page: check whether the domain is still mapped correctly inside hosting and whether an old record has reappeared or been cached.
- Before seasonal campaigns or promotions: test the domain, redirects, and HTTPS early so you are not debugging propagation during a traffic window.
For a clean pre-launch process, keep a simple domain worksheet with these fields: registrar, active nameservers, DNS host, root record, www record, hosting account, SSL status, and date of last change. That one-page log prevents a lot of guesswork later.
If you are still choosing the setup itself, how to choose a domain name and hosting for a new website is a useful next step, and best domain and hosting bundles for first-time website owners can help if you want fewer moving parts.
Final action list:
- Confirm whether your host wants nameservers or DNS records.
- Edit only the active DNS zone.
- Add both root and www if you want both to work.
- Add the domain inside the hosting account.
- Wait for propagation before troubleshooting aggressively.
- Enable SSL only after DNS points correctly.
- Test redirects, HTTPS, and email after everything settles.
That is the repeatable path to point a domain to hosting without turning a simple launch into a long debugging session. Free hosting can work, but it rewards careful setup more than guesswork.