Connect a domain · Replit

How to connect a domain to Replit

Built your site with Replit? Here's exactly how to point a custom domain at it — DNS, apex vs www, and SSL — plus what Domain Agent will soon do for you.

Search domains on JustDomain.aiJoin the waitlist
The short answer

Connect a custom domain to a Replit Deployment from the Publishing tool's Domains tab: click 'Link a domain' and enter your domain. Replit either configures DNS automatically (supported registrars) or shows an A record and a TXT verification record to add manually. Replit then issues and auto-renews the SSL certificate via DNS validation.

How connecting a domain to Replit works

Replit uses an A record + TXT pair (not a CNAME), and both values are generated per-domain and shown in your Domains tab — Replit does not publish a fixed A-record IP, so copy the exact IP and TXT value from your own dashboard rather than reusing one from a blog.

The TXT record (replit-verify=…) must stay in DNS permanently — removing it after setup breaks the next certificate renewal. Linking the apex does NOT serve www; add www as a separate linked domain with its own records. SSL is issued and renewed by Replit automatically.

DNS records to set at your registrar

TypeHostValueNotes
A@ (apex)Shown in your Replit Domains tabGenerated per-domain — copy exactly; there is no fixed public IP.
TXT@ (or as shown)replit-verify=… (shown in dashboard)Must remain permanently or certificate renewal fails.
A + TXTwwwseparate values shown by Replitwww is NOT auto-served — link it as its own domain.

Values verified from Replit's official docs, as of June 2026. Providers can change these — confirm against Replit's current dashboard.

Step by step

  1. Have or buy the domain (search and register on JustDomain.ai).
  2. Open your Deployment → Publishing tool → Domains tab.
  3. Click 'Link a domain' and enter your domain name.
  4. Either authorize Replit to configure DNS automatically, or copy the shown A and TXT records for manual setup.
  5. At your registrar, paste the A record and the replit-verify=… TXT record exactly as shown.
  6. To also serve www, link www.yourdomain.com separately with its own records. Wait for propagation; Replit shows 'Verified' and issues HTTPS.

Common gotchas

  • Never delete the replit-verify TXT record — it's needed for ongoing cert renewal, not just setup.
  • Linking the apex does not cover www — add www as its own linked domain.
  • Don't reuse an A-record IP from a tutorial — the IP and TXT are generated for your specific domain.
  • Common failures: a trailing dot, an extra/stale record, or a subdomain typo. Copy values verbatim.
Questions
An A record plus a replit-verify=… TXT record, both shown in your Domains tab.

Sources: Replit — Custom domains (Deployments) · Replit — Publishing custom domains

Other tools

Get your domain for your Replit site

Search and buy on JustDomain.ai today — and join the waitlist to have Domain Agent do all of this for you.

Search domains on JustDomain.aiJoin the waitlist