# Test custom domains in devel tennant

**URL:** <https://community.auth0.com/t/test-custom-domains-in-devel-tennant/132185>\
**Category:** Get Help\
**Tags:** custom-domains-flows, branding\
**Created:** [April 17, 2024, 9:40am UTC](https://community.auth0.com/t/test-custom-domains-in-devel-tennant/132185 "2024-04-17T09:40:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![david.casillas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david.casillas/32/12778_2.png) [@david.casillas](https://community.auth0.com/u/david.casillas)\
**Post date:** [April 17, 2024, 9:40am UTC](https://community.auth0.com/t/test-custom-domains-in-devel-tennant/132185/1 "2024-04-17T09:40:41Z")

</div>

Wee need to configure custom domains for our tennant. Before going to production we need to test the change in our development tennant. Since the Auth0 custom domain must be a validated domain, we can not use any localhost or event a local DNS for our devel application. What is the best approach for a devel application to be able be setup with an Auth0 tennant with custom domains?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [April 17, 2024, 4:30pm UTC](https://community.auth0.com/t/test-custom-domains-in-devel-tennant/132185/3 "2024-04-17T16:30:55Z")

</div>

Hi @david.casillas,

Welcome to the Auth0 Community!

Yes, that is correct. If you intend to use a custom domain, please make sure that it’s validated and that you own the domain. Please refer to our [Configure Custom Domains with Auth0-Managed Certificates](https://auth0.com/docs/customize/custom-domains/auth0-managed-certificates#verify-ownership) documentation.

For testing purposes on localhost, you should be able to do so directly without configuring it as a custom domain.

Let me know if you have any questions.

Cheers,  
Rueben

---

<div class="post-metadata">

**Author:** ![david.casillas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david.casillas/32/12778_2.png) [@david.casillas](https://community.auth0.com/u/david.casillas)\
**Post date:** [April 23, 2024, 5:49am UTC](https://community.auth0.com/t/test-custom-domains-in-devel-tennant/132185/4 "2024-04-23T05:49:42Z")

</div>

_“For testing purposes on localhost, you should be able to do so directly without configuring it as a custom domain.”_

This is the key of the question, we want the devel environment to be equal to the production environment so we can check everything before going live, but seems that custom domains is not an option and we must update the production configuration to use custom domains without testing the change in development.

Is there any workaround to this?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [April 26, 2024, 5:18pm UTC](https://community.auth0.com/t/test-custom-domains-in-devel-tennant/132185/5 "2024-04-26T17:18:10Z")

</div>

Hi @david.casillas,

Thanks for your reply.

Unfortunately, each custom domain in Auth0 is uniquely associated with a single tenant. This means that if you have a custom domain for your production tenant, you must use your production tenant for testing.

One alternative to this approach is to configure the custom domain for your development tenant first, and after verifying that everything works, migrate the same configuration to your production tenant.

The [Deploy CLI Tool](https://auth0.com/docs/deploy-monitor/deploy-cli-tool) might be helpful here to export/import tenant settings from one to another.

Let me know how this goes for you.

Cheers,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 10, 2024, 5:18pm UTC](https://community.auth0.com/t/test-custom-domains-in-devel-tennant/132185/6 "2024-05-10T17:18:40Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
