How it all connects
- Your domain (for example,
yourapp.com) is bought from a registrar. - In the DNS you say where it points: to your server’s IP or to another name.
- Your server answers over HTTPS, with a certificate proving that the site really is yours.
The records you need
- A: points a name to an IP (
yourapp.com→203.0.113.10). - AAAA: the same, for IPv6.
- CNAME: points a name to another name (
www→yourapp.com). It cannot be used on the root domain with most providers. - MX and TXT: for email and service verification.
The steps, in short
- Choose where to manage DNS: the registrar or a service such as Cloudflare.
- Create the A record for the domain and a CNAME for
wwwpointing to the domain. - Wait for propagation and check with
dig yourapp.comor an online tool. - Configure your web server (Nginx or Caddy) to answer for that domain.
- Issue the certificate: with certbot (
certbot --nginx) or with Caddy, which does it by itself. - Redirect HTTP to HTTPS and unify
wwwand non-www.
Common mistakes
- Pointing the domain at the wrong IP or leaving an old record that competes with the new one.
- Forgetting to open port 80, so Let’s Encrypt cannot validate the domain.
- Certificates that expire because nobody automated renewal.
- Using the Cloudflare proxy with SSL in “flexible” mode and ending up with unencrypted traffic between Cloudflare and your server.
How we help
We set up domain, DNS and HTTPS with automatic renewal, and document what each record does.