Dub.co is the only link management platform that allows you to add custom domains for free. The number of domains that you can add depends on your plan:
- Free plan: 3 domains
- Pro plan: 10 domains
- Business plan: 20 domains
- Enterprise plan: Unlimited domains
This guide will show you how to add a custom domain to Dub.co.
Prerequisites
Before you begin, you'll need the following:
- A Dub.co account. If you don't have one, you can create one for free.
- A Dub.co workspace. If you don't have one, you can follow this guide to create one.
- A domain name. If you don't have one, you can choose one and purchase it from any one of the following domain registrars:
Step 1: Add a custom domain
Not sure which custom domain to use? Check out our guide on choosing a custom domain for some tips.
Once you have a custom domain, you can add it to your Dub.co project by following these steps:
- Navigate to your workspace's Domains page – you can do that by clicking on the Domains link in the menu bar at the top of your workspace dashboard.
- Click on the Add Domain button.
- Enter the domain you want to use and click Add domain.
Step 2: Configure your domain
After adding your domain, you'll be presented with a DNS record that you'll need to add to your domain's DNS settings.
Adding an apex domain
If you're adding an apex domain (e.g. example.com
), you'll need to add an A
record with the following values:
- Name:
@
(or leave it blank) - Value:
76.76.21.21
- TTL:
86400
(or the highest value possible)
Adding a subdomain
If you're adding a subdomain (e.g. go.example.com
), you'll need to add a CNAME
record with the following values:
- Name:
go
(or whatever subdomain you want to use) - Value:
cname.dub.co
- TTL:
86400
(or the highest value possible)
Note that we do not support using www.
as a subdomain, since the www.
subdomain will always redirect to the apex domain instead.
We recommend using the following variations for your subdomains:
go.example.com
try.example.com
links.example.com
l.example.com
If you're using Cloudflare as your DNS provider, you might need to configure some extra steps for it to work properly. Please refer to our guide on using Cloudflare domains with Dub.co for more information.
Step 3 (optional): Verify domain ownership
This step is only applicable if you are adding a domain that is currently being used on Vercel.
Since we use Vercel as the DNS provider for Dub.co, you'll need to verify that you own the domain before you can add it to your Dub.co workspace.
To do that, you'll need to add a TXT record with the following values:
- Name:
_vercel
- Value:
vc-domain-verify=go.yourdomain.com...
(the value will be provided to you on the Dub.co dashboard)
Warning: If you are using this domain for another site, setting this TXT record will transfer domain ownership away from that site and break it. Please exercise caution when setting this record.
For example: Make sure that the domain that is shown in the TXT verification
value (e.g. go.yourdomain.com
) is actually the domain you want to use as a
custom domain on Dub.co – and not your production site.
How long do I have to wait for my domain to work?
Domain configuration can take anywhere between 1 to 24 hours to complete. If your domain still doesn't work after 24 hours, please send us an email and we'll be happy to help you out.