Skip to content
Puranode

Guide

Point Your Domain at Website Hosting with CNAME

To point a domain at web hosting, add a CNAME record for www that targets the hostname your host gives you, at whichever provider runs your domain's nameservers. The root domain, example.com, cannot hold a standard CNAME, because a CNAME may not share a name with other records and every root domain must carry NS and SOA records. For the root, use ALIAS, ANAME or CNAME flattening if your DNS provider offers one, or redirect the root to www.

Published

On this page

FAQ

Frequently asked

Can I use a CNAME on my root domain?

Not a standard one. A CNAME cannot share a name with other records, and the root must hold NS and SOA records. Use ALIAS, ANAME or CNAME flattening if your DNS provider offers one, or redirect the root to www.

Should my website use www or the root domain?

Either works for visitors. A www site can always use a CNAME, so it follows your host's addresses with no extra provider features. Pick one as the real address and redirect the other to it with a 301.

How long does a CNAME change take?

It depends on the TTL. Resolvers can keep the previous answer until the old TTL runs out, so lower it a day before moving a live site. A name that was looked up before it existed can also stay cached as nonexistent for the period set by the SOA record.

Will pointing my domain at web hosting break my email?

A CNAME on www has no effect on your MX records, so your mail keeps flowing as before. Leave the MX, SPF and DKIM records unchanged. A true CNAME at the root is the setup that would conflict with them.

Why does my site show a certificate error after changing DNS?

The certificate usually comes after the DNS change, because validation checks the live name, and it must cover the exact hostname you visit. Confirm the record resolves to your host, turn any DNS proxy off, and check that the host has added this hostname.

How much does website hosting cost at Puranode?

1 GB for €4.99 every 30 days, VAT included, no setup fee, no minimum term.

Projects referenced

This guide names other people’s work. These are their own pages, so you get the current documentation rather than our summary of it.

Have a domain ready for a site?

Website hosting in its own container from €4.99 every 30 days, VAT included, with free SSL, a free subdomain and your own domain by CNAME. No setup fee, cancel anytime.