Skip to content
Sections

Custom domains

Serve your HTTPS tunnel on your own address—like api.example.com—instead of *.prontaro.run.

On this page11

No nameserver changes required: add two records at any DNS host (Route 53, Cloudflare, Namecheap, DigitalOcean, Porkbun), and Prontaro issues and renews Let’s Encrypt TLS certificates automatically via DNS-01.

Custom domains work with HTTPS tunnels only and are included on all paid plans: 1 on Tunnels, 5 on Dedicated, and 20 on Pro.

You can add more with a domain pack in Plans. Custom domains are not available on Free.

How it works

Each custom domain attaches to an HTTPS tunnel and inherits its settings: access rules, Basic Auth passwords, binding to a shared Prontaro address or dedicated IPv4, and quotas:

text
Visitor / Webhook (https://api.example.com)
       │  DNS points to Prontaro edge (CNAME / ALIAS / A)
       ▼
Prontaro Edge Node  ── serves Let's Encrypt ECDSA P-256 cert
       │  passes Host: api.example.com & X-Forwarded-Host
       ▼
prontaro CLI  ──▶  Local server (127.0.0.1:3000)

Two DNS records: domain and TLS certificate

When you attach a domain, Prontaro generates a unique token and gives you the exact records to create:

Domain type Domain record (CNAME / A) Certificate record (_acme-challenge)
Subdomain (api.example.com) CNAME → <token>.d.prontaro.run. _acme-challenge.api.example.com CNAME → _acme-challenge.<token>.d.prontaro.run.
Root domain (example.com) on own IP A → your dedicated IPv4 _acme-challenge.example.com CNAME → _acme-challenge.<token>.d.prontaro.run.
Root domain (example.com) on shared Prontaro address ALIAS/ANAME → <token>.d.prontaro.run. (or shared A) _acme-challenge.example.com CNAME → _acme-challenge.<token>.d.prontaro.run.

If you move a tunnel between the shared Prontaro address and a dedicated IP, you do not need to update the subdomain’s CNAME record. For a root domain on the shared Prontaro address without ALIAS/ANAME support, Prontaro provides the shared A record and notifies you by email if that address ever changes.

Zero-downtime TLS cutover

Certificate issuance depends only on _acme-challenge, not on the domain record (CNAME / A). To migrate a live hostname without TLS errors:

  1. Add only the _acme-challenge CNAME first.
  2. Click Check DNS in the dashboard and wait until the certificate is issued.
  3. Point your domain record (CNAME or A) to Prontaro—the very first request receives a valid certificate.

Setup and management

Custom domains are added, checked, moved, and removed in the Prontaro dashboard (connected domains also appear next to their tunnels in prontaro ls):

  1. Open the target HTTPS tunnel under Tunnels.
  2. Click Add domain, enter your hostname (for example api.example.com), and copy both DNS records from the dialog.
  3. Create the records at your DNS provider, then click Check DNS without waiting for the next scheduled check.
  4. From the same page, you can move the domain to another HTTPS tunnel, remove it, or turn off the default *.prontaro.run address.

Turning off the default *.prontaro.run address

By default, the built-in *.prontaro.run URL keeps working alongside your custom domain (prontaro ls lists your custom domain first). To serve traffic only on your own domain:

  1. Open the tunnel in the Prontaro dashboard.
  2. Turn off the default *.prontaro.run address—it stops answering as long as at least one custom domain is working on that tunnel.

prontaro ls shows (paused while custom domain is active) next to the default URL. If you remove the last custom domain in the dashboard, Prontaro warns that *.prontaro.run will become active again; you can also re-enable it manually in the dashboard anytime.

For web apps with sign-in, a custom domain with *.prontaro.run turned off is the most reliable setup: browsers treat all subdomains of prontaro.run and prontaro.dev as one site, so cookies scoped to the parent domain are not isolated. If you keep a sign-in app on a shared subdomain, set session cookies without Domain, prefix them with __Host-, and verify CSRF with a token.

Limits and notes

  • HTTPS tunnels only. Custom domains work only with HTTPS tunnels—you cannot attach a domain to a TCP tunnel.
  • No wildcard or uploaded certificates. Each hostname (api.example.com, www.example.com) is added and counted individually toward your plan limit. Uploading custom keys or certificates is not supported.
  • Keep _acme-challenge in place. If you remove it after issuance, the active certificate keeps working until expiry, but cannot be renewed—once it expires, HTTPS will stop working (Prontaro emails reminders 21, 7, and 1 day ahead).
  • Renaming vs. deleting tunnels. prontaro rename leaves attached domains and certificates untouched; prontaro rm deletes the tunnel along with all domains attached to it.
  • Domains awaiting DNS setup. A domain does not take a plan slot until its DNS records are in place.
  • Plan downgrades. If a plan change lowers your allowance below the number of active domains, the newest domains pause until you free a slot or add a domain pack.

FAQ

DNS check cannot see _acme-challenge

Many DNS panels automatically append the root domain, turning _acme-challenge.api.example.com into _acme-challenge.api.example.com.example.com—enter _acme-challenge.api instead.

Verify in public DNS with dig CNAME _acme-challenge.api.example.com. On Cloudflare, double-check that the record is DNS only.

Local app rejects requests due to Host header

Prontaro forwards Host: api.example.com and X-Forwarded-Host: api.example.com. If your local dev server (such as Vite or Webpack) blocks unknown hosts, allow the domain in your app config or start the tunnel with --host-header localhost.

Can I attach multiple domains to one tunnel?

Yes—add each hostname to the same tunnel within your plan’s custom domain limit.

Next steps

Something wrong on this page? Contact us

Contact us

Enter your email so we can reply.Enter a valid email, e.g. name@company.example.
Tell us what you need or what went wrong.up to 2,000 characters

Sent! We’ll reply to .

Or email us at support@prontaro.com