Use your own subdomain as the zero trust public hostname
This guide will explain how to to use your subdomain as the public hostname for your self-hosted applications.
In this example, we have below setup:
hl-test.xyz is managed by your own DNS provider (e.g namecheap)
We wanted to use zt.hl-test.xyz as the public hostname domains for self-hosted applications in zero trust access
Fist step let's configure DNS full setup for the sub domain and note down the name server address below:

Create NS record for the subdomain in namecheap:


Create public hostname using the newly added sub domain:

Once the application is created, a CNAME record will be automatically added in the sub-domain DNS record:

Access the public hostname from internet and verify it's working:

Simple as that! you may add additional zero trust policies on top of this according to your requirement.
Last updated