How to connect your own domain to a website, without breaking your email

By Glassly · 8 November 2026 · 5 min read

Point your domain at your website with two records: www and the domain without www. What to leave alone, Cloudflare’s orange cloud, and how long it takes.

Make your website with Glassly: describe it, check it on a free test link, then put it live on your own domain.

Make my website
The about page of a yoga studio website made with Glassly
A website made with Glassly

Connecting a domain to a website is two records where you bought the domain: one for www and one for the domain without www. Everything else stays as it is, your email in particular.

The two records

  • www: a CNAME record pointing at the address your website’s host gives you. On Glassly that is service.glassly.site.
  • The domain without www, called the bare domain or @: an A record to the IP address your host gives you, or an ALIAS record (some registrars call it a flattened CNAME) where your registrar offers one.

Your host makes the security certificate (https) for both once they point at it, and sends the bare domain on to www, so either one opens the website.

Where to add them

  • Namecheap: Domain List, Manage, then Advanced DNS. Edit the A record for @ and the CNAME record for www; a new domain’s parking records are the ones to change.
  • Cloudflare: your domain, then DNS and Records. Set both records to DNS only (the grey cloud), unless your host says otherwise.
  • Anywhere else: the DNS or Advanced DNS page of the domain. The Host or Name field takes www or @, not the whole domain: most registrars add the domain themselves.

What to leave alone

  • MX records: they deliver your email.
  • TXT records such as SPF and verifications from Google or Microsoft.
  • Records for other names, such as mail. or shop.

How long it takes

A changed record is usually seen within minutes, and at most within the old record’s TTL, often 5 minutes to a few hours. The certificate follows, usually within a few minutes more. Connecting a .co.uk domain at Namecheap on 8 November 2026, the records were public in under two minutes and the certificate was ready about five minutes later.

When it does not work

  • www still points somewhere else: an old CNAME to a previous host is still there.
  • Other records on www: an A record beside the CNAME. Delete it; a CNAME has to stand alone.
  • An orange cloud at Cloudflare: the record is proxied, so it answers Cloudflare’s own addresses. Set it to DNS only.
  • A CAA record that allows only certain certificate companies: add one for Let’s Encrypt.

On Glassly

The website’s Publish page shows the exact records, reads them for you when you press Check, says in plain words what is missing, and asks Cloudflare to look again so you are not left waiting. The website goes live the moment the domain, its data and hosting are ready. The guide to making a website with AI covers the steps before this one.

Quick answers

Will connecting my domain to a website break my email?
No, as long as you change only the two website records (www and the domain without www) and leave the MX and TXT records alone. Email is delivered by the MX records.
How long does it take for a domain to connect?
Usually minutes: a changed record is seen within the old record’s TTL, often 5 minutes to a few hours, and the certificate follows within a few minutes more.
What is the difference between www and the bare domain?
They are two names: www.example.com and example.com. Each needs its own record. A host usually serves the website on one of them and sends the other there, so both open it.