Custom Domains 101

How custom domain routing works

When you add a custom domain on moonbase, your domain's DNS must point to moonbase (IP: 5.75.141.29). moonbase receives the request, matches it to your mission by hostname, and passes it on to your running app. SSL is provisioned automatically via Let's Encrypt.

Apex domain (example.com)

Add an A record:

Type: A

Name: @ (or leave blank)

Value: 5.75.141.29

TTL: 300 (or your registrar's minimum)

Apex domains cannot use CNAME records (DNS spec). Only A records work here.

Subdomain (www.example.com or app.example.com)

Add a CNAME record:

Type: CNAME

Name: www (or app, etc.)

Value: your-mission-slug.moonbase.host (the real address shown on your Domains page once you add the domain there -- never a wildcard like *.moonbase.host; a wildcard is not a legal CNAME value and every registrar rejects it)

TTL: 300

CNAME records are preferred for subdomains — they follow IP changes automatically.

Verification and SSL provisioning

Add both the routing record (A or CNAME) and the ownership TXT record shown on your Domains page. The TXT name starts with _moonbase-verify. and the value starts with moonbase-verification=; use the exact record for this domain from your account, not another mission's token.

Click 'Verify'. moonbase checks ownership and routing before provisioning SSL. DNS propagation and certificate issuance can take time; the Domains page shows the current state. The domain shows 'SSL Active' once the certificate is live.

Cloudflare users

If you use Cloudflare, set the proxy mode to DNS-only (grey cloud, not orange). moonbase uses Let's Encrypt, which conflicts with Cloudflare's SSL proxy. With DNS-only, your traffic routes directly to moonbase and Let's Encrypt works normally.

Propagation time

DNS changes can take 0-48 hours to propagate globally. Most registrars propagate in under an hour. You can check propagation with a tool like dnschecker.org. The moonbase verify button checks from our server, which may resolve before your local DNS does.