Skip to navigation

Bring Your Own Domain

Serve your links from your own domain, such as go.example.com.
View as Markdown

Instead of the shared dvt.fyi domain, you can serve your links from a domain you own. You keep your DNS where it is: you add two records and Divertly handles the rest, including SSL certificates, which are issued automatically and need no renewal.

Using your own domain requires a paid plan: Dev includes one custom domain, Team five, and Scale ten. Free uses the shared dvt.fyi domain. See Subscriptions.

Some domains can’t be added: Divertly’s own domains, and sensitive categories such as government, military, and education domains. This prevents impersonation.

Pointing your whole domain’s nameservers at Divertly isn’t available yet. It’s coming soon. For now, add the records below at your existing DNS provider.

We recommend a subdomain, such as go.example.com, so the rest of your domain stays untouched.

1. Add the domain

From Domains > New Domain, enter the fully-qualified domain name, for example go.example.com, with no spaces, and leave Enabled checked.

2. Point it at Divertly

At your DNS provider, add a CNAME record:

TypeNameValue
CNAMEgo.example.comproxy.divert.ly

3. Verify you own it

Verification proves the domain is yours. From the domain’s page, click the verify icon. Divertly shows the record to add:

TypeNameValue
TXT_divertlydivertly-verify=go.example.com

Add it at your DNS provider. DNS changes can take up to 24–48 hours to propagate, but usually finish much sooner. When the record is visible, click Verify. A verified domain shows a checkmark.

Divertly re-verifies the TXT record periodically. Leave it in place, because removing it can cause the domain and every route under it to be disabled. You’ll get an email if a domain’s verification status changes.

4. Create routes

Create routes on the new domain exactly as you would on dvt.fyi, with the difference that paths only need to be unique within your own domain. See Routes and Divertly in 10 Minutes.

Doing it through the API

# Add the domain
curl -X POST https://api.divert.ly/v1/domains \
-H "Authorization: Key $CREDENTIAL" -H "Content-Type: application/json" \
-d '{"name": "go.example.com", "description": "Marketing links"}'
# Get the DNS records to publish
curl https://api.divert.ly/v1/domains/{domain_id}/verify-info \
-H "Authorization: Key $CREDENTIAL"
# After publishing them, check verification
curl https://api.divert.ly/v1/domains/{domain_id}/verify \
-H "Authorization: Key $CREDENTIAL"

If something goes wrong

See Troubleshooting.