Put a Resource on a custom domain
This tutorial maps a custom domain onto a deployed Resource. You will add the domain from the CLI, create one TXT and one CNAME record at your DNS provider, watch the three-stage tracker move from DNS to Certificate to Live, and confirm the endpoint serves over HTTPS. It takes about ten minutes of work plus DNS propagation time.
Custom domains are CNAME-only: you point a hostname at Hyjal, never at a raw IP address. Certificates are issued and renewed automatically. See Custom domains for the reference.
Prerequisites
- A deployed Resource. This tutorial uses
acmewith awebResource served athttps://web--acme.hyjal.cloud. - Access to your domain’s DNS records. This tutorial uses
www.acme.com. - The
hyjalCLI installed and logged in.
1. Add the domain
Attach the domain to the Resource with hyjal domains add. The CLI returns the
two DNS records you need to create.
The TXT record proves you control the domain. The CNAME routes traffic to the Resource’s endpoint.
2. Create the DNS records
At your DNS provider, create both records exactly as shown.
The CNAME target is the Resource’s default endpoint hostname. Do not create an A record; custom domains route by CNAME only.
3. Verify and follow the tracker
Trigger verification. The Console shows a three-stage tracker for the domain: DNS, then Certificate, then Live. The CLI prints the same stages as they advance.
The stages advance in order:
- DNS: the TXT challenge and CNAME are observed at the resolver.
- Certificate: a certificate is issued automatically, typically within seconds of DNS propagating.
- Live: the endpoint serves your Resource over HTTPS on the custom domain.
If DNS has not propagated yet, the tracker holds at the DNS stage. Wait for
propagation and run hyjal domains verify again, or watch the tracker flip on
its own in the Console. A domain still pending verification reports
HYJ-DNS001.
4. Confirm HTTPS
Request the domain and confirm a 200 over TLS.
List your domains to confirm the mapping and its status.
What you built
- A custom domain mapped to a Resource with one TXT and one CNAME record.
- An automatically issued, auto-renewing certificate.
- A live HTTPS endpoint on your own hostname, tracked from DNS to Live.
Next steps
- Custom domains: apex domains, multiple domains per Resource, and removal.
- Routing and URLs: the default URL grammar and how domains map to endpoints.
- Security model: TLS, ingress, and egress policy.