Configure Domain and DNS for Sites

Who this is for

Users who want to point a custom domain name to a site hosted on CloudAIPilot.


Prerequisites

  • You own a domain name and have access to its DNS settings (via your domain registrar or DNS provider such as Cloudflare, Route53, or Namecheap).
  • Your site is already created in CloudAIPilot.
  • You know the public IP address of the server hosting the site (visible on the server detail overview).

Step 1: Find Your Server's IP Address

  1. Open the server detail.
  2. The IP address is shown on the Overview tab.
  3. Copy this IP address.

Step 2: Add or Update the Domain on Your Site

If you did not enter a domain when creating the site:

  1. Open the site detail.
  2. Go to Settings (or the domain field in the overview).
  3. Enter your domain (e.g., myblog.com or app.mycompany.com).
  4. Save.

CloudAIPilot stores the domain in lowercase. Do not use http:// or https:// — enter the bare domain only.


Step 3: Create the DNS Record at Your Registrar

At your DNS provider, create an A record pointing the domain to your server's IP address:

TypeNameValueTTL
A@ (for root domain)300 (5 min)
Awww300

If you are using a subdomain (e.g., staging.myblog.com):

TypeNameValueTTL
Astaging300

Step 4: Wait for DNS Propagation

DNS changes propagate across the internet within minutes to 48 hours (typically under 30 minutes with a 300-second TTL).

To check propagation:

  • Use dnschecker.org — enter your domain and see if the A record resolves to your server IP.
  • Or run in your terminal: nslookup yourdomain.com

Step 5: Issue SSL After DNS Is Active

Once the domain resolves to your server:

  • Go to the site detail and click Issue SSL (or see KB-03-04: SSL Certificates).
  • SSL provisioning will fail if DNS has not propagated yet.

Using Cloudflare? Important Note

If you are using Cloudflare as your DNS provider:

  • Set the proxy status to DNS only (grey cloud icon) when first provisioning SSL via Let's Encrypt / Certbot.
  • After SSL is successfully issued, you can enable Cloudflare's proxy (orange cloud) if desired, but set SSL/TLS mode to Full (strict) to avoid redirect loops.

What Success Looks Like

Visiting your domain in a browser shows your site. nslookup yourdomain.com returns your server's IP address.


Common Issues and Fixes

IssueLikely causeFix
"DOMAIN_CONFLICT" in CloudAIPilotDomain already assigned to another site on the same serverRemove the domain from the other site first, or use a subdomain.
Site shows "This site can't be reached"DNS not propagated yet, or A record is wrongVerify the A record value matches the server IP. Use dnschecker.org.
SSL fails with "domain not resolving"DNS hasn't propagatedWait and try again. CloudAIPilot will not attempt Certbot if DNS doesn't resolve.
Browser shows wrong siteMultiple sites share the same domainCheck all sites on the server — only one may use each domain.

Related Articles