How to add a custom domain
Serve a Kodena site on your own hostname — attach the domain, point a DNS record at Kodena, and let SSL provision automatically.
TODO: translate to Indonesian. English source is authoritative; render it into Indonesian below.
Every deployed script gets a …kodena.id URL automatically. To serve it on your own hostname — www.example.com, app.example.com — attach a custom domain. You can do this from the CLI or the dashboard.
Attach the domain
With the CLI
kodena domain set my-script www.example.comKodena attaches the hostname and tells you to point a DNS record at your Kodena origin, then check the status until it's active.
From the dashboard
- Open the Kodena dashboard at kodena.sawala.cloud and select your script.
- Add your hostname (for example
www.example.com) under the script's domain settings. - Kodena registers the hostname and shows you the DNS target to point at, plus any validation records.
Point your DNS
At your domain registrar or DNS provider, create a CNAME record from your hostname to the target Kodena gave you:
www.example.com. CNAME <target>.kodena.idOnce the record resolves, Kodena validates ownership and provisions an SSL certificate automatically. When validation completes, your site serves over HTTPS on your own domain.
A root/apex domain (example.com with no www) can't always take a CNAME at every provider. Use a subdomain like www or app, or a provider that supports CNAME-flattening at the apex.
Don't have a domain yet?
Kodena can register .id domains for you, so you can buy and connect a domain without leaving the platform. Look for domain registration in the dashboard.
Check status
Check the live state of the domain — DNS resolution, ownership validation, and SSL — from the CLI:
kodena domain status my-script # add --json for the raw objectThe dashboard shows the same. If a domain is stuck, it's almost always the DNS record: confirm the CNAME points at the exact target Kodena gave you. To detach a domain, use kodena domain rm my-script (the site stays on its kodena.id subdomain).
See the CLI reference for deploying, and What is Kodena for the bigger picture.