BuiltByBadge

How-to

How do you connect a custom domain to Netlify, step by step?

To connect a custom domain on Netlify, open Domain management, choose Add a domain, then point DNS at Netlify. With external DNS, add a www CNAME to your-site.netlify.app and an apex ALIAS to apex-loadbalancer.netlify.com, or an A record to 75.2.60.5. Netlify then issues a free Let's Encrypt certificate. If HTTPS is missing after 24 hours, a DNS record is wrong.

What do you need before you connect a custom domain to Netlify?

Three things: a site already deployed on Netlify, a domain you own at any registrar, and login access to wherever that domain's DNS is managed today. That last one trips people up. The registrar where you bought the domain and the DNS host that answers for it are often the same company, but not always. If you once moved DNS to Cloudflare or another provider, that is where the records live, and that is where you will make changes.

Before touching anything, write down the records the domain already has. Open your DNS host's record list and screenshot it. Pay attention to MX and TXT records: they run your email and any verification you set up for other services, such as Google Search Console. You will add records for the website, and you should not need to remove the email ones. Having a screenshot means a mistake costs you five minutes, not a day of bounced mail.

Finally, find your site's Netlify subdomain. Every site gets one in the form your-site-name.netlify.app. Netlify's docs use brave-curie-12345.netlify.app as the example. You need this exact value for the www record, so copy it from the site overview rather than typing it from memory.

Should you use Netlify DNS or keep your current DNS provider?

Netlify offers two paths and labels Netlify DNS "Most recommended" in its getting started guide. With Netlify DNS you point the domain's name servers at Netlify, and Netlify creates the records for your site automatically. With external DNS you keep your current provider and add one or two records by hand. Both work. The trade-off is control versus convenience.

QuestionNetlify DNSExternal DNS
Who creates the website records?Netlify, automaticallyYou, at your DNS host
Apex domain performanceHandled by NetlifyNetlify recommends a www primary domain instead
Wildcard HTTPS certificateYes, provisioned automaticallyNo
Branch deploy subdomainsSupportedRequires Netlify DNS
DNSSECNot supported; disable it at the registrarDepends on your provider
Many existing records (email, verification, other apps)You re-create them in Netlify; no inbound zone transfersNothing to move
Can you switch later?YesYes, Netlify says you can migrate to Netlify DNS later

Source: Netlify docs on domains, HTTPS, multiple domains and SSL troubleshooting, read November 2026.

For a maker with one or two small static sites and a domain that also handles email, external DNS is usually the calmer choice: you add two records and leave everything else alone. If the domain exists only for this site, or you want branch subdomains and less to think about, Netlify DNS is simpler over time. If you run many sites, our note on one domain or many for side projects covers the bigger decision first.

How do you add a custom domain to a Netlify site, step by step?

These steps follow Netlify's assign a domain and external DNS docs as written in November 2026. Netlify renames menus now and then, so if a label differs slightly, look for the closest match under the site's domain settings.

  1. Open Domain management. From your site or project overview, select Domain management in the left sidebar.
  2. Add the domain. Choose Add a domain, then Add a domain you already own. Enter the domain and follow the prompts. Netlify adds entries for both the apex domain and the www subdomain when you enter either one.
  3. Pick your DNS path. Choose Netlify DNS or an external DNS provider. For Netlify DNS, select Options, then Set up Netlify DNS, and Netlify will show the name servers to set at your registrar.
  4. Get your exact records. For external DNS, select Pending DNS verification next to the domain under Domain management and Production domains. Netlify shows the records customized for your site.
  5. Add the records at your DNS host. Create the www CNAME and the apex record shown in the next section. Delete any old A or AAAA records on the apex that point somewhere else.
  6. Set the primary domain. Decide whether www or the apex is primary. Netlify redirects the other one to it automatically.
  7. Wait, then check HTTPS. Once DNS resolves to Netlify, Netlify requests a Let's Encrypt certificate on its own. Check the status under Domain management and HTTPS.

On the timing, Netlify's external DNS page says it "may take a full day" for settings to propagate, and its getting started page gives 24 to 48 hours, sometimes up to 72. In practice, low TTL records often switch much sooner, but plan for a day and do not change records again while you wait. Re-editing resets the clock and makes it hard to tell what fixed what.

What DNS records does Netlify need for external DNS?

Two records cover nearly every small site: one for www and one for the bare apex domain. The values below come straight from Netlify's external DNS documentation; always compare them with what your own Pending DNS verification panel shows.

HostRecord typeValueWhen to use it
wwwCNAMEyour-site-name.netlify.appAlways, for the www subdomain
@ or blankALIAS, ANAME or flattened CNAMEapex-loadbalancer.netlify.comApex domain, if your provider supports one of these
@ or blankA75.2.60.5Apex domain, if your provider has no ALIAS option
Any other subdomain, such as blogCNAMEyour-site-name.netlify.appExtra subdomains pointing at the same site

Source: Configure external DNS for a custom domain, Netlify docs, read November 2026.

