ccnames.dev

cnames.dev / blog

Comparison10 min read

Custom domain infrastructure: build vs buy, with a TCO calculator

An interactive calculator and honest breakdown of what custom-domain infrastructure really costs to build vs buy — per-domain pricing across cnames.dev, Cloudflare, SaaSKevin, Entri, and self-host.

S
Saeed
July 6, 2026

Should you build custom-domain infrastructure or buy it? The sticker prices make buying look expensive and building look free. The total cost of ownership tells a different story, because the real cost of building is not servers — it is engineering and on-call time. Use the calculator, then read the honest breakdown.

ProviderEst. monthlyPer domainBasis
cnames.dev$49$0.049$49/mo per 1,000 domains
Cloudflare for SaaS$115$0.115$90 hostnames + $25 base plan (100 free)
SaaSKevin$150$0.1500.15/domain/mo, scales linearly
Entri$249+Published entry price; higher tiers sales-led
Self-host (Caddy)$60+Infra floor only — excludes engineering + on-call

Estimates for comparison only, using publicly listed pricing as of July 2026. Cloudflare figures assume a $25/mo base plan and exclude bandwidth, WAF, and Enterprise features; Entri and self-host are floors, not per-domain rates. Re-verify each vendor's live pricing before making a decision.

What the calculator does and doesn't include

The numbers above are directional, using publicly listed pricing as of July 2026. They cover the vendor cost. What they deliberately leave out is the expensive part of building: your team's time. That is the whole point of a TCO comparison.

The DIY cost that is not on the invoice

A single-node Caddy setup with on-demand TLS genuinely works in a weekend. Then production arrives and you build, and maintain:

Put a conservative number on it: a few engineer-weeks to build, then a slice of an engineer's time indefinitely to maintain. At a loaded cost of, say, $12k/month for an engineer, even 15% of their time is $1,800/month — more than the managed fee for thousands of domains. The infra line ($60/mo of servers) is a rounding error next to it.

When building is the right call

Building genuinely wins when custom domains are so central to your product that you need to own edge behavior others can't give you, or your scale is large enough that per-domain fees would exceed a dedicated team. That is a real place to be — it is just further out than most teams think. The honest self-host trade-off is in cnames.dev vs self-hosting Caddy on-demand TLS.

When buying wins

For nearly everyone else, a managed per-domain fee is cheaper than the engineering it replaces and ships in an afternoon. That is the case for cnames.dev: $49/mo per 1,000 domains, free for 25, SSL and edge routing and real client IP included, one API call per domain. Compare the managed options in Cloudflare for SaaS pricing and Entri pricing explained, and see the full architecture you would otherwise be building in the complete guide.

Building a SaaS that needs custom domains? cnames.dev gives every customer their own domain — SSL, edge routing, and per-tenant isolation in one API call. Free for 25 domains, no demo call. Start free · Read the docs

Frequently asked questions

Is it cheaper to build or buy custom-domain infrastructure?

For a weekend prototype, building with Caddy on-demand TLS is cheapest — a single node and a free CA. At production scale the true cost of building is engineering and on-call time (issuance retries, multi-node cert storage, anycast, DDoS, observability), which almost always exceeds a managed per-domain fee.

What is the real cost of self-hosting custom domains?

Not the servers ($40–80/mo). It is the engineering to build rate-limit-aware issuance, share certificates across nodes, forward the real client IP, fail closed on unknown hosts, and stay on call in the TLS path for someone else's production traffic. Budget weeks of build plus ongoing maintenance.

When does buying stop making sense?

When custom domains are so core that you need deep control of the edge, or your volume is large enough that per-domain fees dwarf a dedicated infra team. Most SaaS never reach that point; the managed option wins on total cost of ownership.

Keep reading

S

SaeedFounder, cnames.dev — runs custom-domain infra for 5,000+ production sites at Lindo.ai.