Lovable Domain Setup: A Record vs CNAME — Which One Do You Actually Need?
Why Your Domain Setup Decides Everything
If you have built an app on Lovable and you are ready to move beyond the default xxx.lovable.app URL, you have already made the most important business decision you can make at this stage. A custom domain is not just a cosmetic upgrade. It is the foundation of your brand’s credibility, your search engine authority, and the trust that converts visitors into paying clients.
But the moment you open your DNS settings and see the terms A Record and CNAME staring back at you, most people freeze. These two record types look similar on the surface, but they function in completely different ways and using the wrong one during your Lovable domain setup can leave your site broken, your SSL certificate unprovisionable, and your launch delayed by up to 72 hours of DNS propagation.
This guide is the only resource you need. Whether you are connecting a domain you already own or buying one directly through Lovable, you will know exactly which DNS record to use, why it matters, how to configure it correctly, and how to troubleshoot it when something goes wrong.
A custom domain is not a cosmetic upgrade. It is the foundation of your brand’s credibility, your search engine authority, and the trust that converts visitors into paying clients.
What Is a Custom Domain and Why Does Lovable Require Configuration
Every Lovable project gets a default URL in the format xxx.lovable.app. This URL works and it is shareable, but it carries Lovable’s branding instead of yours. It tells visitors that you are using a no-code tool on a free tier rather than presenting a finished professional product. Search engines treat it as a subdomain of lovable.app, which means any SEO authority you build goes to Lovable, not to your own brand.
A custom domain solves all of this. When you connect yourdomain.com or app.yourdomain.com to your Lovable project, you get a branded URL that looks professional, builds trust, and keeps all of your SEO equity under your own control. Lovable also automatically provisions a free SSL certificate for any connected custom domain, so your site runs on HTTPS without any extra configuration on your part.
Custom domains are available on paid Lovable plans. You can access domain settings from Project, then Settings, then Domains, or from the Publish modal under Custom Domain. You can set up a domain at any time, but the domain will not serve your app until you publish your project.
A Record vs CNAME: The Core Difference You Need to Understand
Before you touch a single DNS setting, you need to understand what these two record types actually do, because Lovable uses them in different scenarios and the choice is not arbitrary.
What Is an A Record
An A record is a DNS record that maps a domain name directly to an IP address. When someone types yourdomain.com into a browser, the DNS system looks up your A record and routes the visitor to the specific server at that IP address. A records are used for root domains and subdomains alike, and they are the standard record type that Lovable configures automatically when you buy a domain through them or connect an existing domain using their standard setup flow.
When you connect an existing domain to Lovable using manual setup, Lovable gives you a specific A record pointing to Lovable’s IP address. That A record is what allows Lovable to verify ownership of your domain and provision your SSL certificate. This is non-negotiable during the verification phase. Lovable must see your domain pointing directly to their IP before the setup can complete.
What Is a CNAME Record
A CNAME record, which stands for Canonical Name record, maps one domain name to another domain name rather than to an IP address. Instead of saying this domain resolves to this IP, a CNAME says this domain resolves to wherever that other domain points. The browser then looks up the target domain name separately to find the final IP address.
CNAMEs are commonly used for subdomains like www.yourdomain.com pointing to yourdomain.com, or for services that route traffic through a CDN or reverse proxy like Cloudflare. A CNAME cannot be used on a root domain by most DNS providers because it conflicts with how root domains handle other record types including MX records for email.
Which One Does Lovable Use
The answer depends entirely on how you are setting up your domain and whether you are using a CDN or reverse proxy.
Quick Decision Guide
Standard setup with an existing domain: Lovable provides an A record pointing to their IP address and a TXT record for ownership verification. You add both of these to your DNS provider. This is the default path for most users.
Domain purchased through Lovable: Everything is automatic. A records and TXT verification records are created for you. You do not need to touch any DNS settings.
Advanced setup with Cloudflare or a similar proxy: This is the only scenario where Lovable provides a CNAME record. When you enable the advanced proxy option during connection, Lovable gives you a CNAME to add to your DNS settings instead of an A record.
Step-by-Step: Buying a Domain Through Lovable
If you do not already own a domain, buying one directly through Lovable is the fastest and most seamless path. Here is exactly how the process works.
- 01: Access the Domains pageGo to Project, then Settings, then Domains, and click Buy new domain. You need to be a workspace admin or owner to complete this action.
- 02: Search for your domainEnter the domain name you want or browse suggested options. Prices are displayed in USD. Lovable supports most major generic top-level domains plus a limited set of country code extensions including .ai, .io, .co, .me, and .tv.
- 03: Review your orderAdjust the registration term from one to ten years, toggle auto-renew, and enter your ICANN-required registration contact details. Registration details cannot be changed after purchase, so enter them carefully.
- 04: Verify your email if requiredIf the registration email matches your verified Lovable account email, verification is automatic. Otherwise you will receive a verification email and must click the confirmation link before the deadline.
- 05: Complete checkoutAfter confirming purchase through Stripe, Lovable automatically registers the domain, creates A records and TXT records, provisions a free SSL certificate, and connects both yourdomain.com and www.yourdomain.com to your project.
All domains purchased through Lovable belong to your workspace, not a single project. You can view and manage all domains in Workspace Settings under Workspace Domains and connect any domain to any project within your workspace at any time.
Step-by-Step: Connecting an Existing Domain to Lovable
If you already own a domain through a registrar like Namecheap, GoDaddy, Google Domains, Cloudflare, or another provider, here is how to connect it to your Lovable project.
- 01: Open domain settingsGo to Project, then Settings, then Domains, and click Connect domain.
- 02: Enter your domainType in the full domain or subdomain you want to connect, for example yourdomain.com or blog.yourdomain.com, then click Connect domain to open the Entri configuration modal.
- 03: Choose your setup methodAutomatic setup through Entri detects your DNS provider and configures the required records on your behalf. Manual setup shows you the exact A record and TXT record values to copy into your DNS provider’s control panel.
- 04: Add the DNS records correctlyLovable suggests a host name for the A record. Depending on your provider this may need to be @ for the root domain, left blank, or set to the full domain name. Amazon Route 53, for example, requires the host name to be left blank or set to the domain name.
- 05: Remove any AAAA recordsThis is the step most guides skip. If your domain has any AAAA records configured, they will interfere with Lovable’s domain routing and cause traffic to be directed incorrectly. Check your DNS settings and delete all AAAA records before or immediately after adding Lovable’s A record.
- 06: Verify and waitClick Done. DNS propagation can take anywhere from a few minutes to 72 hours. Once verification is complete, Lovable automatically issues your SSL certificate and your domain status becomes Live.
When connecting a domain purchased outside of Lovable, the www subdomain is not added automatically. If you want both yourdomain.com and www.yourdomain.com to work, add each one separately in your domain settings.
Understanding Lovable Domain Statuses
One of the most common sources of confusion during Lovable domain setup is not understanding what each status actually means. Here is a clear breakdown of every status you might encounter.
| Status | What It Means | Action Required |
|---|---|---|
| Pending | Domain is being registered and configured. DNS records and SSL are being set up. | None. Wait for setup to complete. Click Check status if a warning appears. |
| Live | Domain is fully configured and actively serving your Lovable project with SSL enabled. | None required. |
| Ready | DNS and SSL are correctly configured but your project has not been published yet. | Publish your project. |
| Action Required | The custom domain setup was not completed. | Click Complete setup to finish the connection process. |
| Verifying | Lovable is waiting for your DNS records to propagate. | Click Check status periodically. Verify your A and TXT records at your DNS provider. |
| Unable to Verify | DNS verification did not complete within one hour. Records are likely incorrect or still propagating. | Click Check status and double-check both records. DNS can take up to 72 hours. |
| Setting Up | Verification complete. SSL certificate is being issued. | None. Domain will move to Live or Failed automatically. |
| Failed | Ownership verified but SSL certificate could not be provisioned. | Click Retry. |
| Offline | Domain was Live but DNS records are no longer valid. | Click Recover and update your DNS records at your provider. |
| Removed | Domain was removed because it was added to another project or DNS verification never completed. | Click Reconnect to start again. |
Advanced Setup: Using Cloudflare or a Reverse Proxy With Lovable
For users who need to route traffic through Cloudflare, CloudFront, Fastly, or a similar CDN or reverse proxy before it reaches Lovable, there is an advanced configuration option. This is the one scenario in a standard Lovable workflow where you will use a CNAME record instead of an A record.
When you connect a domain and expand the Advanced section, you will see the option labeled Domain uses Cloudflare or a similar proxy. When you enable this and click Connect domain, Lovable provides a CNAME record value. You then add this CNAME to your DNS settings at your provider instead of the standard A record.
Critical Warning
During the verification phase of a standard manual setup, do not enable proxying on the A record before verification is complete. If you enable Cloudflare’s orange cloud proxy mode on the A record before Lovable finishes verifying your domain, your domain will stay in the Verifying state indefinitely. Only enable the advanced proxy option if you are intentionally using the CNAME-based advanced flow from the very beginning of your setup.
You are responsible for configuring and maintaining your CDN or proxy. Lovable does not configure, validate, or monitor your CDN or proxy setup. Traffic will flow through your proxy layer before reaching Lovable, which means any configuration errors on the CDN side will directly affect your site’s availability.
Primary Domains, Redirects, and Multiple Subdomains
Lovable allows you to connect multiple domains and subdomains to a single project, but only one can be designated as the primary domain at any time. Understanding how this works is important for SEO and user experience.
The domain status must be Live before you can set it as primary. Go to Project, then Settings, then Domains, click the three dots menu next to a Live domain, and click Set as primary. Once a domain is marked as primary, all other connected domains redirect to it automatically. This is the correct configuration for SEO because it consolidates your canonical authority into a single domain and avoids duplicate content issues.
You can connect multiple subdomains such as blog.yourdomain.com, app.yourdomain.com, and shop.yourdomain.com to different projects within your workspace. Each subdomain must be added and configured individually. You cannot connect the same exact domain to multiple projects, but you can connect different subdomains of the same root domain to different projects.
Troubleshooting Lovable Domain Setup Problems
Even with correct configuration, domain setup issues happen. Here are the most common problems and exactly how to resolve them.
Domain Never Becomes Live
Use a DNS lookup tool such as dnschecker.org to confirm that your domain’s A record resolves to the IP address Lovable provided. DNS changes can take up to 72 hours to propagate globally. Verify that your TXT record is added with the full value Lovable requires. Go to Project, then Settings, then Domains to see what records Lovable is expecting. Try clearing your browser cache or testing in an incognito window. If all else fails, remove the domain from your project settings and re-add it.
Domain Shows Wrong Site or Old Version
This is almost always caused by an AAAA record. An AAAA record maps your domain to an IPv6 address and can override your A record, routing traffic to a different server entirely. Go to your DNS provider, check for any AAAA records associated with your domain, and delete all of them. After the DNS change propagates, retry connecting your domain in Lovable.
Domain Stays in Verifying State During Manual Setup
This happens when the A record is modified or proxied before verification completes. The A record must point directly to Lovable’s IP address with no proxy layer in front of it. If you have enabled Cloudflare’s orange cloud proxy mode on the A record, disable it and switch to DNS-only mode. Wait for the change to propagate, then check your domain status again in Lovable.
SSL Certificate Not Issued After 72 Hours
If your domain shows as verified but the SSL certificate has not been issued after 72 hours, reach out to Lovable Support directly. Under normal circumstances SSL is provisioned automatically once ownership is verified. A delay beyond 72 hours indicates an issue that requires their team to investigate.
SEO Impact of Custom Domains on Lovable Projects
Connecting a custom domain to your Lovable project is one of the highest-leverage SEO actions you can take at the launch stage. A custom domain consolidates your brand, backlinks, canonical URLs, and search visibility under a domain you control. Every backlink pointing to yourdomain.com builds authority for your domain, not for lovable.app.
Once your domain status shows as Live, run an SEO review inside Lovable. This review checks indexing status, canonical URLs, sitemap availability, metadata completeness, and other live-site signals against the correct host. Then verify your domain in Google Search Console and submit your sitemap either through the Google Search Console connector in Lovable or directly in Search Console.
Do not skip the Google Search Console verification step. Even if your site looks correct in a browser, search engines need explicit signals to crawl and index your content correctly, and Search Console is the most direct way to send those signals. If you change your primary domain after the initial setup, rerun the SEO review so Lovable re-checks everything against the new host.
When to Handle This Yourself vs When to Use a Professional Setup Service
Lovable’s domain configuration system is well-designed and the automatic setup through Entri removes most of the complexity for common cases. If you are comfortable logging into your DNS provider, copying and pasting two or three record values, and waiting for propagation, you can handle a standard setup on your own using the steps in this guide.
There are situations where professional assistance saves significant time and prevents costly mistakes. If you are managing multiple domains across different clients or projects, if your domain is on a provider with a complex interface or unusual record naming conventions, if you need to configure a CDN or reverse proxy layer alongside your Lovable setup, if your domain has existing DNS records for email or other services that must not be disrupted, or if a previous failed setup attempt has left your domain in an inconsistent state, working with someone who has done this process many times over is the more efficient choice.
Our domain setup service handles the complete Lovable domain configuration for you. We review your existing DNS records, configure the correct A record or CNAME based on your infrastructure, remove any conflicting AAAA records, verify propagation, confirm SSL provisioning, set up your primary domain and redirects, and run an initial SEO check once your domain is live.
Conclusion: Get Your Lovable Domain Live the Right Way
The difference between an A record and a CNAME in your Lovable domain setup is not just a technical detail. It determines whether your domain verifies correctly, whether your SSL certificate gets issued, and whether your site goes live on schedule or gets stuck in a 72-hour troubleshooting loop.
To summarize what you need to know: use the A record that Lovable provides for standard domain connections, remove any AAAA records that might be present, add the TXT verification record alongside the A record, and only use a CNAME when you are intentionally routing traffic through Cloudflare or a similar proxy using Lovable’s advanced setup option. If you purchased your domain directly through Lovable, you do not need to configure any of this manually because Lovable handles all DNS records automatically.
Once your domain is live, set your primary domain, run Lovable’s built-in SEO review, verify your domain in Google Search Console, and submit your sitemap. These steps transform a working domain into a properly indexed, professionally presented web presence that builds authority over time.
Frequently Asked Questions About Lovable Domain Setup
Can I set up a domain before publishing my Lovable project?
Yes. You can buy a domain through Lovable or connect an existing domain at any time, even before your project is published. The domain will show a Ready status instead of Live until you publish. Once you publish your project, the domain begins serving your app automatically.
Can I connect multiple domains to one Lovable project?
Yes. You can connect multiple domains and subdomains to a single project. You set one as the primary domain and all others redirect to it automatically. Each domain must be added and verified individually.