Pilot pricing in Lagos: servers from ₦10 an hour, Spaces from ₦6,750 a month →
Docs menu

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.

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

TypeNameValueUse for
A@102.89.34.10Root domain on an app
CNAMEwwwstorefront-3f2a.apps.simplicloud.aiSubdomain on an app
CNAMEapiorders-api-7d1e.apps.simplicloud.aiA 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.

Terminal
dig +short www.korafoods.ng
# storefront-3f2a.apps.simplicloud.ai.
# 102.89.34.10
curl -sI https://www.korafoods.ng | head -1
# HTTP/2 200
If the domain is still on another DNS provider, add the same records there instead. Certificates are only issued once the hostname resolves to SimpliCloud.
Was this page helpful?

Related guides

Point a domain at an app or server · Docs · SimpliCloud