--- title: Use a custom domain | Stainless --- By default, your site is hosted on an `stldocs.app` subdomain. To add a custom domain, do the following: **Adding a custom domain will enable search engine indexing and crawler access.** By default, when your site is hosted on an `stldocs.app` subdomain, we serve [a `robots.txt` file](https://developer.mozilla.org/en-US/docs/Web/Security/Practical_implementation_guides/Robots_txt) that doesn’t allow indexing or crawlers. To override the default behavior, regardless of the domain you use, add a `robots.txt` file to your site’s `public` directory. 1. Go to the [Stainless dashboard](https://app.stainless.com/) 2. Navigate to your project 3. Go to the **API Docs** tab 4. Press the **Add custom domain** button 5. Enter the domain name you want to use, which is usually a subdomain of your main domain (e.g., `docs.example.com`) and press **Save** 6. Add the DNS records shown on the page (you’ll usually use your DNS provider’s control panel to do this) After you add the DNS records, it will take up to 48 hours for those records to propagate across the internet. Check back periodically until you see that your domain is verified. Once your domain’s DNS records have been verified, your docs site will be available at your custom domain.