We rebuilt turtletechnologies.co.ke and moved it to Cloudflare Pages. The requirement was strict: the website moves, but DNS stays with our registrar and email stays on Zoho. No downtime for email, and as little as possible for the site.
This is how we did it, and the detail that catches almost everyone.
Why Cloudflare Pages
- Static pages served from Cloudflare’s edge, including locations in East Africa
- Free SSL, DDoS protection and unlimited static bandwidth on the free plan
- A small serverless function handles the website’s contact form
- No server to patch, and nothing on the site an attacker could log into
Step 1: Publish and test before touching DNS
We deployed the site to its free *.pages.dev address and checked every page there first. The live domain kept pointing at the old site the whole time.
Step 2: Change one record, and leave the email records alone
Your domain’s DNS is a list of records. Email depends on the MX records (pointing to Zoho) plus the SPF, DKIM and DMARC TXT records. The website depends on the www record.
We changed one record only: the www CNAME, from the old host to yourproject.pages.dev, after adding www as a custom domain in Cloudflare Pages. The MX, SPF and DKIM records were never touched, so email kept flowing without interruption.
Step 3: The bare domain
Cloudflare Pages can serve www with DNS hosted elsewhere, but not the bare domain (example.co.ke). The clean fix is a permanent redirect from the bare domain to www, done at whichever server the bare domain’s A record points to.
The caching detail
After saving the change, our own laptop still showed the old site, and then a 404. The record was correct. Querying the registrar’s nameserver directly showed the new value:
dig +short CNAME www.example.co.ke @ns1.your-dns-provider.com
The cause was TTL. Our records had a TTL of 14,400 seconds, so resolvers everywhere were allowed to remember the old answer for up to four hours. Two practical rules follow:
- Lower the TTL on records you’re about to change (to 300 seconds) a day ahead
- Don’t remove the old host until the new answer has propagated, or visitors with cached DNS land on an error page
Step 4: Let the website send email, without touching Zoho
The contact form sends through a transactional email service. Its DNS records live on a subdomain (send. and resend._domainkey), so they sit alongside Zoho’s records without changing them.
Checklist
- Test on the
pages.devaddress first - Lower the TTL a day before
- Change only the
wwwrecord; leave MX, SPF and DKIM untouched - Redirect the bare domain to
www - Verify with
dig … @your-nameserver, then wait out the TTL - Remove the old host last
We do this for clients on any registrar. See Web Hosting, VPS & Domains and Business Email Hosting, or book a free consultation.