---
title: Custom domain implementation guides
description: Build secure SaaS custom-domain workflows with practical TypeScript guides for setup, DNS, polling, persistence, testing, and troubleshooting.
---

These implementation guides show how to turn Domain SDK's provider-independent API into a complete custom-domain workflow for a multi-tenant SaaS application. Start with the settings-page guide, then follow the focused guide for the part of the lifecycle you are building.

## Build the workflow

**[Build a custom-domain settings page](/docs/guides/custom-domain-settings-page)**

**[Add and remove customer domains](/docs/guides/add-remove-domains)**

**[Display DNS records correctly](/docs/guides/display-dns-records)**

**[Store domain state](/docs/guides/store-domain-state)**

**[Poll until active](/docs/guides/poll-until-active)**

## Handle edge cases safely

**[Troubleshoot pending DNS](/docs/guides/troubleshoot-dns)**

**[Troubleshoot custom domain SSL certificates](/docs/guides/troubleshoot-certificates)**

**[Handle apex domains and subdomains](/docs/guides/apex-and-subdomains)**

**[Give tenants managed subdomains](/docs/guides/managed-subdomains)**

**[Secure tenant domain operations](/docs/guides/tenant-security)**

**[Configure production credentials](/docs/guides/production-credentials)**

**[Switch providers safely](/docs/guides/switch-providers)**

**[Test without external API calls](/docs/guides/test-without-network)**
