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

  1. Fist step let's configure DNS full setup for the sub domain and note down the name server address below:

  1. Create NS record for the subdomain in namecheap:

  1. Flush the DNS NS record cache in 1.1.1.1 and google, you will receive the email notification once the domain verification is done and the subdomain is active

  1. 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:

  1. 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