# Cloudflare & registrar DNS

> Follow registrar-specific DNS steps for Cloudflare, GoDaddy, Namecheap, and Squarespace Domains, avoid proxy SSL loops, and verify live propagation cleanly.

- Canonical: https://exaspark.ai/docs/dns-cloudflare-godaddy/

## Before you edit registrar DNS

Custom domains require an active **Starter** (`$4.99/mo` or `$3.99/mo` billed annually) or **Pro** (`$25/mo` or `$20/mo` billed annually) plan and include automatic HTTPS certificates. Before editing records, confirm where your domain's authoritative nameservers actually point.

Many teams buy a domain at GoDaddy or Namecheap but host DNS on Cloudflare. Editing records at your registrar has zero effect when nameservers point elsewhere—always edit records at the provider holding your active nameservers.

Publish your project once, open **Publish > Custom domain**, enter your target hostname, and keep ExaSpark's `A`, `CNAME`, and `TXT` values handy.

| DNS provider | Apex Host | Subdomain Host | Recommended TTL | Most common setup trap |
| --- | --- | --- | --- | --- |
| **Cloudflare** | `@` | `www` or `app` | Auto | Leaving **Proxied (orange cloud)** on with Flexible SSL |
| **GoDaddy** | `@` | `www` or `app` | 600 seconds | Hidden `Parked` `A` record or active Domain Forwarding |
| **Namecheap** | `@` | `www` or `app` | Automatic / 5 min | Default `URL Redirect` or `Parking Page` records left active |
| **Squarespace Domains** | `@` | `www` or `app` | Default (or lowest) | Built-in **Squarespace Defaults** preset conflicting with `@` |

> **Note:** Never remove existing **MX**, **SPF**, **DKIM**, or **DMARC** records while setting up web routing. Email delivery runs independently and stays healthy when those rows remain untouched.

## Cloudflare DNS setup

Cloudflare resolves DNS quickly worldwide, yet its proxy toggle causes most ExaSpark verification stalls and SSL redirect loops.

### Orange cloud vs grey cloud proxy rules

Every `A` and `CNAME` row in Cloudflare offers **Proxied (orange cloud)** or **DNS only (grey cloud)**.

- **Start with DNS only (grey cloud).** Automated TLS verification needs direct resolution to ExaSpark. Enabling the orange cloud early intercepts validation and stalls certificate issuance.
- **Avoid Flexible SSL mode.** When orange cloud pairs with **SSL/TLS > Flexible**, Cloudflare sends plain HTTP to ExaSpark, ExaSpark upgrades to HTTPS, and browsers hit `ERR_TOO_MANY_REDIRECTS`.
- **Keep grey cloud for zero-maintenance HTTPS.** ExaSpark manages HTTPS issuance and renewals automatically. If you later enable Cloudflare proxying for custom rules, confirm ExaSpark's certificate is live and switch SSL/TLS strictly to **Full (strict)** first.

### Step-by-step Cloudflare records

1. **Open DNS Records** — Select your domain in Cloudflare and open **DNS > Records**.
2. **Clear conflicting rows** — Delete old `A`, `AAAA`, or `CNAME` rows on the exact hostname you are connecting (`@`, `www`, or `app`).
3. **Add ExaSpark rows as DNS only** — Create the exact `A`, `CNAME`, and `TXT` records from ExaSpark with **Proxy status** toggled off (grey cloud).
4. **Verify in ExaSpark** — Return to **Publish > Custom domain** and click **Verify**.

```dns
; Type   Name        Content                           Proxy status   TTL
A        @           <exaspark-ipv4-from-panel>        DNS only       Auto
CNAME    www         <exaspark-cname-from-panel>       DNS only       Auto
TXT      _exaspark   <verification-token-from-panel>   DNS only       Auto
```

## GoDaddy DNS setup

GoDaddy appends your root domain automatically to every **Name** field and often inserts a default parking IP on new domains.

1. **Open DNS Records** — Open **Domain Portfolio**, pick your domain, and click **DNS > DNS Records**.
2. **Disable Domain Forwarding** — Remove any root or `www` rule under **Forwarding**, which injects hidden conflicting `A` records.
3. **Remove parked A and stray AAAA rows** — Delete any `@` row set to `Parked` or an old host, plus unused `AAAA` rows on that host.
4. **Add ExaSpark records** — Add each `A`, `CNAME`, and `TXT` row using `@` for root and `www` or `app` (never `app.example.com`) for subdomains at `600 seconds` TTL.
5. **Verify** — Save all rows, wait five minutes, and click **Verify** in ExaSpark.

```text
Type    Name        Value                             TTL
A       @           <exaspark-ipv4-from-panel>        600 seconds
CNAME   www         <exaspark-cname-from-panel>       600 seconds
TXT     _exaspark   <verification-token-from-panel>   600 seconds
```

## Namecheap DNS setup

Namecheap defaults to **Namecheap BasicDNS** with a built-in parking redirect and `www` parking CNAME.

