What DNS records does Lovable need?
Last checked 31 Aug 2026
Short answer
Lovable shows the exact records to add when you connect a domain — typically an A record for the root/apex domain and a CNAME for `www` (or a subdomain), plus any verification record it asks for.
Where to find the exact records
The specific values (IP address, CNAME target, verification token) are generated per project when you add a domain in Project settings → Domains — always use the records shown there rather than guessing or reusing values from another project or tutorial, since they can be project-specific.
What the record types generally do
| Record | Purpose |
|---|---|
| A | Points your root domain (e.g. mydomain.com) to Lovable's server IP |
| CNAME | Points a subdomain (e.g. www.mydomain.com) to Lovable's hosting |
| TXT (sometimes) | Verifies you own the domain before Lovable issues SSL |
Exactly which combination you need depends on whether you're connecting the root domain, www, or both.
What DNS records do I need to add for mydomain.com and www.mydomain.com?
How to add them
- Copy the values exactly from Lovable's Domains panel.
- Add them in your DNS provider's control panel (registrar, or Cloudflare/similar if that's where your nameservers point).
- Avoid extra trailing dots, stray spaces, or leaving an old conflicting record for the same host in place.
What usually goes wrong
- Copying values from an old screenshot or someone else's setup instead of your own project's current values.
- Adding the CNAME for
wwwbut forgetting the A record for the root, so only one variant of the domain works — see how-do-i-connect-www-and-non-www-versions. - DNS provider silently modifying records (Cloudflare's proxy, for instance) — see how-do-i-connect-a-cloudflare-domain-to-lovable.
Sources
Was this answer helpful?
Related questions
- AnswerHow do I connect my own domain to Lovable?In Project settings, go to Domains, add your domain, and create the DNS records Lovable gives you (usually an A record or CNAME) at your domain registrar or DNS host — then wait for verification, which can take anywhere from minutes to a few hours.
- AnswerHow long does a Lovable domain take to connect?Usually a few minutes to a couple of hours once the DNS records are correctly added, but full global DNS propagation can technically take up to 48 hours in rare cases.
- AnswerHow do I publish a Lovable website?Click Publish in the top-right of the Lovable editor; it deploys your current version to a live `*.lovable.app` URL (or your connected custom domain) in under a minute.
- AnswerHow do I change the favicon?Ask Lovable in chat to update the favicon, and upload or link the image you want — Lovable will swap the icon file and reference it in the page head for you.