Skip to content
Y
YAS.SH
Developers

Custom Domains for Short Links: DNS, TLS and SPF

Run branded short links on your own domain without breaking email.

mohamed-elsaadouni9 min readcustom-domaindnsbranded-links
Custom Domains for Short Links: DNS, TLS and SPF
Featured imageCustom Domains for Short Links: DNS, TLS and SPF

Custom Domains for Short Links: DNS, TLS and SPF

A short link like go.yourbrand.com/ab3x7 is more than cosmetics. It builds trust — people are far more likely to click a recognizable branded link than a random string from an unfamiliar domain. It also improves click-through on trust-sensitive channels like email and SMS.

But putting short links on your own domain means getting the DNS, TLS, and SPF right — especially the last one, because the subdomain you choose can silently break your email if you're not careful. This guide walks through all three.

Why a branded short domain matters

Recognition is trust. A branded short link tells the recipient "this came from yourbrand" before they click. That:

  • Raises click-through — people are more comfortable clicking a known brand.
  • Reduces spam-filter suspicion — some filters are wary of unknown short domains.
  • Strengthens your brand — every link reinforces it.

The cost is the setup work in this guide — which is why many shortener platforms offer custom domains as a paid feature.

DNS: point the subdomain at your shortener

The first step is choosing a subdomain and pointing it at the short-link service. Common choices: go.yourbrand.com, link.yourbrand.com, lnk.yourbrand.com.

Two ways to point it:

  • CNAME — point go at the shortener's provided hostname (e.g. links.yourbrandshortener.com). Good if the platform manages the IP.
  • A record — point go at the platform's IP directly. Good if you want control or need a root domain.

The exact record is usually provided by your short-link platform. Verify the record propagates with a DNS lookup (/tools/dns-lookup) before relying on it.

TLS: HTTPS is non-negotiable

Short links should always be served over HTTPS. A link that shows "not secure" defeats the trust purpose and hurts click-through.

  • The shortener platform usually provisions a TLS certificate for your custom domain automatically.
  • You should also confirm the destination (your real site) is HTTPS, and that your links use https.

A short domain served over plain HTTP is a red flag to users and filters.

SPF: the part that breaks email

Here's the trap. If the same domain is used for both email and short links, you can accidentally break SPF.

SPF says "these servers may send email for this domain." When you use a subdomain like go.yourbrand.com for short links, and a separate yourbrand.com or mail.yourbrand.com for email, there's usually no conflict — the subdomain go. isn't involved in SPF for yourbrand.com unless you include it.

But if you use a subdomain that is in your SPF (or if you add the short-link service to your SPF for a domain you also send mail from), you can:

  • Add too many include lookups (the 10-limit again — see SPF mistakes).
  • Accidentally allow the shortener to be an authorized sender, or create ambiguity.

The safe pattern:

  1. Use a dedicated subdomain (go.yourbrand.com) that is only for links.
  2. Don't send email from that subdomain. Keep your mail on yourbrand.com or mail.yourbrand.com with their own SPF/DKIM/DMARC.
  3. Don't add the shortener to your mail domain's SPF unless it actually sends email for you. Short links don't send email; they just redirect.

If the shortener does send transactional email (e.g. click notifications) from the domain, then include its sender in SPF — but keep that separate from the link-only subdomain.

DMARC and DKIM

If you're hardening your mail (see DMARC migration), keep your link subdomain out of the mail authentication path. A link-only subdomain doesn't need DKIM or SPF, and adding them creates no benefit — and risks the lookup-limit or alignment issues described above.

A practical setup

  1. Choose go.yourbrand.com (dedicated, not used for mail).
  2. Add the CNAME or A record the shortener provides.
  3. Confirm HTTPS is provisioned.
  4. Verify with /tools/dns-lookup and a link test.
  5. Confirm your email domain (yourbrand.com) has its own healthy SPF/DKIM/DMARC, and that the link subdomain isn't interfering.

The takeaway

A branded short domain is worth it for trust and click-through — just set it up deliberately. Point a dedicated subdomain at your shortener with the right DNS, make sure it's HTTPS, and keep it separate from your email domain so SPF, DKIM, and DMARC stay clean. Do that and your branded links build trust without breaking your mail.

To learn more, see the custom domains setup guide and how to choose short codes.

Frequently asked questions

Why use a custom domain for short links?

A branded short domain looks trustworthy and recognizable, which raises click-through and reduces suspicion. Users see 'go.yourbrand.com' and trust it more than a generic short domain.

Do short links on my own domain affect email?

They can. If your short-link domain is also used for email, you must include the short-link sender in SPF or you'll break (or fail) SPF for that domain. Keep the short domain separate from your email domain to avoid conflicts.

What's the safest way to set up a branded short domain?

Use a dedicated subdomain (e.g. go.yourbrand.com) separate from your mail domain, add a CNAME or A record, provision TLS, and don't set SPF/DKIM on a subdomain you only use for links.

Was this helpful? Share
🍪 Cookies & privacy. yas.sh uses only essential cookies to keep you signed in and remember your preferences. We do not run third-party trackers. See our cookie policy and privacy policy.
Settings