1. **Confirm BasicDNS** — Open **Domain List > Manage** and verify **Nameservers** uses **Namecheap BasicDNS** (unless delegated to Cloudflare).
2. **Open Advanced DNS** — Switch to **Advanced DNS** and scroll to **Host Records**.
3. **Delete default parking rows** — Remove the default `URL Redirect Record` on `@` and the `CNAME` pointing `www` to `parkingpage.namecheap.com`.
4. **Add ExaSpark records** — Insert each `A`, `CNAME`, and `TXT` value using `@` or short prefixes (`www`, `app`, `_exaspark`) with TTL set to **Automatic** or **5 min**.
5. **Save and verify** — Click the green checkmark on every row, then click **Verify** in ExaSpark.

```text
Type           Host        Value                             TTL
A Record       @           <exaspark-ipv4-from-panel>        Automatic
CNAME Record   www         <exaspark-cname-from-panel>       Automatic
TXT Record     _exaspark   <verification-token-from-panel>   Automatic
```

## Squarespace Domains setup

Domains bought on Squarespace—or migrated from Google Domains—manage records under **DNS Settings**, where default website presets can conflict with root records.

1. **Open DNS Settings** — Open the **Domains** panel, choose your domain, and click **DNS > DNS Settings**.
2. **Delete Squarespace Defaults for apex apps** — If replacing a root site, remove the **Squarespace Defaults** preset so legacy `A` records do not split traffic.
3. **Clear Domain Forwarding** — Remove any forwarding rule attached to your target hostname.
4. **Add Custom Records** — Add each `A`, `CNAME`, and `TXT` row from ExaSpark under **Custom Records**, entering `@` for apex and prefix-only labels (`www`, `app`, `_exaspark`).
5. **Save and verify** — Save changes, allow 5 to 15 minutes for resolver updates, and click **Verify** in ExaSpark.

```text
Host        Type    Priority   Data
@           A       -          <exaspark-ipv4-from-panel>
www         CNAME   -          <exaspark-cname-from-panel>
_exaspark   TXT     -          <verification-token-from-panel>
```

## Checking live propagation and authoritative answers

Local computers and routers cache DNS until old TTLs expire. Querying public resolvers confirms immediately whether your registrar saved the right values.

```bash
# Confirm your active DNS provider
dig NS example.com +short

# Query Cloudflare (1.1.1.1) and Google (8.8.8.8)
dig @1.1.1.1 example.com A +short
dig @8.8.8.8 example.com A +short
dig @8.8.8.8 www.example.com CNAME +short
dig @8.8.8.8 _exaspark.example.com TXT +short

# Windows equivalent
nslookup -type=A example.com 8.8.8.8
```

Verify that `dig` returns **only** ExaSpark's target on the connected host. Two IPs on `@` mean an old parking or host `A` record remains active.

After HTTPS activates, sweep leftover `.exaspark.app` references from canonical tags and sitemaps:

> **Example prompt (App):** Update hardcoded production URLs, canonical link tags, Open Graph URLs, and sitemap entries to use https://example.com instead of our temporary preview or .exaspark.app URL while keeping internal navigation paths relative.

## Registrar troubleshooting reference

| Symptom | Root cause | Resolution |
| --- | --- | --- |
| **Edits never appear in `dig`** | Edited registrar while nameservers point to Cloudflare or another DNS host | Run `dig NS example.com +short` and add records at the active DNS host |
| **Subdomain stays pending** | Full domain typed in Host (`app.example.com.example.com`) | Change Host to the bare prefix (`app` or `www`) and save |
| **`ERR_TOO_MANY_REDIRECTS`** | Cloudflare orange cloud active alongside **Flexible** SSL | Switch record to **DNS only (grey cloud)** and clear browser cache |
| **Alternates between app and parking** | Old registrar `A` record coexists beside ExaSpark's `A` record | Delete every non-ExaSpark `A` and `AAAA` record on that host |
| **SSL pending over an hour** | Restrictive `CAA` policy or Cloudflare orange cloud blocking verification | Use grey cloud and inspect `dig CAA example.com +short` |
| **Desktop works, phones hit old host** | Leftover IPv6 `AAAA` record routes mobile networks elsewhere | Delete stale `AAAA` rows on the connected hostname |

## Next steps

- [Custom domains, DNS & SSL](https://exaspark.ai/docs/custom-domains-and-dns/) — Review core A, CNAME, TXT concepts and automatic SSL setup.
- [Subdomains & www redirects](https://exaspark.ai/docs/subdomains-and-redirects/) — Pick one canonical host and configure clean 301 redirects.
- [Email authentication (DNS)](https://exaspark.ai/docs/email-authentication-dns/) — Add SPF, DKIM, and DMARC records for branded sending email.

## From the blog

- [What is a domain name?](https://exaspark.ai/blog/what-is-a-domain-name/) — Plain-English breakdown of registrars, nameservers, and DNS ownership.
- [What is web hosting?](https://exaspark.ai/blog/what-is-web-hosting/) — How DNS routing, edge delivery, and HTTPS serve your live app.
- [App launch checklist](https://exaspark.ai/blog/app-launch-checklist/) — End-to-end launch steps from domain verification to early users.
