Overview

Setting Up a Custom Domain

Use your own domain instead of docsbook.io for your documentation.

Required: PRO ($150 lifetime) or PRO+ ($59/month)

Why Use a Custom Domain?#

Benefits#

  • 🎯 Branding β€” documentation under your own domain
  • πŸ“ˆ SEO β€” links to your domain improve your ranking
  • πŸ” Trust β€” visitors see your domain, not someone else's
  • πŸ’Ό Brand consistency β€” looks like your own product

Examples#

❌ Without domain:
docsbook.io/mycompany/product

βœ… With domain:
docs.mycompany.com

Requirements#

  1. Your own domain β€” registered by you

  2. PRO or PRO+ plan β€” PRO is $150 lifetime, PRO+ is $59/month

    • If you haven't upgraded yet β€” do it now
  3. Access to DNS settings β€” at your domain registrar

Step 1: Open Settings#

  1. View your documentation while logged in
  2. Click the Float Widget in the bottom right
  3. Open Settings

Step 2: Enter Your Domain#

In the Custom Domain section:

  1. Enter your domain (e.g., docs.example.com)
  2. Click Save

Docsbook will generate the DNS configuration.

Step 3: Update DNS#

As soon as you type your domain, the Custom Domain section shows the exact DNS record to add, with a Copy button on every value β€” no need to look anything up. The record type depends on whether you use a subdomain or a root domain:

Subdomain (recommended, e.g. docs.example.com) β€” add a CNAME:

Name / Host Type Value
docs (just the subdomain) CNAME cname.vercel-dns.com

Root / apex domain (e.g. example.com) β€” most registrars reject CNAME on the root, so add an A record instead:

Name / Host Type Value
@ A 216.150.1.1

The admin panel shows the precise values for your domain (the exact IP or CNAME target Vercel recommends). Always copy from there β€” the values above are typical defaults.

Copy each value directly from the admin panel and paste it into the matching field at your DNS registrar.

Where to Change DNS?#

Open the control panel of your domain registrar:

GoDaddy#

  1. Open godaddy.com β†’ Sign in
  2. My Domains β†’ Select domain β†’ DNS
  3. Click "Add" next to DNS
  4. Fill in:
    • Type: CNAME
    • Name: docs
    • Points to: cname.vercel-dns.com
  5. Save

Namecheap#

  1. Open namecheap.com β†’ Sign in
  2. Domain List β†’ Manage
  3. Advanced DNS
  4. Add new record:
    • Type: CNAME
    • Host: docs
    • Value: cname.vercel-dns.com
    • TTL: 3600
  5. Save

Google Domains#

  1. Open domains.google.com
  2. Select domain
  3. DNS β†’ Custom records
  4. Create new record:
    • DNS Record Type: CNAME
    • Name: docs
    • Data: cname.vercel-dns.com
  5. Save

1and1 / Ionos#

  1. Sign in β†’ Domains
  2. Select domain
  3. Manage DNS
  4. Add record:
    • Type: CNAME
    • Subdomain: docs
    • Alias: cname.vercel-dns.com
  5. Save

Using a Root Domain#

If you want example.com (without docs):

  1. Our recommendation: use docs.example.com

    • Easier to configure
    • Lets you use example.com for the project site
  2. If you still want root:

    • Some registrars don't allow CNAME on root
    • Use an A record instead of CNAME β€” copy the exact IP shown in the admin panel for your domain (typically 216.150.1.1)
    • Contact support@docsbook.io for help

Step 4: Wait#

After adding the DNS record, updates propagate:

  • Usually: 15-30 minutes
  • Maximum: 48 hours

To check propagation, use the built-in "Check domain status" button in the Custom Domain section of the admin panel. It shows one of three statuses:

  • Domain verified! βœ“ (green) β€” DNS is live, your domain is active.
  • Waiting for DNS verification (yellow) β€” record not yet visible; DNS is still propagating (allow 15–60 minutes).
  • Conflicting DNS record found (yellow) β€” another record is interfering; remove it and try again.

You can also verify using DNSChecker: enter your domain and confirm it resolves to cname.vercel-dns.com.

Step 5: SSL Certificate#

Once DNS propagates, Docsbook automatically:

  1. Detects your domain
  2. Creates an SSL certificate (Let's Encrypt)
  3. Enables HTTPS

Your site is available at:

https://docs.example.com βœ…

Verifying Your Domain#

How to check everything is working?#

Method 1: Built-in status check (recommended)

  1. Open the Float Widget β†’ Settings β†’ Custom Domain
  2. Click "Check domain status"
  3. A green "Domain verified! βœ“" message confirms your domain is live

Method 2: Simple check

  1. Open in browser: https://your-domain.com
  2. Your documentation should load

Method 3: DNS check

# In terminal
nslookup docs.example.com
# Should show: cname.vercel-dns.com

Method 4: Online service

  1. Open mxtoolbox.com
  2. CNAME lookup
  3. Enter your domain
  4. Should show cname.vercel-dns.com

Troubleshooting#

DNS Not Updating#

Problem: 2+ hours have passed, but domain doesn't work

Solutions:

  1. Clear browser cache (Ctrl+Shift+Delete)
  2. Use a private browser window
  3. Check DNS via DNSChecker
  4. Verify the CNAME record is added correctly
  5. Wait another 24 hours

Old Site Still Showing#

Problem: DNS updated, but old version of site

Solutions:

  1. Press Ctrl+F5 (full cache clear)
  2. Open in private window
  3. Wait 24 hours

HTTPS Not Working#

Problem: https:// shows a certificate error

Solutions:

  1. Wait 1 hour β€” certificate is being created
  2. Verify DNS has updated
  3. Check domain name for typos
  4. Contact support@docsbook.io

Domain Shows Vercel or Error#

Problem: Visiting the domain shows a Vercel message

Solutions:

  1. Click "Check domain status" in Settings β†’ Custom Domain to see the current verification state
  2. Check the domain is added in Docsbook (visible in Settings)
  3. Make sure the DNS CNAME is correct
  4. Wait 1-2 hours for sync

CloudFlare proxy conflict#

Problem: Domain configured but not verifying, or showing SSL errors

Solution: If you use CloudFlare, set the DNS record to DNS only (grey cloud icon, not orange). The orange cloud (proxy mode) intercepts traffic before Vercel can verify the domain. Switch to grey cloud, then click "Check domain status" again.

Changing Your Domain#

How to switch to a different one?#

  1. Open settings
  2. Change the domain in the Custom Domain field
  3. Click Save
  4. Update DNS for the new domain
  5. The old domain will stop working

Removing Your Domain#

How to go back to docsbook.io?#

  1. Open settings
  2. Clear the Custom Domain field
  3. Click Save

Documentation returns to:

docsbook.io/username/repo

Best Practices#

1. Use a Subdomain#

βœ… docs.example.com
βœ… guide.example.com
βœ… api.example.com

❌ example.com (if your main site is there)

2. Tell People About the Domain#

Update links to your documentation everywhere:

  • GitHub README
  • Project website
  • Email signatures
  • Social media

3. Set Up Email (Optional)#

Now that you have a domain, you can add email:

This is a separate service from Docsbook, configured through your registrar.

4. Use for SEO#

Now that the site is under your domain:

  • Set up Google Analytics
  • Track traffic
  • Submit to search engines

What's Next?#

Updated