Hypertekt › Docs › Guides

Connect a domain

How to point a domain at a Hypertekt site: the two DNS records, the bare domain, and what to check when it won't connect.

A site is served at a domain you connect in its Settings › General, under Domains. The domain stays with the registrar it’s registered with: you add two DNS records there, and Hypertekt makes the domain’s certificate.

Connect www first

Add the www domain, like www.example.com. It should match the host in site.yaml’s url. The www domain is the one to connect, because every DNS provider can point a www domain with a CNAME. The bare domain, example.com, is sent to the www domain afterward.

Settings gives you two records to add where the domain’s DNS is managed, at its registrar or its DNS provider:

Type Name Value What it’s for
TXT _hypertekt.www.example.com ht-verify=… Proves the domain is yours
CNAME www.example.com connect.hypertekt.page Points the domain at Hypertekt

The TXT record’s value is made for this site, so copy it from Settings.

Most DNS providers add the domain to the end of a record’s name for you. If yours does, type only the part before the domain: _hypertekt.www for the TXT record, and www for the CNAME.

While it connects

Once both records are added, press I’ve added them. Hypertekt starts looking for the TXT record then, and keeps looking automatically, so you can close the page. If you don’t press it, looking starts automatically 30 minutes after the domain was added.

Hypertekt doesn’t look before you press it, on purpose. A DNS resolver that’s asked for a record before it exists remembers that it doesn’t, often for 30 minutes, and keeps saying so after the record’s added. So Hypertekt asks three different resolvers in turn, each only once it could have forgotten what it said last.

Settings says what Hypertekt found:

  • Waiting for its records: nobody has pressed I’ve added them yet.
  • Waiting for DNS: there’s no TXT record with this site’s value yet. Settings says when the next look is.
  • Proved, setting up: the TXT record proves the domain is this site’s. Hypertekt is waiting for the CNAME record and the domain’s certificate.
  • Live: the CNAME record and the certificate are ready. Within about half a minute, the domain serves the site’s live release.
  • Stopped looking: Hypertekt looked for a week without finding the TXT record. Fix the records, then press Start looking again to look for another week.

Everyone on the site gets an email when the domain is live. If the domain still isn’t connected a day after it was added, whoever added it gets one email saying what’s missing.

The bare domain

Visitors type example.com too. Settings shows how to send the bare domain to the www domain, under the www domain’s entry. The steps depend on who runs the domain’s DNS:

  • Cloudflare lets a bare domain have a CNAME, which Cloudflare calls CNAME flattening. Point example.com at connect.hypertekt.page with a CNAME, then connect example.com in Settings too.
  • DNSimple, NS1, Porkbun, Namecheap, DNS Made Easy and easyDNS have ALIAS (or ANAME) records. Point example.com at connect.hypertekt.page with an ALIAS record, then connect example.com in Settings too.
  • Anywhere else, use the registrar’s forwarding to send example.com to https://www.example.com.

A connected bare domain redirects to the address in site.yaml’s url, keeping the path, so links to either domain work.

When it won’t connect

  • The record’s name has the domain twice. Many DNS providers add the domain to every name you type, so _hypertekt.www.example.com becomes _hypertekt.www.example.com.example.com. Type only the part before your domain: _hypertekt.www for the TXT record, and www for the CNAME.
  • There’s already a record for www. A name with a CNAME can’t have any other record. Before adding the CNAME, remove any old A, AAAA or CNAME records for www.
  • The TXT value is an old one. A TXT record left from an earlier try, or from another site, has the wrong value. Change it to the value in Settings.
  • The records are right, and it still says Waiting for DNS. DNS changes usually show within minutes, but some providers take an hour or more. Hypertekt keeps looking for a week, hourly after the first day. Pressing Check now looks again right away when one of the resolvers could give a fresh answer, and otherwise says when the next fresh look is.
  • Settings says Moved to another site. Another Hypertekt site proved the domain with its own TXT record, so the domain now belongs to that site. Everyone on this site is emailed when that happens.

Your site’s address

The site’s primary address is the host in site.yaml’s url. Every other domain the site has redirects to the primary address, so search engines only see one address. If a live domain doesn’t match url, Settings offers to make that domain the site’s address. The change takes effect the next time the site is published.

The bare domain can be the site’s address instead of www if its DNS provider supports this: Cloudflare, or a provider with ALIAS records. Connect the bare domain as above, and make the bare domain the host in url. Then www redirects to the bare domain.