Docs / Domains & DNS
Point a domain at an app or server
5 minute read
Once your domain uses SimpliCloud nameservers, connecting it to an app or a server takes one or two records. For apps, the certificate is issued automatically as soon as the record resolves.
1. Add the domain to the app
Open the app, go to Settings, Domains and add the hostnames you want, for example korafoods.ng and www.korafoods.ng. If the domain is managed in SimpliCloud, the records are created for you and marked Auto.
simplicloud apps domains add storefront korafoods.ng www.korafoods.ng# korafoods.ng A 102.89.34.10 created# www.korafoods.ng CNAME storefront-3f2a.apps.simplicloud.ai created
2. Or add the records yourself
Use a CNAME to the app's default address for subdomains. The root of a domain (@) can't be a normal CNAME at most providers; in SimpliCloud DNS you can either add a CNAME at @ (we flatten it) or an A record to the apps address.
| Type | Name | Value | Use for |
|---|---|---|---|
| A | @ | 102.89.34.10 | Root domain on an app |
| CNAME | www | storefront-3f2a.apps.simplicloud.ai | Subdomain on an app |
| CNAME | api | orders-api-7d1e.apps.simplicloud.ai | A second app |
| CAA | @ | 0 issue "letsencrypt.org" | Allow automatic certificates |
3. Add records with the CLI, Terraform or API
Any record can be managed as code. This example points status.korafoods.ng at a service hosted elsewhere. Servers do not have their own public IPv4 yet (it is coming soon), so serve websites from an app and keep servers on the private network.
simplicloud dns records create korafoods.ng --type A --name status --value 41.203.18.7
4. Check DNS and HTTPS
Records are live within a minute. The certificate follows shortly after; the app's Domains card shows Issued when HTTPS is ready.
dig +short www.korafoods.ng# storefront-3f2a.apps.simplicloud.ai.# 102.89.34.10curl -sI https://www.korafoods.ng | head -1# HTTP/2 200