Skip to content
COL0

Domain, DNS and HTTPS: how to connect your domain to your app

Buying a domain is easy. The confusing part is making it point to your server and getting the HTTPS padlock to appear without warnings.

Written by Victor Barrera

How it all connects

  1. Your domain (for example, yourapp.com) is bought from a registrar.
  2. In the DNS you say where it points: to your server’s IP or to another name.
  3. 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

  1. Choose where to manage DNS: the registrar or a service such as Cloudflare.
  2. Create the A record for the domain and a CNAME for www pointing to the domain.
  3. Wait for propagation and check with dig yourapp.com or an online tool.
  4. Configure your web server (Nginx or Caddy) to answer for that domain.
  5. Issue the certificate: with certbot (certbot --nginx) or with Caddy, which does it by itself.
  6. Redirect HTTP to HTTPS and unify www and 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.

Frequently asked questions

How long until my domain works?

DNS changes can take from minutes to a few hours to show up worldwide, depending on the configured time to live (TTL). Lowering it before a change helps.

Do I have to pay for the HTTPS certificate?

No. Let's Encrypt issues free certificates that renew automatically, and providers such as Cloudflare include them too.

Ready to publish your project?

Book your free 30-minute session and leave with a clear plan.

Book your free session