DNS, Hosting & Workers
Configuration Guide
Complete reference for domain registration, Cloudflare DNS, Google Sites, Workers routing, and email setup.
Login Credentials Storage
Squarespace — login via solaiman@miahgroup.com. Username & password stored in Apple Passwords app.
Cloudflare — login via miahnet@gmail.com. Password managed by Apple Passwords. 2FA via Google Authenticator app.
Registration & Hosting
Squarespace — Domain MiahGroup.com is registered here. Squarespace remains the renewal authority. DNS records were with Squarespace initially (free DNS service), registered with APNIC as the DNS authority for Australia region, which reports to ICANN.
Cloudflare — All DNS records transferred to Cloudflare. Squarespace still owns the domain registration but Cloudflare controls all DNS resolution and provides CDN, WAF, and Workers.
Cloudflare Nameservers
april.ns.cloudflare.com dion.ns.cloudflare.com
Naked Domain — A Records Required
For miahgroup.com (no subdomain) to resolve, you must have Google's IPs as A records. See the Google IPs section.
Current DNS Configuration
| Type | Name | Content / Value | Proxy | Notes |
|---|---|---|---|---|
| A | miahgroup.com | 216.239.32.21 | 🟠 Proxied | Naked domain → Google Sites |
| CNAME | * | ghs.googlehosted.com | 🟠 Proxied | Wildcard — catches all subdomains |
| CNAME | www | ghs.googlehosted.com | 🟠 Proxied | → store site |
| CNAME | store | ghs.googlehosted.com | 🟠 Proxied | → /store site |
| CNAME | solaiman | ghs.googlehosted.com | 🟠 Proxied | → /solaiman site |
| CNAME | admin | ghs.googlehosted.com | ⚪ DNS Only | DNS-only so custom URL shows in browser |
| R2 | store.miahgroup.com | Cloudflare R2 bucket | 🟠 Proxied | CDN image storage |
| MX | miahgroup.com | smtp.google.com | ⚪ DNS Only | Google Workspace email (post-2023) |
| TXT | miahgroup.com | v=spf1 include:_spf… | ⚪ DNS Only | SPF record for email auth |
| TXT | google._domainkey | v=DKIM1; k=rsa; p=… | ⚪ DNS Only | DKIM for email signing |
| TXT | miahgroup.com | google-site-verif… | ⚪ DNS Only | Google site ownership verification |
Site Structure
Sites live as files on Google Drive under solaiman@miahgroup.com.
How to Create a New Site
sites.google.com → click + top-left, or copy an existing site.home, au, bd, my, etc.store or solaiman).solaiman@miahgroup.com as owner, miahnet@gmail.com as Published Viewer.Traffic Flow
When Cloudflare proxy is ON, the Worker named "router" intercepts all requests and redirects based on the domain and visitor's geo-location.
| User requests | Routed to | Notes |
|---|---|---|
| miahgroup.com | …/store/au/ | A record + Proxied → Worker routes by country |
| www.miahgroup.com | …/store/au/ | Proxied → Worker active |
| store.miahgroup.com | …/store/au/ | Proxied → Worker active |
| solaiman.miahgroup.com | …/solaiman/au/ | Proxied → Worker routes to solaiman site |
| corporate.miahgroup.com | …/corporate/au/ | Proxied → Worker routes to corporate site |
| admin.miahgroup.com | admin.miahgroup.com/store | ⚪ DNS Only → Worker bypassed, custom URL shown |
| [anything].miahgroup.com | …/store/au/ | Wildcard CNAME catches all others |
Country → Page Mapping
🇦🇺 Australia → /au · 🇧🇩 Bangladesh → /bd · 🇲🇾 Malaysia → /my · 🇺🇸 USA → /us · 🇬🇧 UK → /uk
All other countries → default /home page.
Worker: "router"
Controls all traffic routing across all subdomains.
Deploy / Update
CDN Images — R2 Bucket
Images stored in a Cloudflare R2 bucket. Custom domain store.miahgroup.com proxied through Cloudflare for CDN delivery.
Google Workspace MX Records
Current (Post-2023)
smtp.google.com Priority: 1
Legacy Values (Pre-2023) — Still Supported
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Cloudflare Proxy vs Custom URL
One Domain, One Account
Worker Must Be Proxied
Required for Naked Domain
Add these as A records (Proxied) in Cloudflare DNS for miahgroup.com:
Google Sites CNAME Target
ghs.googlehosted.com
Full Access Reference
| Service | Login Account | Auth Method |
|---|---|---|
| Squarespace (domain) | solaiman@miahgroup.com | Google OAuth · Apple Passwords |
| Cloudflare | miahnet@gmail.com | Password (Apple Passwords) + 2FA (Google Auth) |
| Google Workspace Admin | solaiman@miahgroup.com | Google OAuth |
| Google Sites | solaiman@miahgroup.com | Owner · Google OAuth |
| Google Sites (viewer) | miahnet@gmail.com | Published Viewer |
| Google Apps Script | solaiman@miahgroup.com | Anyone with Google account can access deployed web app |