All posts
Web design & development

Domains, DNS and SSL: A Founder's Setup Guide

A founder's domain, DNS and SSL setup guide: register the domain safely, point it at your host, add email records like SPF, DKIM and DMARC, and get HTTPS working.

By Mehdi Hassan7 min read

The short answer

A domain, DNS and SSL setup for a new website takes five steps: register the domain in a company-owned account, choose where DNS is managed, add the records your host gives you for the root domain and www, add your email records including SPF, DKIM and DMARC, and let the host issue a free SSL certificate once DNS points to it.

Key takeaways

  • Register the domain under a company email with two admins, auto-renew and a company card.
  • Keep one DNS provider and export the full zone before any change.
  • Site records point the domain at your host; MX and TXT records keep email working.
  • SPF, DKIM and DMARC stop your emails and form notifications landing in spam.
  • SSL is free and automatic on modern hosts once DNS points to them.

What does a domain, DNS and SSL setup involve?

A domain, DNS and SSL setup connects three things: the domain you register, the DNS records that tell the internet where your website and email live, and the SSL certificate that makes the site load over HTTPS. Get them right once and they run quietly for years. Get them wrong and the site, the email, or both go down.

Most guides cover only the website records. This one also covers the ownership traps we see when taking over sites, and the email records that founders forget until form notifications stop arriving. It's part of our website hosting guide for startups.

Who should own the domain account?

The company should own the domain, in a registrar account created with a company email address, billed to a company card, with at least two people who can sign in. That sounds obvious, and it's still the most common problem we find.

  • The ex-employee trap. The domain sits in the personal account of someone who left, and getting it back means support tickets and proof of ownership.
  • The contractor trap. A freelancer registered it while building the first site and still holds the login.
  • The expired card trap. Auto-renew failed on an old card and nobody saw the reminder emails.
  • The single admin trap. One founder holds the only login and the two-factor device.

Which DNS records does a website need?

A website needs records that point the root domain and the www subdomain to your host, plus the email records your email provider gives you. Your host tells you exactly which values to add; this table explains what each type does.

Record

What it does

Typical use

A / AAAA

Points a name to an IP address

Root domain to your host, when the host gives IPs

CNAME

Points a name to another name

www to your host's domain

ALIAS / ANAME / flattened CNAME

CNAME-like behavior at the root

Root domain on hosts that give a hostname

MX

Says which servers receive your email

Your email provider

TXT

Holds text values for verification and policies

SPF, DMARC, domain verification

CNAME or TXT for DKIM

Publishes your email signing key

Your email provider and any sending service

CAA

Limits which authorities can issue certificates

Optional extra security

Pick one primary address, usually either the root domain or www, and redirect the other to it so search engines see one version of the site. Your host can usually do this redirect for you once both names point to it.

How do you connect a domain to your website?

You connect a domain by adding it in your host's dashboard, copying the DNS records it shows into your DNS provider, and waiting for the host to detect them and issue a certificate. The process is the same on Webflow, Framer, Vercel, Netlify and Cloudflare, though the exact records differ.

  1. Decide where DNS lives

    Keep DNS at the registrar or move it to a dedicated DNS provider such as Cloudflare. Use one place only, and note it in your ownership doc.

  2. Export the current zone

    Before changing anything, save a copy of every existing record. If something breaks, you can restore it.

  3. Lower the TTL ahead of a move

    If you're moving an existing site, reduce the TTL on the records you'll change a day in advance so the switch spreads faster.

  4. Add the domain at your host

    Add both the root domain and www in the host's domain settings and note the records it asks for.

  5. Add or update the records

    Create the records exactly as shown. Delete old A or CNAME records for the same names that point elsewhere.

  6. Wait for verification and SSL

    The host checks the records, then issues a free certificate. This can be quick or take a while as DNS spreads.

  7. Set the primary domain and redirect

    Choose root or www as primary and redirect the other. Test both with and without https.

How do SPF, DKIM and DMARC work?