A few details matter more than they look. Apex domains cannot use a normal CNAME, which is why the ALIAS or A record exists. Keep only one A record on the apex: Netlify's troubleshooting page lists multiple apex A records as a cause of certificate failures. Remove every AAAA record on the domain, because Netlify's load balancer does not support IPv6 and a leftover AAAA record breaks HTTPS. And never put https:// in a record value; DNS records take a hostname or an IP address, nothing else.

Email records stay as they are. Adding a website CNAME or A record does not touch MX records, so your mail keeps flowing while you work.

Should your primary domain be www or the apex?

If you use external DNS, make www the primary domain. Netlify says so directly: its getting started guide "strongly" recommends a www subdomain as the primary domain, and the multiple domains page repeats that advice for external DNS. The reason is performance. A CNAME on www lets Netlify route visitors through its network properly, while an A record on the apex points everyone at a single load balancer address.

The redirect is automatic either way. If www is primary, Netlify redirects the apex to www. If the apex is primary, Netlify redirects www to the apex. It does not do this for other subdomains, so a blog subdomain will not redirect anywhere unless you set that up yourself.

With Netlify DNS, an apex primary domain is fine, and many makers prefer the shorter URL. Pick one and keep it. Changing the primary domain later works, but every link you have shared since then goes through a redirect, and that includes the badge on your other projects. If you link your sites together with a "Built by" badge or a hub page, use the final primary URL in those links so they never pass through a hop.

How long does Netlify take to issue an HTTPS certificate?

Netlify gives no fixed time, but its own retry schedule tells you when to worry. Per the SSL troubleshooting page, Netlify retries certificate provisioning every 10 minutes for the first 24 hours, then once an hour for the following two days. It also says that if no certificate exists after 24 hours, "there's likely a DNS misconfiguration." So waiting longer rarely helps after the first day; fixing the records does.

Certificates come from Let's Encrypt and renew automatically, as the HTTPS docs explain. The exception is a custom certificate you upload yourself, which Netlify does not renew. When something blocks the certificate, the error messages map to specific fixes.

What you seeLikely causeFix
"Waiting on DNS propagation" for over 48 hoursRecords wrong or not live yetCheck A, CNAME or NS records with DNSChecker; correct them
"Your domain doesn't appear to be served by Netlify"Apex or www points elsewherePoint the apex to 75.2.60.5 or the ALIAS target, www to your netlify.app name
"DNS verification failed"Leftover AAAA record or extra A recordsDelete all AAAA records; keep a single apex A record
Certificate fails with CAA records presentCAA record does not allow Let's EncryptAdd Let's Encrypt to the CAA record or remove the CAA record
Fails on a Netlify DNS domainDNSSEC still on, or old name serversDisable DNSSEC at the registrar; confirm Netlify name servers are set

Source: Troubleshoot SSL and HTTPS, Netlify docs, read November 2026.

How do you check that the domain is set up correctly?

Check from outside your own machine, because your computer and router cache old answers. Netlify's troubleshooting page points to DNSChecker for looking up A, CNAME and NS records from many locations at once, and to Let's Debug for testing whether Let's Encrypt can issue a certificate. The page also says plainly that you need "100% correct DNS records propagated globally" before a certificate can be provisioned, as stated in the Netlify SSL troubleshooting docs.

From a terminal, dig www.example.com CNAME should return your netlify.app name, and dig example.com A should return 75.2.60.5 if you used an A record. If either returns an old host's address, that record is the problem. Then load both http:// and https:// versions of the apex and www in a private window and confirm each lands on your primary domain over HTTPS.

Once it works, a few follow-ups are worth ten minutes. Add the new domain as a property in Google Search Console and submit your sitemap. Update the URL in your social bios and project listings. If you are about to launch, the Product Hunt launch checklist assumes the final domain is in place, so do this first. And if you are still choosing a host, our comparison of free hosting for static sites covers how Netlify's free plan stacks up.

Sources

Frequently asked questions

Does Netlify charge for HTTPS on a custom domain?

No. Netlify's HTTPS docs say it offers free HTTPS on all sites, including automatic certificate creation and renewal through Let's Encrypt. You still pay your registrar for the domain itself each year, and a custom certificate you upload yourself does not auto-renew.

Why does Netlify say my domain is not served by Netlify?

The apex or www record still points to another host. Point the www CNAME to your netlify.app name and the apex to apex-loadbalancer.netlify.com or 75.2.60.5, remove old A and AAAA records, then wait for propagation before checking again.

Will moving my domain to Netlify break my email?

With external DNS, no: you only add website records and your MX records stay untouched. With Netlify DNS, your MX and TXT records must exist in Netlify's DNS panel before you switch name servers, so copy them over from your old provider first.

Can I use a subdomain like app.example.com on Netlify?

Yes. Add the subdomain in Domain management, then create a CNAME at your DNS host pointing that subdomain to your site's netlify.app name. Netlify only auto-redirects between apex and www, so other subdomains need their own redirect if you want one.

Do I need to remove AAAA records for Netlify?

Yes. Netlify's troubleshooting docs say to remove all AAAA records at your registrar or DNS host, because its load balancer does not support IPv6. A leftover AAAA record is one of the most common reasons the HTTPS certificate fails to provision.

Built by @gloverbuilds