← All postsHow-to

How to point a domain at your website

A, CNAME, TXT, TTL, propagation — five terms stand between you and a live site. Here is what each one does and the order to do them in.

How-toH

Buying a domain and building a site are the easy parts. The step in between — making the domain actually show the site — is where people lose an afternoon, because it involves a control panel they visit once a year and a vocabulary nobody explained.

The good news is that it is five concepts and about ten minutes of typing. The waiting afterwards is the long part, and there is nothing to do during it.

What the records mean

  • A record — maps a name directly to an IP address. This is what makes mysite.com resolve to the machine serving your site.
  • CNAME — maps a name to another name. Usually used for www, so www.mysite.com follows wherever your host points.
  • TXT — free-form text on a domain. Hosts use it for verification: they give you a token, you publish it, and its presence proves you control the domain.
  • TTL — how long other servers may cache the answer. Lower means changes spread faster; the default is fine unless you are migrating a live site.
  • Propagation — the wait while caches around the world expire and pick up the new answer. Up to 24 hours, usually far less.

The order that avoids surprises

  1. Add the domain in your host first, so it can tell you exactly which records it wants. Guessing values from a blog post is how people end up pointing at last year's IP address.
  2. Open DNS management at your registrar — the company you bought the domain from, which is often not the same as your host.
  3. Delete the conflicting records first. A freshly bought domain almost always has a parked A record or a URL-redirect pointing at the registrar's own page; the new record cannot win while it is there.
  4. Add the records exactly as given: type, name, value. Copy and paste rather than typing — a trailing dot or a missing hyphen is a lost hour.
  5. Save, then go and do something else. Checking every two minutes does not speed up propagation.
  6. Once it resolves, confirm HTTPS works. Most hosts issue the certificate automatically after verification succeeds.

Moving a domain that already serves a live site? Lower the TTL to five minutes a day before you switch. The old answer then expires quickly, and the cutover takes minutes instead of a day.

The four mistakes that account for most failures

  • The proxy is on. On Cloudflare, the orange cloud intercepts traffic before your host sees it and breaks verification. Set the record to “DNS only” (grey cloud) until the domain is verified.
  • A doubled name. Some registrars append the domain to whatever you type, so entering “www.mysite.com” produces www.mysite.com.mysite.com. Enter just “www” — or just “@” for the root.
  • The old record is still there. Two A records on the same name is not an ordering; it is a coin toss.
  • Editing DNS at the wrong company. If nameservers point at a host or a CDN, the registrar's DNS panel is no longer in charge — the records must go where the nameservers point.

www or no www?

Pick one as canonical and redirect the other to it — which one matters far less than being consistent. Split traffic across both hurts analytics and, mildly, search: the same page on two addresses looks like two pages. Set up the redirect once, and link to the canonical form everywhere.

Frequently asked

How long does DNS propagation take?

Up to 24 hours in the worst case, but most domains resolve within an hour. It depends on the TTL of the records being replaced, not on how long you stare at the browser.

What is the difference between a registrar and a host?

The registrar is where you bought the domain; the host is where the site runs. DNS records live at whoever controls the nameservers — usually the registrar, unless you moved them.

Do I need both an A record and a CNAME?

Typically yes: the A record handles the bare domain, the CNAME handles www. That way both addresses work and one can redirect to the other.

Why does my site show “not secure” after it goes live?

The SSL certificate is usually issued after verification completes, which is after DNS resolves. Give it a little longer; if it stays pending, the verification TXT record is the first thing to re-check.

Can I connect a subdomain like shop.mysite.com?

Yes — it is a CNAME on that name pointing at your host, and everything else works the same way.

None of this is difficult, but all of it is unforgiving of a typo. Copy the values, delete what was there before, and let the wait do its work.

MI
Written by Maria I.

Part of the Ettex team — writing about product, engineering and the future of work.

More posts
Get the best of the Ettex blogProduct news, guides and tips — straight to your inbox, no spam.