SPF, DKIM and DMARC are DNS records that prove email from your domain is genuine. SPF lists which services may send email as you, DKIM signs each message with a key published in DNS, and DMARC tells receiving servers what to do with mail that fails those checks and where to send reports.

They matter for your website because contact forms, booking tools and newsletter platforms send email on your domain's behalf. If those services aren't in your SPF record and set up with DKIM, their emails, including notifications of new leads, are more likely to land in spam or be rejected. Our guide to email deliverability for website forms goes deeper.

  • One SPF record only. Add every sending service to the same TXT record; two SPF records break it.
  • DKIM for each service. Your email provider and each sending tool give you their own DKIM records.
  • Start DMARC in monitoring mode, read the reports, then tighten the policy once legitimate senders all pass.
Example: what a hypothetical startup's email records cover

For example, suppose a startup uses a workspace email provider, a form service that sends lead notifications, and a newsletter tool.

Its SPF record lists the email provider and the form service. Each of the three services has its own DKIM record. A DMARC record starts in monitoring mode and sends reports to a shared inbox. A month later, once reports show all three pass, the team tightens the DMARC policy. If they later add a CRM that sends email, they add it to SPF and DKIM before turning it on.

How do you get SSL working on a new site?

On modern hosts, SSL works automatically: once your DNS points to the host, it issues a free certificate and renews it before it expires. You shouldn't need to buy a certificate or upload one for a marketing site.

If HTTPS doesn't work after setup, the cause is almost always DNS. Check that old records pointing to a previous host are gone, that a CAA record, if you have one, allows your host's certificate authority, and that a proxy in front of the site, such as Cloudflare's, uses a full and strict encryption mode rather than a flexible one. Then make sure every page redirects from http to https and that your sitemap and canonical tags use https.

What should you check after DNS changes?

After any DNS change, check the website, the email and the forms, in that order, because a site that loads can still hide broken email for days. A quick check saves lost leads.

  1. Open the root domain and www, with http and https, and confirm each lands on the primary https address.
  2. Send an email to and from a company address and confirm both arrive.
  3. Submit the contact form and confirm the notification arrives in the inbox, not spam.
  4. Check that subdomains such as your app, docs or status page still work.
  5. Save the new zone file alongside the old one in your ownership doc.

If you're moving hosts at the same time, compare costs and features first in our Vercel vs Netlify vs Cloudflare comparison, and use preview deployments to check the new site before switching DNS.

Frequently asked questions

How long does DNS take to update?
DNS changes often take effect within minutes to a few hours, but they can take longer because servers around the world cache old records until their TTL expires. Lowering the TTL a day before a planned change helps it spread faster. If your site still shows the old version, test from another network or a phone on mobile data.
Should I move my DNS to Cloudflare?
It's a common choice because Cloudflare's DNS is fast, free for basic use and easy to manage, but it isn't required. Keeping DNS at your registrar is fine if the interface is usable and you have one place to manage records. If you do move, copy every existing record first, especially email records, before changing the nameservers.
Do I need a separate domain for my app?
Usually not. Most startups use a subdomain such as app.yourdomain.com for the product and keep the marketing site on the main domain. That keeps the brand in one place and makes cookies, analytics and email simpler. A separate domain can make sense for user-generated content or security isolation, which your engineering team should decide.
What happens if my domain expires?
When a domain expires, the website and email stop working, usually after a short grace period, and if it isn't renewed it can eventually be released and registered by someone else. Turn on auto-renew, use a company card that won't expire soon, and make sure reminder emails go to a shared address that someone actually reads.

· CEO & Design Director

Copywriter, designer and developer, and founder of Designify Studio. Over five years, 60+ projects across 14+ industries, for startups that have raised $300M+.

Want this done for you? Website, $8,000.

A multi-page marketing site, designed by us, developed in Next.js and animated. $8,000, one-time, up to 6 pages. Book a free 30-minute call to see if it fits.

Schedule Call