Products
Subdomain Proxy
liveInstant *.xdns.wtf routing to any origin. One API call, zero DNS writes, sub-millisecond provisioning.
How it works
A single wildcard DNS record (*.xdns.wtf) routes all subdomain traffic through Cloudflare's edge to a Worker. The Worker parses the hostname, looks up the slug in D1, and proxies the request to your configured origin — preserving method, path, query string, and body.
Quick start
# Create a subdomain
curl -X POST https://xdns.wtf/api/tenants \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"slug":"myapp","target_origin":"https://myapp.vercel.app"}'
# { "ok": true, "fqdn": "myapp.xdns.wtf" }
# → live immediately, no DNS config neededAPI
POST
/api/tenantsCreate or upsert tenantGET
/api/tenants/:slugGet tenant detailsDELETE
/api/tenants/:slugRemove tenantRequest headers
The Worker adds these headers to every upstream request:
| Header | Value |
|---|---|
X-XDNS-Tenant | The tenant slug (e.g. myapp) |
X-XDNS-Subnet | subnet_id, if configured |
Limits
- · Slug:
^[a-z0-9-]{2,63}$ - · target_origin must be http:// or https://
- · Private IPs blocked (SSRF protection)
- · Reserved slugs: www, api, admin, docs, mail, etc.