Products

Subdomain Proxy

live

Instant *.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 needed

API

POST/api/tenantsCreate or upsert tenant
GET/api/tenants/:slugGet tenant details
DELETE/api/tenants/:slugRemove tenant

Request headers

The Worker adds these headers to every upstream request:

HeaderValue
X-XDNS-TenantThe tenant slug (e.g. myapp)
X-XDNS-Subnetsubnet_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.